#include <string>
#include "my_config.h"
#include <pwd.h>
#include <sys/types.h>
Go to the source code of this file.
|
struct | PasswdValue |
| Shadow struct for passwd which has proper value semantics, so that it can be safely copied and assigned to. More...
|
|
|
PasswdValue | my_getpwnam (const char *) |
| Wrapper around the getpwnam_r() POSIX function which places the contents of the passwd struct into an object with value semantics and returns this. More...
|
|
PasswdValue | my_getpwuid (uid_t) |
| Wrapper around the getpwuid_r() POSIX function which places the contents of the passwd struct into an object with value semantics and returns this. More...
|
|
◆ my_getpwnam()
Wrapper around the getpwnam_r() POSIX function which places the contents of the passwd struct into an object with value semantics and returns this.
- Parameters
-
- Return values
-
PasswdValue | representing user's passwd entry. PasswdValue::IsVoid() returns true if no such user exists or an error occurred. In the latter case errno is set. |
◆ my_getpwuid()
Wrapper around the getpwuid_r() POSIX function which places the contents of the passwd struct into an object with value semantics and returns this.
- Parameters
-
- Return values
-
PasswdValue | representing user's passwd entry. PasswdValue::IsVoid() returns true if no such user exists or an error occurred. In the latter case errno is set. |