2 #include <sunrpc/rpc/netdb.h>
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
);
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
);
21 extern int __getrpcent_r (struct rpcent
*__result_buf
, char *__buffer
,
22 size_t __buflen
, struct rpcent
**__result
)
24 extern int __old_getrpcent_r (struct rpcent
*__result_buf
, char *__buffer
,
25 size_t __buflen
, struct rpcent
**__result
);
28 extern int _nss_files_parse_rpcent (char *line
, struct rpcent
*result
,
29 struct parser_data
*data
,
30 size_t datalen
, int *errnop
);
31 libnss_files_hidden_proto (_nss_files_parse_rpcent
)
33 #define DECLARE_NSS_PROTOTYPES(service) \
34 extern enum nss_status _nss_ ## service ## _setrpcent (int); \
35 extern enum nss_status _nss_ ## service ## _endrpcent (void); \
36 extern enum nss_status _nss_ ## service ## _getrpcent_r \
37 (struct rpcent *rpc, char *buffer, size_t buflen, \
39 extern enum nss_status _nss_ ## service ## _getrpcbyname_r \
40 (const char *name, struct rpcent *rpc, \
41 char *buffer, size_t buflen, int *errnop); \
42 extern enum nss_status _nss_ ## service ## _getrpcbynumber_r \
43 (int number, struct rpcent *rpc, \
44 char *buffer, size_t buflen, int *errnop);
47 DECLARE_NSS_PROTOTYPES (files
)
48 DECLARE_NSS_PROTOTYPES (nis
)
49 DECLARE_NSS_PROTOTYPES (nisplus
)
51 #undef DECLARE_NSS_PROTOTYPES
53 # endif /* !_ISOMAC */