Data Structures | Macros | Functions
Pwd.h functions

This header provides functions ported from Unix in pwd.h. More...

Data Structures

struct  passwd
 A structure that describes a password. More...
 

Functions

EAPI struct passwdgetpwnam (const char *n)
 Return a passwd structure. More...
 
EAPI struct passwdgetpwuid (uid_t uid)
 Return a passwd structure. More...
 

Detailed Description

This header provides functions ported from Unix in pwd.h.

Function Documentation

◆ getpwnam()

EAPI struct passwd* getpwnam ( const char *  n)

Return a passwd structure.

Parameters
nThe name of the user.
Returns
A stacally allocated passwd structure.

This function fills a static buffer passwd with the user name n.

Conformity: None.

Supported OS: Windows XP.

References evil_wchar_to_char().

Referenced by getpwuid().

◆ getpwuid()

EAPI struct passwd* getpwuid ( uid_t  uid)

Return a passwd structure.

Parameters
uidThe User ID.
Returns
A stacally allocated passwd structure.

This function fills a static buffer passwd with uid and the user name.

Conformity: None.

Supported OS: Windows XP.

References getpwnam().