diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/apr_user.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/apr_user.h b/include/apr_user.h index 3c70da037..ac781bd6d 100644 --- a/include/apr_user.h +++ b/include/apr_user.h @@ -90,6 +90,18 @@ typedef gid_t apr_gid_t; #if APR_HAS_USER /*** + * Get the userid (and groupid) of the calling process + * @param userid Returns the user id + * @param groupid Returns the user's group id + * @param p The pool from which to allocate working space + * @tip This function is available only if APR_HAS_USER is defined. + * @deffunc apr_status_t apr_current_userid(apr_uid_t *userid, apr_gid_t *groupid, apr_pool_t *p) + */ +APR_DECLARE(apr_status_t) apr_current_userid(apr_uid_t *userid, + apr_gid_t *groupid, + apr_pool_t *p); + +/*** * Get the user name for a specified userid * @param username Pointer to new string containing user name (on output) * @param userid The userid |