Back to index

glibc  2.9
aliases.h
Go to the documentation of this file.
00001 #ifndef _ALIASES_H
00002 #include <inet/aliases.h>
00003 
00004 extern int __getaliasent_r (struct aliasent *__restrict __result_buf,
00005                          char *__restrict __buffer, size_t __buflen,
00006                          struct aliasent **__restrict __result)
00007      attribute_hidden;
00008 extern int __old_getaliasent_r (struct aliasent *__restrict __result_buf,
00009                             char *__restrict __buffer, size_t __buflen,
00010                             struct aliasent **__restrict __result);
00011 
00012 extern int __getaliasbyname_r (__const char *__restrict __name,
00013                             struct aliasent *__restrict __result_buf,
00014                             char *__restrict __buffer, size_t __buflen,
00015                             struct aliasent **__restrict __result);
00016 extern int __old_getaliasbyname_r (__const char *__restrict __name,
00017                                struct aliasent *__restrict __result_buf,
00018                                char *__restrict __buffer, size_t __buflen,
00019                                struct aliasent **__restrict __result);
00020 
00021 #define DECLARE_NSS_PROTOTYPES(service)                                    \
00022 extern enum nss_status _nss_ ## service ## _setaliasent (void);                   \
00023 extern enum nss_status _nss_ ## service ## _endaliasent (void);                   \
00024 extern enum nss_status _nss_ ## service ## _getaliasent_r                  \
00025                        (struct aliasent *alias, char *buffer, size_t buflen, \
00026                      int *errnop);                                  \
00027 extern enum nss_status _nss_ ## service ## _getaliasbyname_r               \
00028                        (const char *name, struct aliasent *alias,          \
00029                      char *buffer, size_t buflen, int *errnop);
00030 
00031 
00032 DECLARE_NSS_PROTOTYPES (files)
00033 DECLARE_NSS_PROTOTYPES (nis)
00034 DECLARE_NSS_PROTOTYPES (nisplus)
00035 #undef DECLARE_NSS_PROTOTYPES
00036 
00037 #endif