lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifndef _RPC_NETDB_H |
| 2 | #include <sunrpc/rpc/netdb.h> |
| 3 | |
| 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); |
| 11 | |
| 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); |
| 18 | |
| 19 | extern int __getrpcent_r (struct rpcent *__result_buf, char *__buffer, |
| 20 | size_t __buflen, struct rpcent **__result) |
| 21 | attribute_hidden; |
| 22 | extern int __old_getrpcent_r (struct rpcent *__result_buf, char *__buffer, |
| 23 | size_t __buflen, struct rpcent **__result); |
| 24 | |
| 25 | struct parser_data; |
| 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) |
| 30 | |
| 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, \ |
| 36 | int *errnop); \ |
| 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); |
| 43 | |
| 44 | |
| 45 | DECLARE_NSS_PROTOTYPES (files) |
| 46 | DECLARE_NSS_PROTOTYPES (nis) |
| 47 | DECLARE_NSS_PROTOTYPES (nisplus) |
| 48 | |
| 49 | #undef DECLARE_NSS_PROTOTYPES |
| 50 | |
| 51 | #endif |