]> granicus.if.org Git - apache/commitdiff
use a local module header file to store the function prototype
authorRoy T. Fielding <fielding@apache.org>
Sat, 31 Jan 2009 01:46:56 +0000 (01:46 +0000)
committerRoy T. Fielding <fielding@apache.org>
Sat, 31 Jan 2009 01:46:56 +0000 (01:46 +0000)
for ap_unixd_setup_child() that is used outside this module.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@739487 13f79535-47bb-0310-9956-ffa450edef68

modules/arch/unix/mod_unixd.c
modules/arch/unix/mod_unixd.h [new file with mode: 0644]
os/unix/unixd.h

index 3daa32a1b41bc26b8671af1cd932d6a6991f0828..96e27a5dbfd6acf461eaaed58a43fe98749bf267 100644 (file)
@@ -22,7 +22,7 @@
 #include "mpm_common.h"
 #include "os.h"
 #include "ap_mpm.h"
-#include "unixd.h"
+#include "mod_unixd.h"
 #include "apr_thread_proc.h"
 #include "apr_strings.h"
 #include "apr_portable.h"
diff --git a/modules/arch/unix/mod_unixd.h b/modules/arch/unix/mod_unixd.h
new file mode 100644 (file)
index 0000000..f377bd2
--- /dev/null
@@ -0,0 +1,41 @@
+/* Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+/**
+ * @file  mod_unixd.h
+ * @brief common stuff that unix MPMs will want 
+ *
+ * @addtogroup APACHE_OS_UNIX
+ * @{
+ */
+
+#ifndef MOD_UNIXD_H
+#define MOD_UNIXD_H
+
+#include "ap_config.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+AP_DECLARE(int) ap_unixd_setup_child(void);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+/** @} */
index 6ab03d1bdcd7f8e350fd86a1ca60a8e0c78fa3e7..882dd5f5ea98212705981936ce07348509765e8e 100644 (file)
@@ -80,8 +80,6 @@ typedef struct {
 } unixd_config_rec;
 AP_DECLARE_DATA extern unixd_config_rec ap_unixd_config;
 
-AP_DECLARE(int) ap_unixd_setup_child(void);  /* mod_cgid needs this */
-
 #if defined(RLIMIT_CPU) || defined(RLIMIT_DATA) || defined(RLIMIT_VMEM) || defined(RLIMIT_NPROC) || defined(RLIMIT_AS)
 AP_DECLARE(void) ap_unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit,
                                      const char *arg,