Fix parsing of /sys/devices/system/cpu/online (bug 25859)
[glibc.git] / include / aliases.h
blobdb825886300c8f23abcf00512f7d8d2a7e2b189d
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 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);
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);
35 DECLARE_NSS_PROTOTYPES (files)
36 #undef DECLARE_NSS_PROTOTYPES
38 # endif /* !_ISOMAC */
39 #endif