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:
decided to do.
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
calls ap_fixup_virutal_hosts(), ap_fini_vhost_config(), and
ap_sort_hooks() [to reduce the logic in main()]
#undef VERSION
#if APR_HAS_MMAP
-#define USE_MMAP_FILES 1
+#define AP_USE_MMAP_FILES 1
#else
-#undef USE_MMAP_FILES
+#undef AP_USE_MMAP_FILES
#endif
#if APR_FILE_BASED_SHM
-#define USE_FILE_BASED_SCOREBOARD
+#define AP_USE_FILE_BASED_SCOREBOARD
#else
-#define USE_MEM_BASED_SCOREBOARD
+#define AP_USE_MEM_BASED_SCOREBOARD
#endif
/* If APR has OTHER_CHILD logic, use reliable piped logs.
*/
#if (APR_HAS_OTHER_CHILD)
-#define HAVE_RELIABLE_PIPED_LOGS TRUE
+#define AP_HAVE_RELIABLE_PIPED_LOGS TRUE
#endif
#if defined(CHARSET_EBCDIC) && !defined(APACHE_XLATE)
apr_file_t *fds[2];
/* XXX - an #ifdef that needs to be eliminated from public view. Shouldn't
* be hard */
-#ifdef HAVE_RELIABLE_PIPED_LOGS
+#ifdef AP_HAVE_RELIABLE_PIPED_LOGS
/** The name of the program the logging process is running */
char *program;
/** The pid of the logging process */
#define MIN_SIZE_TO_WRITE 9000
/* Allow Apache to use ap_mmap */
-#ifdef USE_MMAP_FILES
+#ifdef AP_USE_MMAP_FILES
#include "apr_mmap.h"
/* mmap support for static files based on ideas from John Heidemann's
#ifndef MMAP_LIMIT
#define MMAP_LIMIT (4*1024*1024)
#endif
-#endif /* USE_MMAP_FILES */
+#endif /* AP_USE_MMAP_FILES */
/* LimitXMLRequestBody handling */
#define AP_LIMIT_UNSET ((long) -1)
int rangestatus, errstatus;
apr_file_t *fd = NULL;
apr_status_t status;
-#ifdef USE_MMAP_FILES
+#ifdef AP_USE_MMAP_FILES
apr_mmap_t *mm = NULL;
#endif
/* XXX if/when somebody writes a content-md5 filter we either need to
return errstatus;
}
-#ifdef USE_MMAP_FILES
+#ifdef AP_USE_MMAP_FILES
if ((r->finfo.size >= MMAP_THRESHOLD)
&& (r->finfo.size < MMAP_LIMIT)
&& (!r->header_only || bld_content_md5)) {
}
}
-#ifdef USE_MMAP_FILES
+#ifdef AP_USE_MMAP_FILES
}
else {
unsigned char *addr;
}
#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
* timeout model, which is a timeout per-write rather than a time for the
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)
{
/* piped log support */
-#ifdef HAVE_RELIABLE_PIPED_LOGS
+#ifdef AP_HAVE_RELIABLE_PIPED_LOGS
/* forward declaration */
static void piped_log_maintenance(int reason, void *data, apr_wait_t status);
#ifdef HAVE_SHMGET
printf(" -D HAVE_SHMGET\n");
#endif
-#ifdef USE_FILE_BASED_SCOREBOARD
- printf(" -D USE_FILE_BASED_SCOREBOARD\n");
+#ifdef AP_USE_FILE_BASED_SCOREBOARD
+ printf(" -D AP_USE_FILE_BASED_SCOREBOARD\n");
#endif
-#ifdef USE_MEM_BASED_SCOREBOARD
- printf(" -D USE_MEM_BASED_SCOREBOARD\n");
+#ifdef AP_USE_MEM_BASED_SCOREBOARD
+ printf(" -D AP_USE_MEM_BASED_SCOREBOARD\n");
#endif
-#ifdef USE_MMAP_FILES
- printf(" -D USE_MMAP_FILES\n");
+#ifdef AP_USE_MMAP_FILES
+ printf(" -D AP_USE_MMAP_FILES\n");
#ifdef MMAP_SEGMENT_SIZE
printf(" -D MMAP_SEGMENT_SIZE=%ld\n",(long)MMAP_SEGMENT_SIZE);
#endif
-#endif /*USE_MMAP_FILES*/
+#endif /*AP_USE_MMAP_FILES*/
#ifdef NO_WRITEV
printf(" -D NO_WRITEV\n");
#endif
#if APR_HAS_OTHER_CHILD
printf(" -D APR_HAS_OTHER_CHILD\n");
#endif
-#ifdef HAVE_RELIABLE_PIPED_LOGS
- printf(" -D HAVE_RELIABLE_PIPED_LOGS\n");
+#ifdef AP_HAVE_RELIABLE_PIPED_LOGS
+ printf(" -D AP_HAVE_RELIABLE_PIPED_LOGS\n");
#endif
#ifdef BUFFERED_LOGS
printf(" -D BUFFERED_LOGS\n");
#include "mpm_default.h" /* For HARD_.*_LIMIT */
/*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
#endif
/* 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
#endif
/* 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
#endif