Back to index

glibc  2.9
shadow.h
Go to the documentation of this file.
00001 #ifndef _SHADOW_H
00002 #include <shadow/shadow.h>
00003 
00004 /* Now define the internal interfaces.  */
00005 extern int __getspent_r (struct spwd *__result_buf, char *__buffer,
00006                       size_t __buflen, struct spwd **__result)
00007      attribute_hidden;
00008 extern int __old_getspent_r (struct spwd *__result_buf, char *__buffer,
00009                           size_t __buflen, struct spwd **__result);
00010 extern int __getspnam_r (__const char *__name, struct spwd *__result_buf,
00011                       char *__buffer, size_t __buflen,
00012                       struct spwd **__result);
00013 extern int __old_getspnam_r (__const char *__name, struct spwd *__result_buf,
00014                           char *__buffer, size_t __buflen,
00015                           struct spwd **__result);
00016 extern int __sgetspent_r (__const char *__string,
00017                        struct spwd *__result_buf, char *__buffer,
00018                        size_t __buflen, struct spwd **__result);
00019 extern int __fgetspent_r (FILE *__stream, struct spwd *__result_buf,
00020                        char *__buffer, size_t __buflen,
00021                        struct spwd **__result);
00022 extern int __lckpwdf (void);
00023 extern int __ulckpwdf (void);
00024 
00025 struct parser_data;
00026 extern int _nss_files_parse_spent (char *line, struct spwd *result,
00027                                struct parser_data *data,
00028                                size_t datalen, int *errnop);
00029 libc_hidden_proto (_nss_files_parse_spent)
00030 
00031 #define DECLARE_NSS_PROTOTYPES(service)                               \
00032 extern enum nss_status _nss_ ## service ## _setspent (int);           \
00033 extern enum nss_status _nss_ ## service ## _endspent (void);          \
00034 extern enum nss_status _nss_ ## service ## _getspent_r                \
00035                        (struct spwd *pwd, char *buffer, size_t buflen,       \
00036                      int *errnop);                             \
00037 extern enum nss_status _nss_ ## service ## _getspnam_r                \
00038                        (const char *name, struct spwd *pwd,           \
00039                      char *buffer, size_t buflen, int *errnop);
00040 
00041 DECLARE_NSS_PROTOTYPES (compat)
00042 DECLARE_NSS_PROTOTYPES (files)
00043 DECLARE_NSS_PROTOTYPES (hesiod)
00044 DECLARE_NSS_PROTOTYPES (nis)
00045 DECLARE_NSS_PROTOTYPES (nisplus)
00046 
00047 #undef DECLARE_NSS_PROTOTYPES
00048 
00049 
00050 #endif