|
Packit |
6c4009 |
#ifndef _RPC_NETDB_H
|
|
Packit |
6c4009 |
#include <sunrpc/rpc/netdb.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# ifndef _ISOMAC
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern int __getrpcbyname_r (const char *__name, struct rpcent *__result_buf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct rpcent **__result) attribute_hidden;
|
|
Packit |
6c4009 |
extern int __old_getrpcbyname_r (const char *__name,
|
|
Packit |
6c4009 |
struct rpcent *__result_buf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct rpcent **__result);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern int __getrpcbynumber_r (int __number, struct rpcent *__result_buf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct rpcent **__result) attribute_hidden;
|
|
Packit |
6c4009 |
extern int __old_getrpcbynumber_r (int __number, struct rpcent *__result_buf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct rpcent **__result);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
extern int __getrpcent_r (struct rpcent *__result_buf, char *__buffer,
|
|
Packit |
6c4009 |
size_t __buflen, struct rpcent **__result)
|
|
Packit |
6c4009 |
attribute_hidden;
|
|
Packit |
6c4009 |
extern int __old_getrpcent_r (struct rpcent *__result_buf, char *__buffer,
|
|
Packit |
6c4009 |
size_t __buflen, struct rpcent **__result);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#define DECLARE_NSS_PROTOTYPES(service) \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _setrpcent (int); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _endrpcent (void); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _getrpcent_r \
|
|
Packit |
6c4009 |
(struct rpcent *rpc, char *buffer, size_t buflen, \
|
|
Packit |
6c4009 |
int *errnop); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _getrpcbyname_r \
|
|
Packit |
6c4009 |
(const char *name, struct rpcent *rpc, \
|
|
Packit |
6c4009 |
char *buffer, size_t buflen, int *errnop); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _getrpcbynumber_r \
|
|
Packit |
6c4009 |
(int number, struct rpcent *rpc, \
|
|
Packit |
6c4009 |
char *buffer, size_t buflen, int *errnop);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (files)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (nis)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (nisplus)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#undef DECLARE_NSS_PROTOTYPES
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# endif /* !_ISOMAC */
|
|
Packit |
6c4009 |
#endif
|