Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:13:02

0001 /*  $NetBSD: rpcent.h,v 1.1 2000/06/02 22:57:56 fvdl Exp $  */
0002 /*  $FreeBSD: src/include/rpc/rpcent.h,v 1.2 2002/03/23 17:24:55 imp Exp $ */
0003 
0004 /*
0005  * Copyright (c) 2009, Sun Microsystems, Inc.
0006  * All rights reserved.
0007  *
0008  * Redistribution and use in source and binary forms, with or without
0009  * modification, are permitted provided that the following conditions are met:
0010  * - Redistributions of source code must retain the above copyright notice,
0011  *   this list of conditions and the following disclaimer.
0012  * - Redistributions in binary form must reproduce the above copyright notice,
0013  *   this list of conditions and the following disclaimer in the documentation
0014  *   and/or other materials provided with the distribution.
0015  * - Neither the name of Sun Microsystems, Inc. nor the names of its
0016  *   contributors may be used to endorse or promote products derived
0017  *   from this software without specific prior written permission.
0018  *
0019  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
0020  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
0021  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
0022  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
0023  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
0024  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
0025  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
0026  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
0027  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
0028  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
0029  * POSSIBILITY OF SUCH DAMAGE.
0030  */
0031 /*
0032  * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
0033  */
0034 
0035 /*
0036  * rpcent.h,
0037  * For converting rpc program numbers to names etc.
0038  *
0039  */
0040 
0041 #ifndef _RPC_RPCENT_H
0042 #define _RPC_RPCENT_H
0043 
0044 /*  #pragma ident "@(#)rpcent.h   1.13    94/04/25 SMI" */
0045 /*      @(#)rpcent.h 1.1 88/12/06 SMI   */
0046 
0047 #ifdef __cplusplus
0048 extern "C" {
0049 #endif
0050 
0051 /* These are defined in /usr/include/rpc/netdb.h, unless we are using
0052    the C library without RPC support. */
0053 #if defined(__UCLIBC__) && !defined(__UCLIBC_HAS_RPC__) || !defined(__GLIBC__)
0054 struct rpcent {
0055     char    *r_name;    /* name of server for this rpc program */
0056     char    **r_aliases;    /* alias list */
0057     int r_number;   /* rpc program number */
0058 };
0059 
0060 /* Old interfaces that return a pointer to a static area;  MT-unsafe */
0061 extern struct rpcent *getrpcbyname(const char *);
0062 extern struct rpcent *getrpcbynumber(int);
0063 extern struct rpcent *getrpcent(void);
0064 
0065 extern void setrpcent(int);
0066 extern void endrpcent(void);
0067 #endif
0068 
0069 #ifdef __cplusplus
0070 }
0071 #endif
0072 
0073 #endif /* !_RPC_CENT_H */