/* IBM_PROLOG_BEGIN_TAG                                                   */
/* This is an automatically generated prolog.                             */
/*                                                                        */
/* onc720 src/oncplus/usr/include/tirpc/rpc/rpcent.h 1.4                  */
/*                                                                        */
/* Licensed Materials - Property of IBM                                   */
/*                                                                        */
/* COPYRIGHT International Business Machines Corp. 1996,1999              */
/* All Rights Reserved                                                    */
/*                                                                        */
/* US Government Users Restricted Rights - Use, duplication or            */
/* disclosure restricted by GSA ADP Schedule Contract with IBM Corp.      */
/*                                                                        */
/* IBM_PROLOG_END_TAG                                                     */
/*
 * Copyright (c) 1986 - 1991 by Sun Microsystems, Inc.
 */

/*
 * rpcent.h,
 * For converting rpc program numbers to names etc.
 *
 */

#ifndef _RPC_RPCENT_H
#define	_RPC_RPCENT_H

/* #pragma ident	"@(#)rpcent.h	1.15	94/10/04 SMI" */
/*	@(#)rpcent.h 1.1 88/12/06 SMI	*/

#ifdef	__cplusplus
extern "C" {
#endif


/*
 * struct rpcent {
 *	char	*r_name;
 *	char	**r_aliases;
 *	int	r_number;
 * };
 */

extern struct rpcent *nsl_getrpcbyname_r(const char *, struct rpcent *,
				     char *, int);
extern struct rpcent *nsl_getrpcbynumber_r(int, struct rpcent *, char *, int);
extern struct rpcent *nsl_getrpcent_r(struct rpcent *, char *, int);
extern struct hostent *nsl_gethostent_r(struct hostent *, char *, int, int *);
extern struct hostent *nsl_gethostbyname_r(char *, struct hostent *, char *,
					   int, int *);
extern struct hostent *nsl_gethostbyaddr_r(const char *, int, int,
					   struct hostent *, char *,
					   int, int *);



/* Old interfaces that return a pointer to a static area;  MT-unsafe */
extern struct rpcent *getrpcbyname(const char *);
extern struct rpcent *getrpcbynumber(const int);
extern struct rpcent *getrpcent(void);
extern void setrpcent(const int);
extern void endrpcent(void);

#ifdef	__cplusplus
}
#endif

#endif	/* _RPC_RPCENT_H */
