mirror of
https://github.com/apache/httpd.git
synced 2025-08-03 16:33:59 +00:00
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:
@ -22,7 +22,7 @@
|
|||||||
#include "mpm_common.h"
|
#include "mpm_common.h"
|
||||||
#include "os.h"
|
#include "os.h"
|
||||||
#include "ap_mpm.h"
|
#include "ap_mpm.h"
|
||||||
#include "unixd.h"
|
#include "mod_unixd.h"
|
||||||
#include "apr_thread_proc.h"
|
#include "apr_thread_proc.h"
|
||||||
#include "apr_strings.h"
|
#include "apr_strings.h"
|
||||||
#include "apr_portable.h"
|
#include "apr_portable.h"
|
||||||
|
41
modules/arch/unix/mod_unixd.h
Normal file
41
modules/arch/unix/mod_unixd.h
Normal 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
|
||||||
|
/** @} */
|
@ -80,8 +80,6 @@ typedef struct {
|
|||||||
} unixd_config_rec;
|
} unixd_config_rec;
|
||||||
AP_DECLARE_DATA extern unixd_config_rec ap_unixd_config;
|
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)
|
#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,
|
AP_DECLARE(void) ap_unixd_set_rlimit(cmd_parms *cmd, struct rlimit **plimit,
|
||||||
const char *arg,
|
const char *arg,
|
||||||
|
Reference in New Issue
Block a user