2 #include <sunrpc/rpc/netdb.h>
4 extern int __getrpcbyname_r (__const
char *__name
, struct rpcent
*__result_buf
,
5 char *__buffer
, size_t __buflen
,
6 struct rpcent
**__result
);
7 extern int __old_getrpcbyname_r (__const
char *__name
,
8 struct rpcent
*__result_buf
,
9 char *__buffer
, size_t __buflen
,
10 struct rpcent
**__result
);
12 extern int __getrpcbynumber_r (int __number
, struct rpcent
*__result_buf
,
13 char *__buffer
, size_t __buflen
,
14 struct rpcent
**__result
);
15 extern int __old_getrpcbynumber_r (int __number
, struct rpcent
*__result_buf
,
16 char *__buffer
, size_t __buflen
,
17 struct rpcent
**__result
);
19 extern int __getrpcent_r (struct rpcent
*__result_buf
, char *__buffer
,
20 size_t __buflen
, struct rpcent
**__result
);
21 extern int __old_getrpcent_r (struct rpcent
*__result_buf
, char *__buffer
,
22 size_t __buflen
, struct rpcent
**__result
);
25 extern int _nss_files_parse_rpcent (char *line
, struct rpcent
*result
,
26 struct parser_data
*data
,
27 size_t datalen
, int *errnop
);
29 #define DECLARE_NSS_PROTOTYPES(service) \
30 extern enum nss_status _nss_ ## service ## _setrpcent (int); \
31 extern enum nss_status _nss_ ## service ## _endrpcent (void); \
32 extern enum nss_status _nss_ ## service ## _getrpcent_r \
33 (struct rpcent *rpc, char *buffer, size_t buflen, \
35 extern enum nss_status _nss_ ## service ## _getrpcbyname_r \
36 (const char *name, struct rpcent *rpc, \
37 char *buffer, size_t buflen, int *errnop); \
38 extern enum nss_status _nss_ ## service ## _getrpcbynumber_r \
39 (int number, struct rpcent *rpc, \
40 char *buffer, size_t buflen, int *errnop);
43 DECLARE_NSS_PROTOTYPES (files
)
44 DECLARE_NSS_PROTOTYPES (nis
)
45 DECLARE_NSS_PROTOTYPES (nisplus
)
47 #undef DECLARE_NSS_PROTOTYPES