use a local module header file to store the function prototype

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
This commit is contained in:
Roy T. Fielding
2009-01-31 01:46:56 +00:00
parent 421ee8b008
commit 736d659de0
3 changed files with 42 additions and 3 deletions

View 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"

View File

@ -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
/** @} */

View 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,