home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue6 / SDL.ZIP / !gcc / include / unixlib / bits / h / netdb < prev    next >
Encoding:
Text File  |  2006-09-17  |  2.0 KB  |  62 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/clib/bits/netdb.h,v $
  4.  * $Date: 2003/04/05 23:56:08 $
  5.  * $Revision: 1.2 $
  6.  * $State: Exp $
  7.  * $Author: joty $
  8.  *
  9.  ***************************************************************************/
  10.  
  11. /*
  12.  * File taken from glibc 2.2.5.
  13.  * Following changes were made:
  14.  *  - Added the prototypes for the SWI veneers.
  15.  */
  16.  
  17. /* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
  18.    This file is part of the GNU C Library.
  19.  
  20.    The GNU C Library is free software; you can redistribute it and/or
  21.    modify it under the terms of the GNU Lesser General Public
  22.    License as published by the Free Software Foundation; either
  23.    version 2.1 of the License, or (at your option) any later version.
  24.  
  25.    The GNU C Library is distributed in the hope that it will be useful,
  26.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  27.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  28.    Lesser General Public License for more details.
  29.  
  30.    You should have received a copy of the GNU Lesser General Public
  31.    License along with the GNU C Library; if not, write to the Free
  32.    Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA
  33.    02111-1307 USA.  */
  34.  
  35. #ifndef __NETDB_H
  36. # error "Never include <bits/netdb.h> directly; use <netdb.h> instead."
  37. #endif
  38.  
  39.  
  40. /* Description of data base entry for a single network.  NOTE: here a
  41.    poor assumption is made.  The network number is expected to fit
  42.    into an unsigned long int variable.  */
  43. struct netent
  44. {
  45.   char *n_name;            /* Official name of network.  */
  46.   char **n_aliases;        /* Alias list.  */
  47.   int n_addrtype;        /* Net address type.  */
  48.   uint32_t n_net;        /* Network number.  */
  49. };
  50.  
  51. __BEGIN_DECLS
  52.  
  53. #ifdef __UNIXLIB_INTERNALS
  54. /* Direct SWI veneers: */
  55. extern int _sclose (int sd);
  56. extern int _sread (int sd, void *data, int nbyte);
  57. extern int _swrite (int sd, const void *data, int nbyte);
  58. extern int _sioctl (int sd, unsigned long request, void *arg);
  59. #endif
  60.  
  61. __END_DECLS
  62.