pwd

pwd

Functions

struct passwd * getpwnam ()
int getpwnam_r ()
struct passwd * getpwuid ()
struct passwd * getpwent ()
void endpwent ()
void setpwent ()

Types and Values

#define gid_t
#define id_t
#define uid_t
struct passwd

Description

Functions

getpwnam ()

struct passwd *
getpwnam (char const *name);

getpwnam_r ()

int
getpwnam_r (char const *name,
            struct passwd *pw,
            char *buffer,
            size_t bufsize,
            struct passwd **result);

getpwuid ()

struct passwd *
getpwuid (uid_t uid);

getpwent ()

struct passwd *
getpwent (void);

endpwent ()

void
endpwent (void);

setpwent ()

void
setpwent (void);

Types and Values

gid_t

#define             gid_t

id_t

#define             id_t

uid_t

#define             uid_t

struct passwd

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;
};