Pwd.h functions

- Main Page
- Related Pages
- Modules
- Namespaces
- Data Structures
- Files
- Examples

Data Structures | Macros | Functions
Pwd.h functions
Evil

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

## Data Structures
struct | passwd
| A structure that describes a password. More...

## Functions
EAPI struct passwd * | getpwnam (const char *n)
| Return a passwd structure. More...
EAPI struct passwd * | getpwuid (uid_t uid)
| Return a passwd structure. More...

## Detailed Description

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

## Function Documentation

EAPI struct passwd* getpwnam | ( | const char * | n | ) |

Return a passwd structure.

Parameters

  n | The 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(), passwd::pw_dir, passwd::pw_gecos, passwd::pw_name, and passwd::pw_shell.

Referenced by getpwuid().

EAPI struct passwd* getpwuid | ( | uid_t | uid | ) |

Return a passwd structure.

Parameters

  uid | The 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().