Defines | |
#define | apr_uid_compare(left, right) (((left) == (right)) ? APR_SUCCESS : APR_EMISMATCH) |
#define | apr_gid_compare(left, right) (((left) == (right)) ? APR_SUCCESS : APR_EMISMATCH) |
Typedefs | |
typedef uid_t | apr_uid_t |
typedef gid_t | apr_gid_t |
Functions | |
apr_status_t | apr_uid_current (apr_uid_t *userid, apr_gid_t *groupid, apr_pool_t *p) |
apr_status_t | apr_uid_name_get (char **username, apr_uid_t userid, apr_pool_t *p) |
apr_status_t | apr_uid_get (apr_uid_t *userid, apr_gid_t *groupid, const char *username, apr_pool_t *p) |
apr_status_t | apr_uid_homepath_get (char **dirname, const char *username, apr_pool_t *p) |
apr_status_t | apr_gid_name_get (char **groupname, apr_gid_t groupid, apr_pool_t *p) |
apr_status_t | apr_gid_get (apr_gid_t *groupid, const char *groupname, apr_pool_t *p) |
#define apr_gid_compare | ( | left, | |||
right | ) | (((left) == (right)) ? APR_SUCCESS : APR_EMISMATCH) |
Compare two group identifiers for equality.
left | One gid to test | |
right | Another gid to test |
#define apr_uid_compare | ( | left, | |||
right | ) | (((left) == (right)) ? APR_SUCCESS : APR_EMISMATCH) |
Compare two user identifiers for equality.
left | One uid to test | |
right | Another uid to test |
typedef gid_t apr_gid_t |
Structure for determining group ownership.
typedef uid_t apr_uid_t |
Structure for determining user ownership.
apr_status_t apr_gid_get | ( | apr_gid_t * | groupid, | |
const char * | groupname, | |||
apr_pool_t * | p | |||
) |
Get the groupid for a specified group name
groupid | Pointer to the group id (on output) | |
groupname | The group name to look up | |
p | The pool from which to allocate the string |
apr_status_t apr_gid_name_get | ( | char ** | groupname, | |
apr_gid_t | groupid, | |||
apr_pool_t * | p | |||
) |
Get the group name for a specified groupid
groupname | Pointer to new string containing group name (on output) | |
groupid | The groupid | |
p | The pool from which to allocate the string |
apr_status_t apr_uid_current | ( | apr_uid_t * | userid, | |
apr_gid_t * | groupid, | |||
apr_pool_t * | p | |||
) |
Get the userid (and groupid) of the calling process
userid | Returns the user id | |
groupid | Returns the user's group id | |
p | The pool from which to allocate working space |
apr_status_t apr_uid_get | ( | apr_uid_t * | userid, | |
apr_gid_t * | groupid, | |||
const char * | username, | |||
apr_pool_t * | p | |||
) |
Get the userid (and groupid) for the specified username
userid | Returns the user id | |
groupid | Returns the user's group id | |
username | The username to lookup | |
p | The pool from which to allocate working space |
apr_status_t apr_uid_homepath_get | ( | char ** | dirname, | |
const char * | username, | |||
apr_pool_t * | p | |||
) |
Get the home directory for the named user
dirname | Pointer to new string containing directory name (on output) | |
username | The named user | |
p | The pool from which to allocate the string |
apr_status_t apr_uid_name_get | ( | char ** | username, | |
apr_uid_t | userid, | |||
apr_pool_t * | p | |||
) |
Get the user name for a specified userid
username | Pointer to new string containing user name (on output) | |
userid | The userid | |
p | The pool from which to allocate the string |