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
)
22 extern int __old_getrpcent_r (struct rpcent
*__result_buf
, char *__buffer
,
23 size_t __buflen
, struct rpcent
**__result
);
26 extern int _nss_files_parse_rpcent (char *line
, struct rpcent
*result
,
27 struct parser_data
*data
,
28 size_t datalen
, int *errnop
);
29 libnss_files_hidden_proto (_nss_files_parse_rpcent
)
31 #define DECLARE_NSS_PROTOTYPES(service) \
32 extern enum nss_status _nss_ ## service ## _setrpcent (int); \
33 extern enum nss_status _nss_ ## service ## _endrpcent (void); \
34 extern enum nss_status _nss_ ## service ## _getrpcent_r \
35 (struct rpcent *rpc, char *buffer, size_t buflen, \
37 extern enum nss_status _nss_ ## service ## _getrpcbyname_r \
38 (const char *name, struct rpcent *rpc, \
39 char *buffer, size_t buflen, int *errnop); \
40 extern enum nss_status _nss_ ## service ## _getrpcbynumber_r \
41 (int number, struct rpcent *rpc, \
42 char *buffer, size_t buflen, int *errnop);
45 DECLARE_NSS_PROTOTYPES (files
)
46 DECLARE_NSS_PROTOTYPES (nis
)
47 DECLARE_NSS_PROTOTYPES (nisplus
)
49 #undef DECLARE_NSS_PROTOTYPES