aliases.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. #ifndef _ALIASES_H
  2. #include <nss/aliases.h>
  3. # ifndef _ISOMAC
  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. extern int __getaliasbyname_r (const char *__restrict __name,
  12. struct aliasent *__restrict __result_buf,
  13. char *__restrict __buffer, size_t __buflen,
  14. struct aliasent **__restrict __result)
  15. attribute_hidden;
  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. #define DECLARE_NSS_PROTOTYPES(service) \
  21. extern enum nss_status _nss_ ## service ## _setaliasent (void); \
  22. extern enum nss_status _nss_ ## service ## _endaliasent (void); \
  23. extern enum nss_status _nss_ ## service ## _getaliasent_r \
  24. (struct aliasent *alias, char *buffer, size_t buflen, \
  25. int *errnop); \
  26. extern enum nss_status _nss_ ## service ## _getaliasbyname_r \
  27. (const char *name, struct aliasent *alias, \
  28. char *buffer, size_t buflen, int *errnop);
  29. DECLARE_NSS_PROTOTYPES (files)
  30. #undef DECLARE_NSS_PROTOTYPES
  31. # endif /* !_ISOMAC */
  32. #endif