mirror of
https://github.com/apache/httpd.git
synced 2025-08-08 15:02:10 +03:00
Namespace protect the rest of the macros defined by ap_config.h
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@86661 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
5
STATUS
5
STATUS
@@ -1,5 +1,5 @@
|
|||||||
Apache 2.0 STATUS:
|
Apache 2.0 STATUS:
|
||||||
Last modified at [$Date: 2000/10/18 23:11:48 $]
|
Last modified at [$Date: 2000/10/19 00:04:53 $]
|
||||||
|
|
||||||
Release:
|
Release:
|
||||||
|
|
||||||
@@ -147,9 +147,6 @@ RELEASE NON-SHOWSTOPPERS BUT WOULD BE REAL NICE TO WRAP THESE UP:
|
|||||||
decided to do.
|
decided to do.
|
||||||
Status: Greg +1 (volunteers), Ryan +1
|
Status: Greg +1 (volunteers), Ryan +1
|
||||||
|
|
||||||
* Go through ap_config.h and namespace-protect the symbols (e.g. USE_*).
|
|
||||||
Some symbols can/should move to mpm_common.h where possible.
|
|
||||||
|
|
||||||
* Explore use of a post-config hook for the code in http_main.c which
|
* Explore use of a post-config hook for the code in http_main.c which
|
||||||
calls ap_fixup_virutal_hosts(), ap_fini_vhost_config(), and
|
calls ap_fixup_virutal_hosts(), ap_fini_vhost_config(), and
|
||||||
ap_sort_hooks() [to reduce the logic in main()]
|
ap_sort_hooks() [to reduce the logic in main()]
|
||||||
|
@@ -180,21 +180,21 @@
|
|||||||
#undef VERSION
|
#undef VERSION
|
||||||
|
|
||||||
#if APR_HAS_MMAP
|
#if APR_HAS_MMAP
|
||||||
#define USE_MMAP_FILES 1
|
#define AP_USE_MMAP_FILES 1
|
||||||
#else
|
#else
|
||||||
#undef USE_MMAP_FILES
|
#undef AP_USE_MMAP_FILES
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if APR_FILE_BASED_SHM
|
#if APR_FILE_BASED_SHM
|
||||||
#define USE_FILE_BASED_SCOREBOARD
|
#define AP_USE_FILE_BASED_SCOREBOARD
|
||||||
#else
|
#else
|
||||||
#define USE_MEM_BASED_SCOREBOARD
|
#define AP_USE_MEM_BASED_SCOREBOARD
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* If APR has OTHER_CHILD logic, use reliable piped logs.
|
/* If APR has OTHER_CHILD logic, use reliable piped logs.
|
||||||
*/
|
*/
|
||||||
#if (APR_HAS_OTHER_CHILD)
|
#if (APR_HAS_OTHER_CHILD)
|
||||||
#define HAVE_RELIABLE_PIPED_LOGS TRUE
|
#define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CHARSET_EBCDIC) && !defined(APACHE_XLATE)
|
#if defined(CHARSET_EBCDIC) && !defined(APACHE_XLATE)
|
||||||
|
@@ -229,7 +229,7 @@ struct piped_log {
|
|||||||
apr_file_t *fds[2];
|
apr_file_t *fds[2];
|
||||||
/* XXX - an #ifdef that needs to be eliminated from public view. Shouldn't
|
/* XXX - an #ifdef that needs to be eliminated from public view. Shouldn't
|
||||||
* be hard */
|
* be hard */
|
||||||
#ifdef HAVE_RELIABLE_PIPED_LOGS
|
#ifdef AP_HAVE_RELIABLE_PIPED_LOGS
|
||||||
/** The name of the program the logging process is running */
|
/** The name of the program the logging process is running */
|
||||||
char *program;
|
char *program;
|
||||||
/** The pid of the logging process */
|
/** The pid of the logging process */
|
||||||
|
@@ -94,7 +94,7 @@
|
|||||||
#define MIN_SIZE_TO_WRITE 9000
|
#define MIN_SIZE_TO_WRITE 9000
|
||||||
|
|
||||||
/* Allow Apache to use ap_mmap */
|
/* Allow Apache to use ap_mmap */
|
||||||
#ifdef USE_MMAP_FILES
|
#ifdef AP_USE_MMAP_FILES
|
||||||
#include "apr_mmap.h"
|
#include "apr_mmap.h"
|
||||||
|
|
||||||
/* mmap support for static files based on ideas from John Heidemann's
|
/* mmap support for static files based on ideas from John Heidemann's
|
||||||
@@ -116,7 +116,7 @@
|
|||||||
#ifndef MMAP_LIMIT
|
#ifndef MMAP_LIMIT
|
||||||
#define MMAP_LIMIT (4*1024*1024)
|
#define MMAP_LIMIT (4*1024*1024)
|
||||||
#endif
|
#endif
|
||||||
#endif /* USE_MMAP_FILES */
|
#endif /* AP_USE_MMAP_FILES */
|
||||||
|
|
||||||
/* LimitXMLRequestBody handling */
|
/* LimitXMLRequestBody handling */
|
||||||
#define AP_LIMIT_UNSET ((long) -1)
|
#define AP_LIMIT_UNSET ((long) -1)
|
||||||
@@ -2926,7 +2926,7 @@ static int default_handler(request_rec *r)
|
|||||||
int rangestatus, errstatus;
|
int rangestatus, errstatus;
|
||||||
apr_file_t *fd = NULL;
|
apr_file_t *fd = NULL;
|
||||||
apr_status_t status;
|
apr_status_t status;
|
||||||
#ifdef USE_MMAP_FILES
|
#ifdef AP_USE_MMAP_FILES
|
||||||
apr_mmap_t *mm = NULL;
|
apr_mmap_t *mm = NULL;
|
||||||
#endif
|
#endif
|
||||||
/* XXX if/when somebody writes a content-md5 filter we either need to
|
/* XXX if/when somebody writes a content-md5 filter we either need to
|
||||||
@@ -2985,7 +2985,7 @@ static int default_handler(request_rec *r)
|
|||||||
return errstatus;
|
return errstatus;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_MMAP_FILES
|
#ifdef AP_USE_MMAP_FILES
|
||||||
if ((r->finfo.size >= MMAP_THRESHOLD)
|
if ((r->finfo.size >= MMAP_THRESHOLD)
|
||||||
&& (r->finfo.size < MMAP_LIMIT)
|
&& (r->finfo.size < MMAP_LIMIT)
|
||||||
&& (!r->header_only || bld_content_md5)) {
|
&& (!r->header_only || bld_content_md5)) {
|
||||||
@@ -3038,7 +3038,7 @@ static int default_handler(request_rec *r)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef USE_MMAP_FILES
|
#ifdef AP_USE_MMAP_FILES
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
unsigned char *addr;
|
unsigned char *addr;
|
||||||
|
@@ -2667,7 +2667,7 @@ AP_DECLARE(apr_status_t) ap_send_fd(apr_file_t *fd, request_rec *r, apr_off_t of
|
|||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef USE_MMAP_FILES
|
#ifdef AP_USE_MMAP_FILES
|
||||||
|
|
||||||
/* The code writes MMAP_SEGMENT_SIZE bytes at a time. This is due to Apache's
|
/* The code writes MMAP_SEGMENT_SIZE bytes at a time. This is due to Apache's
|
||||||
* timeout model, which is a timeout per-write rather than a time for the
|
* timeout model, which is a timeout per-write rather than a time for the
|
||||||
@@ -2700,7 +2700,7 @@ AP_DECLARE(size_t) ap_send_mmap(apr_mmap_t *mm, request_rec *r, size_t offset,
|
|||||||
|
|
||||||
return mm->size; /* XXX - change API to report apr_status_t? */
|
return mm->size; /* XXX - change API to report apr_status_t? */
|
||||||
}
|
}
|
||||||
#endif /* USE_MMAP_FILES */
|
#endif /* AP_USE_MMAP_FILES */
|
||||||
|
|
||||||
AP_DECLARE(int) ap_rputc(int c, request_rec *r)
|
AP_DECLARE(int) ap_rputc(int c, request_rec *r)
|
||||||
{
|
{
|
||||||
|
@@ -553,7 +553,7 @@ AP_DECLARE(void) ap_log_assert(const char *szExp, const char *szFile, int nLine)
|
|||||||
|
|
||||||
/* piped log support */
|
/* piped log support */
|
||||||
|
|
||||||
#ifdef HAVE_RELIABLE_PIPED_LOGS
|
#ifdef AP_HAVE_RELIABLE_PIPED_LOGS
|
||||||
/* forward declaration */
|
/* forward declaration */
|
||||||
static void piped_log_maintenance(int reason, void *data, apr_wait_t status);
|
static void piped_log_maintenance(int reason, void *data, apr_wait_t status);
|
||||||
|
|
||||||
|
@@ -95,18 +95,18 @@ static void show_compile_settings(void)
|
|||||||
#ifdef HAVE_SHMGET
|
#ifdef HAVE_SHMGET
|
||||||
printf(" -D HAVE_SHMGET\n");
|
printf(" -D HAVE_SHMGET\n");
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_FILE_BASED_SCOREBOARD
|
#ifdef AP_USE_FILE_BASED_SCOREBOARD
|
||||||
printf(" -D USE_FILE_BASED_SCOREBOARD\n");
|
printf(" -D AP_USE_FILE_BASED_SCOREBOARD\n");
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_MEM_BASED_SCOREBOARD
|
#ifdef AP_USE_MEM_BASED_SCOREBOARD
|
||||||
printf(" -D USE_MEM_BASED_SCOREBOARD\n");
|
printf(" -D AP_USE_MEM_BASED_SCOREBOARD\n");
|
||||||
#endif
|
#endif
|
||||||
#ifdef USE_MMAP_FILES
|
#ifdef AP_USE_MMAP_FILES
|
||||||
printf(" -D USE_MMAP_FILES\n");
|
printf(" -D AP_USE_MMAP_FILES\n");
|
||||||
#ifdef MMAP_SEGMENT_SIZE
|
#ifdef MMAP_SEGMENT_SIZE
|
||||||
printf(" -D MMAP_SEGMENT_SIZE=%ld\n",(long)MMAP_SEGMENT_SIZE);
|
printf(" -D MMAP_SEGMENT_SIZE=%ld\n",(long)MMAP_SEGMENT_SIZE);
|
||||||
#endif
|
#endif
|
||||||
#endif /*USE_MMAP_FILES*/
|
#endif /*AP_USE_MMAP_FILES*/
|
||||||
#ifdef NO_WRITEV
|
#ifdef NO_WRITEV
|
||||||
printf(" -D NO_WRITEV\n");
|
printf(" -D NO_WRITEV\n");
|
||||||
#endif
|
#endif
|
||||||
@@ -134,8 +134,8 @@ static void show_compile_settings(void)
|
|||||||
#if APR_HAS_OTHER_CHILD
|
#if APR_HAS_OTHER_CHILD
|
||||||
printf(" -D APR_HAS_OTHER_CHILD\n");
|
printf(" -D APR_HAS_OTHER_CHILD\n");
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_RELIABLE_PIPED_LOGS
|
#ifdef AP_HAVE_RELIABLE_PIPED_LOGS
|
||||||
printf(" -D HAVE_RELIABLE_PIPED_LOGS\n");
|
printf(" -D AP_HAVE_RELIABLE_PIPED_LOGS\n");
|
||||||
#endif
|
#endif
|
||||||
#ifdef BUFFERED_LOGS
|
#ifdef BUFFERED_LOGS
|
||||||
printf(" -D BUFFERED_LOGS\n");
|
printf(" -D BUFFERED_LOGS\n");
|
||||||
|
@@ -73,7 +73,7 @@ extern "C" {
|
|||||||
#include "mpm_default.h" /* For HARD_.*_LIMIT */
|
#include "mpm_default.h" /* For HARD_.*_LIMIT */
|
||||||
|
|
||||||
/*The optimized timeout code only works if we're not using a scoreboard file*/
|
/*The optimized timeout code only works if we're not using a scoreboard file*/
|
||||||
#if defined(USE_MEM_BASED_SCOREBOARD)
|
#if defined(AP_USE_MEM_BASED_SCOREBOARD)
|
||||||
#define OPTIMIZE_TIMEOUTS
|
#define OPTIMIZE_TIMEOUTS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -75,7 +75,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* The optimized timeout code only works if we're not using a scoreboard file
|
/* The optimized timeout code only works if we're not using a scoreboard file
|
||||||
*/
|
*/
|
||||||
#if defined(USE_MEM_BASED_SCOREBOARD)
|
#if defined(AP_USE_MEM_BASED_SCOREBOARD)
|
||||||
#define OPTIMIZE_TIMEOUTS
|
#define OPTIMIZE_TIMEOUTS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
@@ -69,7 +69,7 @@ extern "C" {
|
|||||||
|
|
||||||
/* The optimized timeout code only works if we're not using a scoreboard file
|
/* The optimized timeout code only works if we're not using a scoreboard file
|
||||||
*/
|
*/
|
||||||
#if defined(USE_MEM_BASED_SCOREBOARD)
|
#if defined(AP_USE_MEM_BASED_SCOREBOARD)
|
||||||
#define OPTIMIZE_TIMEOUTS
|
#define OPTIMIZE_TIMEOUTS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user