The manual
ginnOS
The reference: libc, the libraries and the kernel
Loading...
Searching...
No Matches
pwd.h File Reference

the user database (/etc/passwd: name:password:uid:gid:gecos:home:shell). More...

#include <sys/types.h>

Go to the source code of this file.

Data Structures

struct  passwd

Functions

struct passwd * getpwuid (uid_t uid)
 look up a user by id or name.
struct passwd * getpwnam (const char *name)

Detailed Description

the user database (/etc/passwd: name:password:uid:gid:gecos:home:shell).

Function Documentation

◆ getpwuid()

struct passwd * getpwuid ( uid_t uid)

look up a user by id or name.

the result is overwritten by the next call.

Returns
the entry, or NULL if there is none.

◆ getpwnam()

struct passwd * getpwnam ( const char * name)