lh | 9ed821d | 2023-04-07 01:36:19 -0700 | [diff] [blame] | 1 | #ifndef _ALIASES_H |
| 2 | #include <inet/aliases.h> |
| 3 | |
| 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); |
| 11 | |
| 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); |
| 20 | |
| 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); |
| 30 | |
| 31 | |
| 32 | DECLARE_NSS_PROTOTYPES (files) |
| 33 | DECLARE_NSS_PROTOTYPES (nis) |
| 34 | DECLARE_NSS_PROTOTYPES (nisplus) |
| 35 | #undef DECLARE_NSS_PROTOTYPES |
| 36 | |
| 37 | #endif |