version 1.69, 2007/05/30 20:41:28
|
version 1.70, 2007/06/05 09:42:28
|
|
|
#endif | #endif |
| |
#if defined (PEGASUS_OS_TYPE_UNIX) || (PEGASUS_OS_VMS) | #if defined (PEGASUS_OS_TYPE_UNIX) || (PEGASUS_OS_VMS) |
# ifndef PEGASUS_OS_OS400 |
|
# include <unistd.h> | # include <unistd.h> |
# endif |
|
# include <fcntl.h> // File locking | # include <fcntl.h> // File locking |
# define PEGASUS_UID_T uid_t | # define PEGASUS_UID_T uid_t |
# define PEGASUS_GID_T gid_t | # define PEGASUS_GID_T gid_t |
|
|
@return True if the user and group IDs were retrieved | @return True if the user and group IDs were retrieved |
successfully, false otherwise. | successfully, false otherwise. |
*/ | */ |
#ifndef PEGASUS_OS_OS400 |
|
static Boolean lookupUserId( | static Boolean lookupUserId( |
const char* userName, | const char* userName, |
PEGASUS_UID_T& uid, | PEGASUS_UID_T& uid, |
PEGASUS_GID_T& gid); | PEGASUS_GID_T& gid); |
#endif |
|
| |
/** | /** |
Changes the process user context to the specified user and group. | Changes the process user context to the specified user and group. |
|
|
@return True if the user context is successfully changed, | @return True if the user context is successfully changed, |
false otherwise. | false otherwise. |
*/ | */ |
#ifndef PEGASUS_OS_OS400 |
|
static Boolean changeUserContext_SingleThreaded( | static Boolean changeUserContext_SingleThreaded( |
const char* userName, | const char* userName, |
const PEGASUS_UID_T& uid, | const PEGASUS_UID_T& uid, |
const PEGASUS_GID_T& gid); | const PEGASUS_GID_T& gid); |
#endif |
|
| |
/** | /** |
This function is used to get the process ID of the calling process. | This function is used to get the process ID of the calling process. |