Typedefs | |
typedef uid_t | UserID |
Functions | |
String | getEffectiveUserId () |
Get the effective user id. | |
String | getCurrentUserName () |
String | getUserName (UserID uid, bool &success) |
If the username is invalid, or if getUserName() fails for any other reason, 'success' will be set to false. | |
UserID | getUserId (const String &userName, bool &validUserName) |
Convert a textual username into a platform native user type. | |
Variables | |
Mutex | g_getpwMutex |
const UserID | INVALID_USERID = ~0 |
|
Definition at line 51 of file UserUtils.hpp. |
|
Definition at line 79 of file UserUtils.cpp. References getUserName(). |
|
Get the effective user id. On POSIX platforms this calls geteuid(). Definition at line 64 of file UserUtils.cpp. |
|
Convert a textual username into a platform native user type.
Definition at line 148 of file UserUtils.cpp. References BLOCXX_NAMESPACE::String::c_str(), g_getpwMutex, and INVALID_USERID. |
|
If the username is invalid, or if getUserName() fails for any other reason, 'success' will be set to false. On success, 'success' is set to true. Definition at line 95 of file UserUtils.cpp. References g_getpwMutex, and name. Referenced by getCurrentUserName(). |
|
Definition at line 91 of file UserUtils.cpp. Referenced by getUserId(), and getUserName(). |
|
Definition at line 52 of file UserUtils.hpp. Referenced by getUserId(). |