2 #include <inet/aliases.h>
4 extern int __getaliasent_r (struct aliasent
*__restrict __result_buf
,
5 char *__restrict __buffer
, size_t __buflen
,
6 struct aliasent
**__restrict __result
);
7 extern int __old_getaliasent_r (struct aliasent
*__restrict __result_buf
,
8 char *__restrict __buffer
, size_t __buflen
,
9 struct aliasent
**__restrict __result
);
11 extern int __getaliasbyname_r (__const
char *__restrict __name
,
12 struct aliasent
*__restrict __result_buf
,
13 char *__restrict __buffer
, size_t __buflen
,
14 struct aliasent
**__restrict __result
);
15 extern int __old_getaliasbyname_r (__const
char *__restrict __name
,
16 struct aliasent
*__restrict __result_buf
,
17 char *__restrict __buffer
, size_t __buflen
,
18 struct aliasent
**__restrict __result
);
20 #define DECLARE_NSS_PROTOTYPES(service) \
21 extern enum nss_status _nss_ ## service ## _setaliasent (void); \
22 extern enum nss_status _nss_ ## service ## _endaliasent (void); \
23 extern enum nss_status _nss_ ## service ## _getaliasent_r \
24 (struct aliasent *alias, char *buffer, size_t buflen, \
26 extern enum nss_status _nss_ ## service ## _getaliasbyname_r \
27 (const char *name, struct aliasent *alias, \
28 char *buffer, size_t buflen, int *errnop);
31 DECLARE_NSS_PROTOTYPES (files
)
32 DECLARE_NSS_PROTOTYPES (nis
)
33 DECLARE_NSS_PROTOTYPES (nisplus
)
34 #undef DECLARE_NSS_PROTOTYPES