(enlarge_archive): Conserve address space when temporarily mapping the
[glibc/history.git] / include / aliases.h
blob84c832fdd1cb90424a77757bcd29cc2c730c92e6
1 #ifndef _ALIASES_H
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 attribute_hidden;
8 extern int __old_getaliasent_r (struct aliasent *__restrict __result_buf,
9 char *__restrict __buffer, size_t __buflen,
10 struct aliasent **__restrict __result);
12 extern int __getaliasbyname_r (__const char *__restrict __name,
13 struct aliasent *__restrict __result_buf,
14 char *__restrict __buffer, size_t __buflen,
15 struct aliasent **__restrict __result);
16 extern int __old_getaliasbyname_r (__const char *__restrict __name,
17 struct aliasent *__restrict __result_buf,
18 char *__restrict __buffer, size_t __buflen,
19 struct aliasent **__restrict __result);
21 #define DECLARE_NSS_PROTOTYPES(service) \
22 extern enum nss_status _nss_ ## service ## _setaliasent (void); \
23 extern enum nss_status _nss_ ## service ## _endaliasent (void); \
24 extern enum nss_status _nss_ ## service ## _getaliasent_r \
25 (struct aliasent *alias, char *buffer, size_t buflen, \
26 int *errnop); \
27 extern enum nss_status _nss_ ## service ## _getaliasbyname_r \
28 (const char *name, struct aliasent *alias, \
29 char *buffer, size_t buflen, int *errnop);
32 DECLARE_NSS_PROTOTYPES (files)
33 DECLARE_NSS_PROTOTYPES (nis)
34 DECLARE_NSS_PROTOTYPES (nisplus)
35 #undef DECLARE_NSS_PROTOTYPES
37 #endif