NCBI C++ ToolKit
|
Search Toolkit Book for CUnixFeature
#include "ncbi_os_unix_p.hpp"
(Private to src/corelib
.)
Static Public Member Functions | |
static string | GetUserNameByUID (uid_t uid) |
Look up user name by given numeric user ID. More... | |
static uid_t | GetUserUIDByName (const string &user) |
Look up numeric user ID by symbolic user name. More... | |
static string | GetGroupNameByGID (gid_t gid) |
Look up group name by given numeric group ID. More... | |
static gid_t | GetGroupGIDByName (const string &group) |
Look up numeric group ID by symbolic group name. More... | |
CUnixFeature –.
Utility class with wrappers for UNIX features.
Definition at line 63 of file ncbi_os_unix_p.hpp.
Look up numeric group ID by symbolic group name.
group | Group name whose ID is looked up |
Definition at line 329 of file ncbi_os_unix.cpp.
References _ASSERT, buf, Critical(), ERR_POST_ONCE, Error(), GRP_BUF, MAX_TRY, n, NCBI_AS_STRING, NStr::NumericToString(), and ncbi::grid::netcache::search::fields::size.
Referenced by CDirEntry::SetOwner().
|
static |
Look up group name by given numeric group ID.
gid | Numeric group ID |
Definition at line 238 of file ncbi_os_unix.cpp.
References _ASSERT, buf, Critical(), ERR_POST_ONCE, Error(), GRP_BUF, MAX_TRY, n, NCBI_AS_STRING, NStr::NumericToString(), and ncbi::grid::netcache::search::fields::size.
Referenced by CDirEntry::GetOwner(), and CTar::x_Append().
|
static |
Look up user name by given numeric user ID.
user | Numeric user ID |
Definition at line 57 of file ncbi_os_unix.cpp.
References _ASSERT, buf, Critical(), ERR_POST_ONCE, Error(), MAX_TRY, n, NCBI_AS_STRING, NStr::NumericToString(), PWD_BUF, and ncbi::grid::netcache::search::fields::size.
Referenced by CDirEntry::GetOwner(), CSystemInfo::GetUserName(), and CTar::x_Append().
Look up numeric user ID by symbolic user name.
user | User name whose ID is looked up |
Definition at line 147 of file ncbi_os_unix.cpp.
References _ASSERT, buf, Critical(), ERR_POST_ONCE, Error(), MAX_TRY, n, NCBI_AS_STRING, NStr::NumericToString(), PWD_BUF, and ncbi::grid::netcache::search::fields::size.
Referenced by CDirEntry::SetOwner().