2 #include <inet/aliases.h>
6 extern int __getaliasent_r (struct aliasent *__restrict __result_buf,
7 char *__restrict __buffer, size_t __buflen,
8 struct aliasent **__restrict __result)
10 extern int __old_getaliasent_r (struct aliasent *__restrict __result_buf,
11 char *__restrict __buffer, size_t __buflen,
12 struct aliasent **__restrict __result);
14 extern int __getaliasbyname_r (const char *__restrict __name,
15 struct aliasent *__restrict __result_buf,
16 char *__restrict __buffer, size_t __buflen,
17 struct aliasent **__restrict __result)
19 extern int __old_getaliasbyname_r (const char *__restrict __name,
20 struct aliasent *__restrict __result_buf,
21 char *__restrict __buffer, size_t __buflen,
22 struct aliasent **__restrict __result);
24 #define DECLARE_NSS_PROTOTYPES(service) \
25 extern enum nss_status _nss_ ## service ## _setaliasent (void); \
26 extern enum nss_status _nss_ ## service ## _endaliasent (void); \
27 extern enum nss_status _nss_ ## service ## _getaliasent_r \
28 (struct aliasent *alias, char *buffer, size_t buflen, \
30 extern enum nss_status _nss_ ## service ## _getaliasbyname_r \
31 (const char *name, struct aliasent *alias, \
32 char *buffer, size_t buflen, int *errnop);
35 DECLARE_NSS_PROTOTYPES (files)
36 DECLARE_NSS_PROTOTYPES (nis)
37 DECLARE_NSS_PROTOTYPES (nisplus)
38 #undef DECLARE_NSS_PROTOTYPES
40 # endif /* !_ISOMAC */