summaryrefslogtreecommitdiffstats
path: root/os/unix
diff options
context:
space:
mode:
authorVictor J. Orlikowski <orlikowski@apache.org>2001-07-30 19:55:38 +0200
committerVictor J. Orlikowski <orlikowski@apache.org>2001-07-30 19:55:38 +0200
commit45b321443b34f0a4625fb7b5986ec451670f9bc2 (patch)
tree8a0652798484b0c48ee16ec6ec4f02ef99c98ab9 /os/unix
parentBe a bit more explicit. If the filetype is not an APR_REG, the fail the request. (diff)
downloadapache2-45b321443b34f0a4625fb7b5986ec451670f9bc2.tar.xz
apache2-45b321443b34f0a4625fb7b5986ec451670f9bc2.zip
httpd.exp and lots of other export files are generated based on the
AP[RU]_DECLARE macros. This commit gets mod_cgid working again as a DSO on AIX. However, this brings up the need to look for any functions that are available as part of the API, and AP[RU]_DECLAREing them, so things don't blow up in DSOs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@89790 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'os/unix')
-rw-r--r--os/unix/unixd.c10
-rw-r--r--os/unix/unixd.h10
2 files changed, 12 insertions, 8 deletions
diff --git a/os/unix/unixd.c b/os/unix/unixd.c
index 9cdbd7384f..0a9f4ab641 100644
--- a/os/unix/unixd.c
+++ b/os/unix/unixd.c
@@ -147,7 +147,7 @@ static int set_group_privs(void)
}
-int unixd_setup_child(void)
+AP_DECLARE(int) unixd_setup_child(void)
{
if (set_group_privs()) {
return -1;
@@ -182,7 +182,8 @@ int unixd_setup_child(void)
}
-const char *unixd_set_user(cmd_parms *cmd, void *dummy, const char *arg)
+AP_DECLARE(const char *) unixd_set_user(cmd_parms *cmd, void *dummy,
+ const char *arg)
{
const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
if (err != NULL) {
@@ -208,7 +209,8 @@ const char *unixd_set_user(cmd_parms *cmd, void *dummy, const char *arg)
return NULL;
}
-const char *unixd_set_group(cmd_parms *cmd, void *dummy, const char *arg)
+AP_DECLARE(const char *) unixd_set_group(cmd_parms *cmd, void *dummy,
+ const char *arg)
{
const char *err = ap_check_cmd_context(cmd, GLOBAL_ONLY);
if (err != NULL) {
@@ -220,7 +222,7 @@ const char *unixd_set_group(cmd_parms *cmd, void *dummy, const char *arg)
return NULL;
}
-void unixd_pre_config(apr_pool_t *ptemp)
+AP_DECLARE(void) unixd_pre_config(apr_pool_t *ptemp)
{
apr_finfo_t wrapper;
diff --git a/os/unix/unixd.h b/os/unix/unixd.h
index 344f5a7183..d1b5abdeec 100644
--- a/os/unix/unixd.h
+++ b/os/unix/unixd.h
@@ -101,10 +101,12 @@ typedef struct {
} unixd_config_rec;
extern unixd_config_rec unixd_config;
-int unixd_setup_child(void);
-void unixd_pre_config(apr_pool_t *ptemp);
-const char *unixd_set_user(cmd_parms *cmd, void *dummy, const char *arg);
-const char *unixd_set_group(cmd_parms *cmd, void *dummy, const char *arg);
+AP_DECLARE(int) unixd_setup_child(void);
+AP_DECLARE(void) unixd_pre_config(apr_pool_t *ptemp);
+AP_DECLARE(const char *) unixd_set_user(cmd_parms *cmd, void *dummy,
+ const char *arg);
+AP_DECLARE(const char *) unixd_set_group(cmd_parms *cmd, void *dummy,
+ const char *arg);
#if defined(RLIMIT_CPU) || defined(RLIMIT_DATA) || defined(RLIMIT_VMEM) || defined(RLIMIT_NPROC) || defined(RLIMIT_AS)
AP_DECLARE(void) unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit,
const char *arg, const char * arg2, int type);