an extra stat() that's a waste.
*/
-#ifdef HAVE_STDIOP_H
-#include <stdio.h>
-#endif
-#ifdef HAVE_SYS_TYPES_H
+#include "apr.h"
+#include "apr_mmap.h"
+#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
+#if APR_HAVE_SYS_TYPES_H
#include <sys/types.h>
#endif
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
#define CORE_PRIVATE
#include "http_protocol.h"
#include "http_request.h"
#include "http_core.h"
-#include "apr_mmap.h"
-#include "apr_strings.h"
module AP_MODULE_DECLARE_DATA file_cache_module;
#include "apr_hash.h"
#include "apr_user.h"
#include "apr_lib.h"
+#include "apr_optional.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
#define CORE_PRIVATE
#include "http_main.h"
#include "util_script.h"
#include "http_core.h"
-#include "apr_optional.h"
#include "mod_include.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
#include "util_ebcdic.h"
module AP_MODULE_DECLARE_DATA includes_module;
#include "apr.h"
#include "apr_strings.h"
#include "apr_thread_proc.h" /* for RLIMIT stuff */
+#include "apr_optional.h"
+#include "apr_buckets.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
#define CORE_PRIVATE
-#include "apr_buckets.h"
#include "util_filter.h"
#include "ap_config.h"
#include "httpd.h"
#include "http_log.h"
#include "util_script.h"
#include "ap_mpm.h"
-#include "apr_optional.h"
#include "../filters/mod_include.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
+
module AP_MODULE_DECLARE_DATA cgi_module;
* they fail.
*/
-
-
-#define CORE_PRIVATE
-
#include "apr_lib.h"
#include "apr_strings.h"
#include "apr_general.h"
#include "apr_file_io.h"
#include "apr_portable.h"
#include "apr_buckets.h"
+#include "apr_optional.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
+#if APR_HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#if APR_HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
+#define CORE_PRIVATE
+
#include "util_filter.h"
#include "httpd.h"
#include "http_config.h"
#include "ap_mpm.h"
#include "unixd.h"
#include "mod_suexec.h"
-#include "apr_optional.h"
#include "../filters/mod_include.h"
+
+/* ### should be tossed in favor of APR */
#include <sys/stat.h>
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
#include <sys/un.h> /* for sockaddr_un */
-#include <sys/types.h>
+
module AP_MODULE_DECLARE_DATA cgid_module;
#include "mod_core.h"
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-
/* LimitXMLRequestBody handling */
#define AP_LIMIT_UNSET ((long) -1)
*
*/
-#define MIME_PRIVATE
-
+#include "apr.h"
#include "apr_strings.h"
#include "apr_lib.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_request.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
+
/* XXXX - fix me / EBCDIC
* there was a cludge here which would use its
* University of Illinois, Urbana-Champaign.
*/
+#include "apr.h"
+#include "apr_file_io.h"
+#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#define WANT_BASENAME_MATCH
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
#include "http_log.h"
-#include "apr_file_io.h"
-#include "apr_strings.h"
-
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
/* mod_speling.c - by Alexei Kosut <akosut@organic.com> June, 1996
*
* disabled, except those explicitly turned on with the "enabled" keyword.
*/
-#if !defined(WIN32) && !defined(OS2) && !defined(BEOS)
-#define HAVE_UNIX_SUEXEC
-#endif
-
#include "apr_strings.h"
#include "apr_user.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
+
+#if !defined(WIN32) && !defined(OS2) && !defined(BEOS)
+#define HAVE_UNIX_SUEXEC
+#endif
+
#ifdef HAVE_UNIX_SUEXEC
#include "unixd.h" /* Contains the suexec_identity hook used on Unix */
#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
+
/* The default directory in user's home dir */
#ifndef DEFAULT_USER_DIR
* both written by James Grinter <jrg@blodwen.demon.co.uk>.
*/
+#include "apr.h"
#include "apr_strings.h"
#include "apr_hooks.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_request.h" /* for ap_hook_translate_name */
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
module AP_MODULE_DECLARE_DATA vhost_alias_module;
* 29.Jun.96 All directives made per-directory.
*/
+#include "apr.h"
+#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
+#if APR_HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "util_script.h"
#include "http_log.h"
#include "http_request.h"
-#include "apr_strings.h"
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
#define DIR_CMD_PERMS OR_INDEXES
* *** older versions of the module. ***
*/
+#include "apr.h"
#include "apr_strings.h"
+
+#if APR_HAVE_STDLIB_H
+#include <stdlib.h>
+#endif
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
-#ifdef HAVE_STDLIB_H
-#include <stdlib.h>
-#endif
+
typedef struct {
apr_table_t *vars;
* Hi, welcome to the internet.
*/
+#include "apr.h"
+#include "apr_strings.h"
+#include "apr_lib.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "ap_config.h"
-#ifdef HAVE_CTYPE_H
-#include <ctype.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_request.h"
-#include "apr_strings.h"
typedef struct {
int active;
*
*/
+#include "apr.h"
#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "httpd.h"
#include "http_config.h"
#include "http_request.h"
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
typedef enum {
hdr_add = 'a', /* add header (could mean multiple hdrs) */
*
*/
+#include "apr.h"
#include "apr_strings.h"
+
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_protocol.h"
#include "util_script.h"
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
+
+/* ### this isn't set by configure? does anybody set this? */
#ifdef HAVE_UTIME_H
#include <utime.h>
#endif
* SetEnvIf remote_addr (127.0.0.1|192.168.10.) LOCAL
*/
+#include "apr.h"
#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_log.h"
#include "http_protocol.h"
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
+
enum special {
SPECIAL_NOT,
* UUencoding modified by: Alvaro Martinez Echevarria <alvaro@lander.es>
*/
+#include "apr_general.h" /* for XtOffsetOf */
+
#include "httpd.h"
#include "http_config.h"
#include "http_log.h"
#include "http_protocol.h" /* for ap_hook_post_read_request */
-#include "apr_general.h" /* for XtOffsetOf */
-
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
typedef struct {
unsigned int stamp;
* This file replaces mod_cookies.c
*/
+#include "apr.h"
+#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "httpd.h"
#include "http_config.h"
#include "http_core.h"
#include "http_request.h"
-#include "apr_strings.h"
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
module AP_MODULE_DECLARE_DATA usertrack_module;
#define TESTING 0
#undef EXPLAIN
-#include "httpd.h"
-#include "http_config.h"
-#include "http_protocol.h"
-#include "proxy_cache.h"
-
#include "apr_compat.h"
#include "apr_strings.h"
-#ifdef HAVE_NETDB_H
+#if APR_HAVE_NETDB_H
#include <netdb.h>
#endif
-
-#ifdef HAVE_SYS_SOCKET_H
+#if APR_HAVE_SYS_SOCKET_H
#include <sys/socket.h>
#endif
-
-#ifdef HAVE_NETINET_IN_H
+#if APR_HAVE_NETINET_IN_H
#include <netinet/in.h>
#endif
-
-#ifdef HAVE_ARPA_INET_H
+#if APR_HAVE_ARPA_INET_H
#include <arpa/inet.h>
#endif
+#include "httpd.h"
+#include "http_config.h"
+#include "http_protocol.h"
+#include "proxy_cache.h"
+
+
extern module AP_MODULE_DECLARE_DATA proxy_module;
#include "apr_portable.h"
#include "apr_file_io.h"
-#if APR_HAVE_STDIO_H
-#include <stdio.h>
-#endif
+#define APR_WANT_STDIO
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
#define CORE_PRIVATE
#include "http_main.h"
#include "http_vhost.h"
#include "util_cfgtree.h"
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
+
AP_DECLARE_DATA const char *ap_server_argv0;
dnl ## Check for libraries
-AC_DEFUN(APACHE_DEFINE_HAVE_CRYPT, [
-])
AC_CHECK_LIB(nsl, gethostname, [
AC_ADD_LIBRARY(nsl) ], [])
AC_CHECK_LIB(nsl, gethostbyaddr, [
AC_ADD_LIBRARY(nsl) ], [])
-AC_CHECK_LIB(crypt, crypt, [
- AC_ADD_LIBRARY(crypt)
-], [
- AC_CHECK_LIB(ufc, crypt, [
- AC_ADD_LIBRARY(ufc)
- ], [])
-])
dnl ## Check for header files
-AC_HEADER_STDC
-AC_CHECK_HEADERS(
-bstring.h \
-crypt.h \
-unistd.h \
-sys/resource.h \
-sys/select.h \
-sys/processor.h \
-)
+AC_CHECK_HEADERS(bstring.h unistd.h)
dnl ## Check for typedefs, structures, and compiler characteristics.
-AC_TYPE_RLIM_T
AC_CACHE_CHECK([for tm_gmtoff in struct tm], ac_cv_struct_tm_gmtoff,
[AC_TRY_COMPILE([#include <sys/types.h>
#include <$ac_cv_struct_tm>], [struct tm tm; tm.tm_gmtoff;],
dnl ## Check for library functions
-AC_CHECK_FUNCS(
-syslog \
-)
+AC_CHECK_FUNCS(syslog)
dnl Obsolete scoreboard code uses this.
AC_CHECK_HEADERS(sys/times.h)
* University of Illinois, Urbana-Champaign.
*/
+#include "apr.h"
+#include "apr_strings.h"
+
#define CORE_PRIVATE
#include "ap_config.h"
-#include "apr_strings.h"
#include "httpd.h"
#include "http_connection.h"
#include "http_request.h"
#include "http_log.h"
#include "util_filter.h"
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_ARPA_INET_H
-#include <arpa/inet.h>
-#endif
-
APR_HOOK_STRUCT(
APR_HOOK_LINK(pre_connection)
APR_HOOK_LINK(process_connection)
*/
#include "apr_network_io.h"
+#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
#define CORE_PRIVATE
#include "ap_config.h"
#include "httpd.h"
#include "http_config.h"
#include "ap_listen.h"
-#include "apr_strings.h"
#include "http_log.h"
#include "mpm.h"
#include "mpm_common.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
+
ap_listen_rec *ap_listeners;
#if APR_HAVE_IPV6
* University of Illinois, Urbana-Champaign.
*/
-#define CORE_PRIVATE
-
+#include "apr.h"
#include "apr_portable.h"
#include "apr_strings.h"
#include "apr_file_io.h"
#include "apr_thread_proc.h"
+
+#if APR_HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#if APR_HAVE_SYS_WAIT_H
+#include <sys/wait.h>
+#endif
+
+#define CORE_PRIVATE
+
#include "ap_config.h"
#include "httpd.h"
#include "http_main.h"
#ifdef HAVE_NETINET_TCP_H
#include <netinet/tcp.h>
#endif
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
-#ifdef HAVE_SYS_WAIT_H
-#include <sys/wait.h>
-#endif
+
#include <pthread.h>
#include <signal.h>
#include "apr_strings.h"
#include "apr_thread_proc.h"
-#if APR_HAVE_STDIO_H
-#include <stdio.h> /* for perror() */
-#endif
-#if APR_HAVE_SYS_WAIT_H
-#include <sys/wait.h>
+#define APR_WANT_STDIO
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
+#if APR_HAVE_UNISTD_H
+#include <unistd.h>
#endif
-#if APR_HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
+#if APR_HAVE_SYS_TYPES_H
+#include <sys/types.h>
#endif
#define CORE_PRIVATE
#include "mpm_common.h"
#include "ap_listen.h"
#include "ap_mmn.h"
-#ifdef HAVE_SYS_TYPES_H
-#include <sys/types.h>
-#endif
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#ifdef HAVE_NETINET_TCP_H
-#include <netinet/tcp.h> /* for TCP_NODELAY */
-#endif
#ifdef HAVE_BSTRING_H
#include <bstring.h> /* for IRIX, FD_SET calls bzero() */
#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
#ifdef HAVE_TIME_H
#include <time.h>
#endif
* <http://www.apache.org/>.
*/
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
#include "httpd.h"
#include "http_log.h"
#include "util_filter.h"
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-
/* ### make this visible for direct manipulation?
* ### use a hash table
*/
*
*/
-#include "ap_config.h"
+#include "apr.h"
#include "apr_strings.h"
+
+#define APR_WANT_STRFUNC
+#include "apr_want.h"
+
+#include "ap_config.h"
#include "httpd.h"
#include "http_log.h"
#include "util_uri.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
-#ifdef HAVE_STRINGS_H
-#include <strings.h>
-#endif
-#ifdef HAVE_NETDB_H
-#include <netdb.h>
-#endif
/* Some WWW schemes and their default ports; this is basically /etc/services */
/* This will become global when the protocol abstraction comes */