174462Salfred/*	$NetBSD: rpcent.h,v 1.1 2000/06/02 22:57:56 fvdl Exp $	*/
274462Salfred/*	$FreeBSD: stable/10/include/rpc/rpcent.h 309502 2016-12-03 18:56:28Z ngie $ */
374462Salfred
4261046Smav/*-
5261046Smav * Copyright (c) 2009, Sun Microsystems, Inc.
6261046Smav * All rights reserved.
7261046Smav *
8261046Smav * Redistribution and use in source and binary forms, with or without
9261046Smav * modification, are permitted provided that the following conditions are met:
10261046Smav * - Redistributions of source code must retain the above copyright notice,
11261046Smav *   this list of conditions and the following disclaimer.
12261046Smav * - Redistributions in binary form must reproduce the above copyright notice,
13261046Smav *   this list of conditions and the following disclaimer in the documentation
14261046Smav *   and/or other materials provided with the distribution.
15261046Smav * - Neither the name of Sun Microsystems, Inc. nor the names of its
16261046Smav *   contributors may be used to endorse or promote products derived
17261046Smav *   from this software without specific prior written permission.
18261046Smav *
19261046Smav * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
20261046Smav * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
21261046Smav * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22261046Smav * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
23261046Smav * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
24261046Smav * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
25261046Smav * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26261046Smav * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
27261046Smav * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
28261046Smav * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
29261046Smav * POSSIBILITY OF SUCH DAMAGE.
3074462Salfred */
3174462Salfred/*
3274462Salfred * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
3374462Salfred */
3474462Salfred
3574462Salfred/*
3674462Salfred * rpcent.h,
3774462Salfred * For converting rpc program numbers to names etc.
3874462Salfred *
3974462Salfred */
4074462Salfred
4174462Salfred#ifndef _RPC_RPCENT_H
4274462Salfred#define _RPC_RPCENT_H
4374462Salfred
4474462Salfred/*	#pragma ident "@(#)rpcent.h   1.13    94/04/25 SMI"	*/
4574462Salfred/*      @(#)rpcent.h 1.1 88/12/06 SMI   */
4674462Salfred
4774462Salfred
4874462Salfredstruct rpcent {
4974462Salfred      char    *r_name;        /* name of server for this rpc program */
5074462Salfred      char    **r_aliases;    /* alias list */
5174462Salfred      int     r_number;       /* rpc program number */
5274462Salfred};
5374462Salfred
5474462Salfred__BEGIN_DECLS
55158138Sume/*
56158138Sume * These interfaces are currently implemented through nsswitch and are
57158138Sume * MT-safe.
58158138Sume */
59309502Sngieextern struct rpcent *getrpcbyname(const char *);
6093032Simpextern struct rpcent *getrpcbynumber(int);
6193032Simpextern struct rpcent *getrpcent(void);
6293032Simpextern void setrpcent(int);
6393032Simpextern void endrpcent(void);
6474462Salfred__END_DECLS
6574462Salfred
6674462Salfred#endif /* !_RPC_CENT_H */
67