pwd.h
#ifndef _PWD_H
#define _PWD_H 1
#include
__BEGIN_DECLS
#include
#define __need_size_t
#include
#if defined __USE_XOPEN || defined __USE_XOPEN2K
# ifndef __gid_t_defined
typedef __gid_t gid_t;
# define __gid_t_defined
# endif
# ifndef __uid_t_defined
typedef __uid_t uid_t;
# define __uid_t_defined
# endif
#endif
struct passwd
{
char *pw_name;
char *pw_passwd;
__uid_t pw_uid;
__gid_t pw_gid;
char *pw_gecos;
char *pw_dir;
char *pw_shell;
};
#if defined __USE_SVID || defined __USE_GNU
# define __need_FILE
# include
#endif
#if defined __USE_SVID || defined __USE_MISC || defined __USE_XOPEN_EXTENDED
extern void setpwent (void);
extern void endpwent (void);
extern struct passwd *getpwent (void);
#endif
#ifdef __USE_SVID
extern struct passwd *fgetpwent (FILE *__stream);
extern int putpwent (__const struct passwd *__restrict __p,
FILE *__restrict __f);
#endif
extern struct passwd *getpwuid (__uid_t __uid);
extern struct passwd *getpwnam (__const char *__name);
#if defined __USE_POSIX || defined __USE_MISC
# ifdef __USE_MISC
# define NSS_BUFLEN_PASSWD 1024
# endif
# if defined __USE_SVID || defined __USE_MISC
extern int getpwent_r (struct passwd *__restrict __resultbuf,
char *__restrict __buffer, size_t __buflen,
struct passwd **__restrict __result);
# endif
extern int getpwuid_r (__uid_t __uid,
struct passwd *__restrict __resultbuf,
char *__restrict __buffer, size_t __buflen,
struct passwd **__restrict __result);
extern int getpwnam_r (__const char *__restrict __name,
struct passwd *__restrict __resultbuf,
char *__restrict __buffer, size_t __buflen,
struct passwd **__restrict __result);
# ifdef __USE_SVID
extern int fgetpwent_r (FILE *__restrict __stream,
struct passwd *__restrict __resultbuf,
char *__restrict __buffer, size_t __buflen,
struct passwd **__restrict __result);
# endif
#endif
#ifdef __USE_GNU
extern int getpw (__uid_t __uid, char *__buffer);
#endif
__END_DECLS
#endif
|
|