summaryrefslogtreecommitdiff
path: root/include/mpm_common.h
diff options
context:
space:
mode:
authorStefan Fritsch <sf@sfritsch.de>2011-12-27 19:43:09 +0100
committerStefan Fritsch <sf@sfritsch.de>2011-12-27 19:43:09 +0100
commit5b56d06a01a150fc9685e6f913774be3f9deb49f (patch)
tree9fbfbe0313b782941f1c2c4d3cb5203817144108 /include/mpm_common.h
parent498ea95018b369e62646a98c7d7d5413b56e170c (diff)
downloadapache2-upstream/2.2.19.tar.gz
Upstream tarball 2.2.19upstream/2.2.19
Diffstat (limited to 'include/mpm_common.h')
-rw-r--r--include/mpm_common.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/mpm_common.h b/include/mpm_common.h
index bacf76f2..125fe809 100644
--- a/include/mpm_common.h
+++ b/include/mpm_common.h
@@ -216,6 +216,19 @@ AP_DECLARE(gid_t) ap_gname2id(const char *name);
#define AP_MPM_HARD_LIMITS_FILE APACHE_MPM_DIR "/mpm_default.h"
+#ifndef HAVE_INITGROUPS
+/**
+ * The initgroups() function initializes the group access list by reading the
+ * group database /etc/group and using all groups of which user is a member.
+ * The additional group basegid is also added to the list.
+ * @param name The user name - must be non-NULL
+ * @param basegid The basegid to add
+ * @return returns 0 on success
+ * @fn int initgroups(const char *name, gid_t basegid)
+ */
+int initgroups(const char *name, gid_t basegid);
+#endif
+
#ifdef AP_MPM_USES_POD
typedef struct ap_pod_t ap_pod_t;