Back to index

glibc  2.9
netdb.h
Go to the documentation of this file.
00001 #ifndef _RPC_NETDB_H
00002 #include <sunrpc/rpc/netdb.h>
00003 
00004 extern int __getrpcbyname_r (__const char *__name, struct rpcent *__result_buf,
00005                           char *__buffer, size_t __buflen,
00006                           struct rpcent **__result);
00007 extern int __old_getrpcbyname_r (__const char *__name,
00008                              struct rpcent *__result_buf,
00009                              char *__buffer, size_t __buflen,
00010                              struct rpcent **__result);
00011 
00012 extern int __getrpcbynumber_r (int __number, struct rpcent *__result_buf,
00013                             char *__buffer, size_t __buflen,
00014                             struct rpcent **__result);
00015 extern int __old_getrpcbynumber_r (int __number, struct rpcent *__result_buf,
00016                                char *__buffer, size_t __buflen,
00017                                struct rpcent **__result);
00018 
00019 extern int __getrpcent_r (struct rpcent *__result_buf, char *__buffer,
00020                        size_t __buflen, struct rpcent **__result)
00021      attribute_hidden;
00022 extern int __old_getrpcent_r (struct rpcent *__result_buf, char *__buffer,
00023                            size_t __buflen, struct rpcent **__result);
00024 
00025 struct parser_data;
00026 extern int _nss_files_parse_rpcent (char *line, struct rpcent *result,
00027                                 struct parser_data *data,
00028                                 size_t datalen, int *errnop);
00029 libnss_files_hidden_proto (_nss_files_parse_rpcent)
00030 
00031 #define DECLARE_NSS_PROTOTYPES(service)                                     \
00032 extern enum nss_status _nss_ ## service ## _setrpcent (int);                \
00033 extern enum nss_status _nss_ ## service ## _endrpcent (void);               \
00034 extern enum nss_status _nss_ ## service ## _getrpcent_r                     \
00035                      (struct rpcent *rpc, char *buffer, size_t buflen,      \
00036                      int *errnop);                                   \
00037 extern enum nss_status _nss_ ## service ## _getrpcbyname_r                  \
00038                      (const char *name, struct rpcent *rpc,                 \
00039                      char *buffer, size_t buflen, int *errnop);             \
00040 extern enum nss_status _nss_ ## service ## _getrpcbynumber_r                \
00041                      (int number, struct rpcent *rpc,                       \
00042                      char *buffer, size_t buflen, int *errnop);
00043 
00044 
00045 DECLARE_NSS_PROTOTYPES (files)
00046 DECLARE_NSS_PROTOTYPES (nis)
00047 DECLARE_NSS_PROTOTYPES (nisplus)
00048 
00049 #undef DECLARE_NSS_PROTOTYPES
00050 
00051 #endif