aarch64: Use PTR_REG macro to fix ILP32 bug and make code consistent
[glibc.git] / include / aliases.h
blobece69ebe433fbec52d547275aeff48e025bacb0c
1 #ifndef _ALIASES_H
2 #include <inet/aliases.h>
4 # ifndef _ISOMAC
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);
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 extern int __old_getaliasbyname_r (const char *__restrict __name,
19 struct aliasent *__restrict __result_buf,
20 char *__restrict __buffer, size_t __buflen,
21 struct aliasent **__restrict __result);
23 #define DECLARE_NSS_PROTOTYPES(service) \
24 extern enum nss_status _nss_ ## service ## _setaliasent (void); \
25 extern enum nss_status _nss_ ## service ## _endaliasent (void); \
26 extern enum nss_status _nss_ ## service ## _getaliasent_r \
27 (struct aliasent *alias, char *buffer, size_t buflen, \
28 int *errnop); \
29 extern enum nss_status _nss_ ## service ## _getaliasbyname_r \
30 (const char *name, struct aliasent *alias, \
31 char *buffer, size_t buflen, int *errnop);
34 DECLARE_NSS_PROTOTYPES (files)
35 DECLARE_NSS_PROTOTYPES (nis)
36 DECLARE_NSS_PROTOTYPES (nisplus)
37 #undef DECLARE_NSS_PROTOTYPES
39 # endif /* !_ISOMAC */
40 #endif