]> git.ipfire.org Git - thirdparty/glibc.git/blob - include/aliases.h
test-container: Fix "unused code" warnings on HURD
[thirdparty/glibc.git] / include / aliases.h
1 #ifndef _ALIASES_H
2 #include <inet/aliases.h>
3
4 # ifndef _ISOMAC
5
6 extern int __getaliasent_r (struct aliasent *__restrict __result_buf,
7 char *__restrict __buffer, size_t __buflen,
8 struct aliasent **__restrict __result)
9 attribute_hidden;
10 extern int __old_getaliasent_r (struct aliasent *__restrict __result_buf,
11 char *__restrict __buffer, size_t __buflen,
12 struct aliasent **__restrict __result);
13
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)
18 attribute_hidden;
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);
23
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, \
29 int *errnop); \
30 extern enum nss_status _nss_ ## service ## _getaliasbyname_r \
31 (const char *name, struct aliasent *alias, \
32 char *buffer, size_t buflen, int *errnop);
33
34
35 DECLARE_NSS_PROTOTYPES (files)
36 #undef DECLARE_NSS_PROTOTYPES
37
38 # endif /* !_ISOMAC */
39 #endif