]> git.ipfire.org Git - thirdparty/glibc.git/blame - include/aliases.h
test-container: Fix "unused code" warnings on HURD
[thirdparty/glibc.git] / include / aliases.h
CommitLineData
c3301189 1#ifndef _ALIASES_H
26761c28 2#include <inet/aliases.h>
c3301189 3
47755784
ZW
4# ifndef _ISOMAC
5
c3301189
UD
6extern int __getaliasent_r (struct aliasent *__restrict __result_buf,
7 char *__restrict __buffer, size_t __buflen,
6d9c194a
UD
8 struct aliasent **__restrict __result)
9 attribute_hidden;
c3301189
UD
10extern int __old_getaliasent_r (struct aliasent *__restrict __result_buf,
11 char *__restrict __buffer, size_t __buflen,
12 struct aliasent **__restrict __result);
13
a784e502 14extern int __getaliasbyname_r (const char *__restrict __name,
c3301189
UD
15 struct aliasent *__restrict __result_buf,
16 char *__restrict __buffer, size_t __buflen,
9635ce69
L
17 struct aliasent **__restrict __result)
18 attribute_hidden;
a784e502 19extern int __old_getaliasbyname_r (const char *__restrict __name,
c3301189
UD
20 struct aliasent *__restrict __result_buf,
21 char *__restrict __buffer, size_t __buflen,
22 struct aliasent **__restrict __result);
23
23bab906
AJ
24#define DECLARE_NSS_PROTOTYPES(service) \
25extern enum nss_status _nss_ ## service ## _setaliasent (void); \
26extern enum nss_status _nss_ ## service ## _endaliasent (void); \
27extern enum nss_status _nss_ ## service ## _getaliasent_r \
a784e502 28 (struct aliasent *alias, char *buffer, size_t buflen, \
23bab906
AJ
29 int *errnop); \
30extern enum nss_status _nss_ ## service ## _getaliasbyname_r \
a784e502 31 (const char *name, struct aliasent *alias, \
23bab906
AJ
32 char *buffer, size_t buflen, int *errnop);
33
34
35DECLARE_NSS_PROTOTYPES (files)
23bab906
AJ
36#undef DECLARE_NSS_PROTOTYPES
37
47755784 38# endif /* !_ISOMAC */
c3301189 39#endif