1 #ifndef _RPC_NETDB_H
2 #include <inet/rpc/netdb.h>
3 
4 # ifndef _ISOMAC
5 
6 extern int __getrpcbyname_r (const char *__name, struct rpcent *__result_buf,
7 			     char *__buffer, size_t __buflen,
8 			     struct rpcent **__result) attribute_hidden;
9 extern int __old_getrpcbyname_r (const char *__name,
10 				 struct rpcent *__result_buf,
11 				 char *__buffer, size_t __buflen,
12 				 struct rpcent **__result);
13 
14 extern int __getrpcbynumber_r (int __number, struct rpcent *__result_buf,
15 			       char *__buffer, size_t __buflen,
16 			       struct rpcent **__result) attribute_hidden;
17 extern int __old_getrpcbynumber_r (int __number, struct rpcent *__result_buf,
18 				   char *__buffer, size_t __buflen,
19 				   struct rpcent **__result);
20 
21 extern int __getrpcent_r (struct rpcent *__result_buf, char *__buffer,
22 			  size_t __buflen, struct rpcent **__result)
23      attribute_hidden;
24 extern int __old_getrpcent_r (struct rpcent *__result_buf, char *__buffer,
25 			      size_t __buflen, struct rpcent **__result);
26 
27 #define DECLARE_NSS_PROTOTYPES(service)					      \
28 extern enum nss_status _nss_ ## service ## _setrpcent (int);		      \
29 extern enum nss_status _nss_ ## service ## _endrpcent (void);		      \
30 extern enum nss_status _nss_ ## service ## _getrpcent_r			      \
31 		       (struct rpcent *rpc, char *buffer, size_t buflen,      \
32 			int *errnop);					      \
33 extern enum nss_status _nss_ ## service ## _getrpcbyname_r		      \
34 		       (const char *name, struct rpcent *rpc,		      \
35 			char *buffer, size_t buflen, int *errnop);	      \
36 extern enum nss_status _nss_ ## service ## _getrpcbynumber_r		      \
37 		       (int number, struct rpcent *rpc,			      \
38 			char *buffer, size_t buflen, int *errnop);
39 
40 
41 DECLARE_NSS_PROTOTYPES (files)
42 
43 #undef DECLARE_NSS_PROTOTYPES
44 
45 # endif /* !_ISOMAC */
46 #endif
47