|
Packit |
6c4009 |
#ifndef _PWD_H
|
|
Packit |
6c4009 |
#include <pwd/pwd.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifndef _ISOMAC
|
|
Packit |
6c4009 |
/* Now define the internal interfaces. */
|
|
Packit |
6c4009 |
extern int __getpwent_r (struct passwd *__resultbuf, char *__buffer,
|
|
Packit |
6c4009 |
size_t __buflen, struct passwd **__result)
|
|
Packit |
6c4009 |
attribute_hidden;
|
|
Packit |
6c4009 |
extern int __old_getpwent_r (struct passwd *__resultbuf, char *__buffer,
|
|
Packit |
6c4009 |
size_t __buflen, struct passwd **__result);
|
|
Packit |
6c4009 |
extern int __getpwuid_r (__uid_t __uid, struct passwd *__resultbuf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct passwd **__result) attribute_hidden;
|
|
Packit |
6c4009 |
extern int __old_getpwuid_r (__uid_t __uid, struct passwd *__resultbuf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct passwd **__result);
|
|
Packit |
6c4009 |
extern int __getpwnam_r (const char *__name, struct passwd *__resultbuf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct passwd **__result) attribute_hidden;
|
|
Packit |
6c4009 |
extern int __old_getpwnam_r (const char *__name, struct passwd *__resultbuf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct passwd **__result);
|
|
Packit |
6c4009 |
extern int __fgetpwent_r (FILE * __stream, struct passwd *__resultbuf,
|
|
Packit |
6c4009 |
char *__buffer, size_t __buflen,
|
|
Packit |
6c4009 |
struct passwd **__result) attribute_hidden;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <nss.h>
|
|
Packit |
6c4009 |
|
|
Packit Service |
8bbac7 |
struct parser_data;
|
|
Packit Service |
8bbac7 |
extern int _nss_files_parse_pwent (char *line, struct passwd *result,
|
|
Packit Service |
8bbac7 |
struct parser_data *data,
|
|
Packit Service |
8bbac7 |
size_t datalen, int *errnop);
|
|
Packit Service |
8bbac7 |
libc_hidden_proto (_nss_files_parse_pwent)
|
|
Packit Service |
8bbac7 |
|
|
Packit |
6c4009 |
#define DECLARE_NSS_PROTOTYPES(service) \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _setpwent (int); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _endpwent (void); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _getpwnam_r \
|
|
Packit |
6c4009 |
(const char *name, struct passwd *pwd, \
|
|
Packit |
6c4009 |
char *buffer, size_t buflen, int *errnop); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ## _getpwuid_r \
|
|
Packit |
6c4009 |
(uid_t uid, struct passwd *pwd, \
|
|
Packit |
6c4009 |
char *buffer, size_t buflen, int *errnop); \
|
|
Packit |
6c4009 |
extern enum nss_status _nss_ ## service ##_getpwent_r \
|
|
Packit |
6c4009 |
(struct passwd *result, char *buffer, \
|
|
Packit |
6c4009 |
size_t buflen, int *errnop);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (compat)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (files)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (hesiod)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (nis)
|
|
Packit |
6c4009 |
DECLARE_NSS_PROTOTYPES (nisplus)
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#undef DECLARE_NSS_PROTOTYPES
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#endif
|