MentOS
0.8.0
The Mentoring Operating System
|
Contains the structure and functions for managing passwords. More...
Go to the source code of this file.
Classes | |
struct | passwd_t |
Stores user account information. More... | |
Typedefs | |
typedef struct passwd_t | passwd_t |
Stores user account information. | |
Functions | |
passwd_t * | getpwnam (const char *name) |
Provides access to the password database entry for name . More... | |
passwd_t * | getpwuid (uid_t uid) |
Provides access to the password database entry for uid . More... | |
int | getpwnam_r (const char *name, passwd_t *pwd, char *buf, size_t buflen, passwd_t **result) |
Provides the same information as getpwnam but it stores the results inside pwd, and the string information are store store inside buf . More... | |
int | getpwuid_r (uid_t uid, passwd_t *pwd, char *buf, size_t buflen, passwd_t **result) |
Provides the same information as getpwuid but it stores the results inside pwd, and the string information are store store inside buf . More... | |
Contains the structure and functions for managing passwords.
passwd_t* getpwnam | ( | const char * | name | ) |
Provides access to the password database entry for name
.
name | The name to search inside the database. |
Provides the same information as getpwnam but it stores the results inside pwd, and the string information are store store inside buf
.
name | The name to search inside the database. |
pwd | The structure containing pointers to the entry fields. |
buf | The buffer where the strings should be stored. |
buflen | The lenght of the buffer. |
result | A pointer to the result or NULL is stored here. |
Provides access to the password database entry for uid
.
uid | The uid to search inside the database. |
Provides the same information as getpwuid but it stores the results inside pwd, and the string information are store store inside buf
.
uid | The uid to search inside the database. |
pwd | The structure containing pointers to the entry fields. |
buf | The buffer where the strings should be stored. |
buflen | The lenght of the buffer. |
result | A pointer to the result or NULL is stored here. |