Blame sunrpc/rpc/netdb.h

Packit Service 82fcde
/* @(#)netdb.h	2.1 88/07/29 3.9 RPCSRC */
Packit Service 82fcde
/*
Packit Service 82fcde
 * Copyright (c) 2010, Oracle America, Inc.
Packit Service 82fcde
 * Redistribution and use in source and binary forms, with or without
Packit Service 82fcde
 * modification, are permitted provided that the following conditions are
Packit Service 82fcde
 * met:
Packit Service 82fcde
 *
Packit Service 82fcde
 *     * Redistributions of source code must retain the above copyright
Packit Service 82fcde
 *       notice, this list of conditions and the following disclaimer.
Packit Service 82fcde
 *     * Redistributions in binary form must reproduce the above
Packit Service 82fcde
 *       copyright notice, this list of conditions and the following
Packit Service 82fcde
 *       disclaimer in the documentation and/or other materials
Packit Service 82fcde
 *       provided with the distribution.
Packit Service 82fcde
 *     * Neither the name of the "Oracle America, Inc." nor the names of its
Packit Service 82fcde
 *       contributors may be used to endorse or promote products derived
Packit Service 82fcde
 *       from this software without specific prior written permission.
Packit Service 82fcde
 *
Packit Service 82fcde
 *   THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Packit Service 82fcde
 *   "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Packit Service 82fcde
 *   LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
Packit Service 82fcde
 *   FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
Packit Service 82fcde
 *   COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
Packit Service 82fcde
 *   INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit Service 82fcde
 *   DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
Packit Service 82fcde
 *   GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
Packit Service 82fcde
 *   INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
Packit Service 82fcde
 *   WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
Packit Service 82fcde
 *   NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Packit Service 82fcde
 *   OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Packit Service 82fcde
 */
Packit Service 82fcde
Packit Service 82fcde
/* Cleaned up for GNU C library roland@gnu.ai.mit.edu:
Packit Service 82fcde
   added multiple inclusion protection and use of <sys/cdefs.h>.
Packit Service 82fcde
   In GNU this file is #include'd by <netdb.h>.  */
Packit Service 82fcde
Packit Service 82fcde
#ifndef _RPC_NETDB_H
Packit Service 82fcde
#define _RPC_NETDB_H	1
Packit Service 82fcde
Packit Service 82fcde
#include <features.h>
Packit Service 82fcde
Packit Service 82fcde
#define __need_size_t
Packit Service 82fcde
#include <stddef.h>
Packit Service 82fcde
Packit Service 82fcde
__BEGIN_DECLS
Packit Service 82fcde
Packit Service 82fcde
struct rpcent
Packit Service 82fcde
{
Packit Service 82fcde
  char *r_name;		/* Name of server for this rpc program.  */
Packit Service 82fcde
  char **r_aliases;	/* Alias list.  */
Packit Service 82fcde
  int r_number;		/* RPC program number.  */
Packit Service 82fcde
};
Packit Service 82fcde
Packit Service 82fcde
extern void setrpcent (int __stayopen) __THROW;
Packit Service 82fcde
extern void endrpcent (void) __THROW;
Packit Service 82fcde
extern struct rpcent *getrpcbyname (const char *__name) __THROW;
Packit Service 82fcde
extern struct rpcent *getrpcbynumber (int __number) __THROW;
Packit Service 82fcde
extern struct rpcent *getrpcent (void) __THROW;
Packit Service 82fcde
Packit Service 82fcde
#ifdef __USE_MISC
Packit Service 82fcde
extern int getrpcbyname_r (const char *__name, struct rpcent *__result_buf,
Packit Service 82fcde
			   char *__buffer, size_t __buflen,
Packit Service 82fcde
			   struct rpcent **__result) __THROW;
Packit Service 82fcde
Packit Service 82fcde
extern int getrpcbynumber_r (int __number, struct rpcent *__result_buf,
Packit Service 82fcde
			     char *__buffer, size_t __buflen,
Packit Service 82fcde
			     struct rpcent **__result) __THROW;
Packit Service 82fcde
Packit Service 82fcde
extern int getrpcent_r (struct rpcent *__result_buf, char *__buffer,
Packit Service 82fcde
			size_t __buflen, struct rpcent **__result) __THROW;
Packit Service 82fcde
#endif
Packit Service 82fcde
Packit Service 82fcde
__END_DECLS
Packit Service 82fcde
Packit Service 82fcde
#endif /* rpc/netdb.h */