1275970Scy/* $NetBSD: rpcent.h,v 1.1 2000/06/02 22:57:56 fvdl Exp $ */ 2275970Scy 3275970Scy/*- 4275970Scy * SPDX-License-Identifier: BSD-3-Clause 5275970Scy * 6275970Scy * Copyright (c) 2009, Sun Microsystems, Inc. 7275970Scy * All rights reserved. 8275970Scy * 9275970Scy * Redistribution and use in source and binary forms, with or without 10275970Scy * modification, are permitted provided that the following conditions are met: 11275970Scy * - Redistributions of source code must retain the above copyright notice, 12275970Scy * this list of conditions and the following disclaimer. 13275970Scy * - Redistributions in binary form must reproduce the above copyright notice, 14275970Scy * this list of conditions and the following disclaimer in the documentation 15275970Scy * and/or other materials provided with the distribution. 16275970Scy * - Neither the name of Sun Microsystems, Inc. nor the names of its 17275970Scy * contributors may be used to endorse or promote products derived 18275970Scy * from this software without specific prior written permission. 19275970Scy * 20275970Scy * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 21275970Scy * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22275970Scy * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23275970Scy * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE 24275970Scy * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 25275970Scy * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 26275970Scy * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 27275970Scy * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 28275970Scy * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 29275970Scy * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 30275970Scy * POSSIBILITY OF SUCH DAMAGE. 31275970Scy */ 32275970Scy/* 33275970Scy * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc. 34275970Scy */ 35275970Scy 36275970Scy/* 37275970Scy * rpcent.h, 38275970Scy * For converting rpc program numbers to names etc. 39275970Scy * 40275970Scy */ 41275970Scy 42275970Scy#ifndef _RPC_RPCENT_H 43275970Scy#define _RPC_RPCENT_H 44275970Scy 45275970Scystruct rpcent { 46275970Scy char *r_name; /* name of server for this rpc program */ 47275970Scy char **r_aliases; /* alias list */ 48275970Scy int r_number; /* rpc program number */ 49275970Scy}; 50275970Scy 51275970Scy__BEGIN_DECLS 52275970Scy/* 53275970Scy * These interfaces are currently implemented through nsswitch and are 54275970Scy * MT-safe. 55275970Scy */ 56275970Scyextern struct rpcent *getrpcbyname(const char *); 57275970Scyextern struct rpcent *getrpcbynumber(int); 58275970Scyextern struct rpcent *getrpcent(void); 59275970Scyextern void setrpcent(int); 60275970Scyextern void endrpcent(void); 61275970Scy__END_DECLS 62275970Scy 63275970Scy#endif /* !_RPC_CENT_H */ 64275970Scy