diff options
author | sussman <sussman@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-26 21:49:32 +0000 |
---|---|---|
committer | sussman <sussman@13f79535-47bb-0310-9956-ffa450edef68> | 2001-07-26 21:49:32 +0000 |
commit | fcc668fff20e9484db4ccce188eae619d55cbecb (patch) | |
tree | 6c409834b16ab6198aebf8ea77ec0ebaaa0c327b /include/apr_user.h | |
parent | cfcfcabe93f8fa1b433897168d48dd6a4d2e6d96 (diff) | |
download | libapr-fcc668fff20e9484db4ccce188eae619d55cbecb.tar.gz |
* apr_user.h (apr_current_userid): new declaration.
* userinfo.c (apr_current_userid): implement Unix version.
Somebody want to write a Win32 equivalent?
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62037 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/apr_user.h')
-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 |