home *** CD-ROM | disk | FTP | other *** search
/ RISCWORLD 7 / RISCWORLD_VOL7.iso / Software / Issue4 / SDL / gcc346 / !gcc / include / unixlib / rpc / h / netdb
Encoding:
Text File  |  2006-09-17  |  2.9 KB  |  91 lines

  1. /****************************************************************************
  2.  *
  3.  * $Source: /usr/local/cvsroot/gccsdk/unixlib/source/clib/rpc/netdb.h,v $
  4.  * $Date: 2002/12/22 18:22:28 $
  5.  * $Revision: 1.1 $
  6.  * $State: Exp $
  7.  * $Author: admin $
  8.  *
  9.  ***************************************************************************/
  10.  
  11. /*
  12.  * File taken from glibc 2.2.5.
  13.  * Following changes were made:
  14.  *  <none>
  15.  */
  16.  
  17. /* @(#)netdb.h    2.1 88/07/29 3.9 RPCSRC */
  18. /*
  19.  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
  20.  * unrestricted use provided that this legend is included on all tape
  21.  * media and as a part of the software program in whole or part.  Users
  22.  * may copy or modify Sun RPC without charge, but are not authorized
  23.  * to license or distribute it to anyone else except as part of a product or
  24.  * program developed by the user.
  25.  *
  26.  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
  27.  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
  28.  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
  29.  *
  30.  * Sun RPC is provided with no support and without any obligation on the
  31.  * part of Sun Microsystems, Inc. to assist in its use, correction,
  32.  * modification or enhancement.
  33.  *
  34.  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
  35.  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
  36.  * OR ANY PART THEREOF.
  37.  *
  38.  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
  39.  * or profits or other special, indirect and consequential damages, even if
  40.  * Sun has been advised of the possibility of such damages.
  41.  *
  42.  * Sun Microsystems, Inc.
  43.  * 2550 Garcia Avenue
  44.  * Mountain View, California  94043
  45.  */
  46. /*    @(#)rpc.h 1.8 87/07/24 SMI    */
  47.  
  48. /* Cleaned up for GNU C library roland@gnu.ai.mit.edu:
  49.    added multiple inclusion protection and use of <sys/cdefs.h>.
  50.    In GNU this file is #include'd by <netdb.h>.  */
  51.  
  52. #ifndef _RPC_NETDB_H
  53. #define _RPC_NETDB_H    1
  54.  
  55. #include <features.h>
  56.  
  57. #define __need_size_t
  58. #include <stddef.h>
  59.  
  60. __BEGIN_DECLS
  61.  
  62. struct rpcent
  63. {
  64.   char *r_name;        /* Name of server for this rpc program.  */
  65.   char **r_aliases;    /* Alias list.  */
  66.   int r_number;        /* RPC program number.  */
  67. };
  68.  
  69. extern void setrpcent (int __stayopen) __THROW;
  70. extern void endrpcent (void) __THROW;
  71. extern struct rpcent *getrpcbyname (__const char *__name) __THROW;
  72. extern struct rpcent *getrpcbynumber (int __number) __THROW;
  73. extern struct rpcent *getrpcent (void) __THROW;
  74.  
  75. #ifdef __USE_MISC
  76. extern int getrpcbyname_r (__const char *__name, struct rpcent *__result_buf,
  77.                char *__buffer, size_t __buflen,
  78.                struct rpcent **__result) __THROW;
  79.  
  80. extern int getrpcbynumber_r (int __number, struct rpcent *__result_buf,
  81.                  char *__buffer, size_t __buflen,
  82.                  struct rpcent **__result) __THROW;
  83.  
  84. extern int getrpcent_r (struct rpcent *__result_buf, char *__buffer,
  85.             size_t __buflen, struct rpcent **__result) __THROW;
  86. #endif
  87.  
  88. __END_DECLS
  89.  
  90. #endif /* rpc/netdb.h */
  91.