]> granicus.if.org Git - apache/commitdiff
*) Compensate for recent changes in the APR headers. Specifically, some
authorGreg Stein <gstein@apache.org>
Sun, 26 Nov 2000 04:47:43 +0000 (04:47 +0000)
committerGreg Stein <gstein@apache.org>
Sun, 26 Nov 2000 04:47:43 +0000 (04:47 +0000)
   files need to specifically include stdio.h, or a particular apr_*.h
   header.

*) Adjust callers of apr_create_process() to deal with the extra "const"

*) Add "const" to args of ap_os_create_privileged_process()

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87080 13f79535-47bb-0310-9956-ffa450edef68

32 files changed:
include/ap_mpm.h
include/http_core.h
include/httpd.h
modules/dav/fs/lock.c
modules/dav/fs/repos.c
modules/dav/main/props.c
modules/dav/main/util_lock.c
modules/filters/mod_include.c
modules/generators/mod_cgi.c
modules/http/http_core.c
modules/http/http_protocol.c
modules/mappers/mod_imap.c
modules/mappers/mod_negotiation.c
modules/mappers/mod_so.c
os/beos/os.c
os/bs2000/os.c
os/os2/util_os2.c
os/tpf/os.c
os/unix/unixd.c
os/win32/util_win32.c
server/config.c
server/gen_test_char.c
server/log.c
server/main.c
server/mpm/prefork/prefork.c
server/mpm_common.c
server/rfc1413.c
server/util.c
server/util_xml.c
support/ab.c
support/htdigest.c
support/htpasswd.c

index 864d69a9c039c15c2eae0d8157f92676743e6ff2..491eb6370f70fd04ccb2ec829bf193debbccb914 100644 (file)
@@ -154,13 +154,14 @@ AP_DECLARE(void) ap_start_shutdown(void);
  *         process
  * @param p The pool to use. 
  */
-AP_DECLARE(apr_status_t) ap_os_create_privileged_process(const request_rec *r,
-                                                         apr_proc_t *newproc, 
-                                                         const char *progname,
-                                                         char *const *args, 
-                                                         char **env,
-                                                         apr_procattr_t *attr, 
-                                                         apr_pool_t *p);
+AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
+    const request_rec *r,
+    apr_proc_t *newproc, 
+    const char *progname,
+    const char * const *args, 
+    const char * const *env,
+    apr_procattr_t *attr, 
+    apr_pool_t *p);
 
 
 #endif
index c66b208a582dc2815adfe00c9d9f6d5cfadd3ec8..18463449cfe75dac08843036875d99b81f91c0b1 100644 (file)
 #ifndef APACHE_HTTP_CORE_H
 #define APACHE_HTTP_CORE_H
 
+#include "apr.h"
+
+#if APR_HAVE_STRUCT_RLIMIT
+#include <sys/time.h>
+#include <sys/resource.h>
+#endif
+
+
 #ifdef __cplusplus
 extern "C" {
 #endif
 
-#include "apr_lib.h"
-
 /**
  * @package CORE HTTP Daemon
  */
index 6c847f616a60b8cee14541c8d40eec32eda40570..13eed4b0698c511c3d582100d7d556021515bce5 100644 (file)
@@ -77,12 +77,14 @@ extern "C" {
 
 /* Headers in which EVERYONE has an interest... */
 #include "ap_config.h"
+#include "ap_mmn.h"
+
 #include "os.h"
-#include "apr_general.h"
-#include "apr_lib.h"
+
+#include "apr_tables.h"
+#include "apr_pools.h"
 #include "apr_time.h"
 #include "apr_network_io.h"
-#include "ap_mmn.h"
 
 #ifdef HAVE_NETINET_IN_H
 #include <netinet/in.h>
index 2c1c70a84c309ae1a41c4c6372f832d7f957236e..f04267ddae1e4763c3a18ebf1ee1e3c1639ef820 100644 (file)
 ** DAV filesystem lock implementation
 */
 
-#include "httpd.h"
-#include "http_log.h"
-#include "apr_file_io.h"
+#include "apr.h"
 #include "apr_strings.h"
+#include "apr_file_io.h"
 #include "apr_uuid.h"
 
+#include "httpd.h"
+#include "http_log.h"
+
 #include "mod_dav.h"
 #include "repos.h"
 
@@ -882,7 +884,7 @@ static dav_error * dav_fs_save_locknull_list(apr_pool_t *p, const char *dirpath,
 
     if (pbuf->cur_len == 0) {
        /* delete the file if cur_len == 0 */
-       if (remove(pathname) != 0) {
+       if (apr_remove_file(pathname, p) != 0) {
            return dav_new_error(p, HTTP_INTERNAL_SERVER_ERROR, 0,
                                 apr_psprintf(p,
                                             "Error removing %s", pathname));
index e9c5e9161c77e4f616b1885bc1ff461bd2d0cf61..b58caaf9d649f33ca80eb69136eca1bf7d3837bf 100644 (file)
 ** DAV filesystem-based repository provider
 */
 
+#include "apr.h"
 #include "apr_file_io.h"
 #include "apr_strings.h"
 
+#if APR_HAVE_STDIO_H
+#include <stdio.h>              /* for sprintf() */
+#endif
+
 #include "httpd.h"
 #include "http_log.h"
 #include "http_protocol.h"     /* for ap_set_* (in dav_fs_set_headers) */
@@ -349,7 +354,7 @@ static dav_error * dav_fs_copymove_file(
            apr_close(inf);
            apr_close(outf);
 
-           if (remove(dst) != 0) {
+           if (apr_remove_file(dst, p) != 0) {
                /* ### ACK! Inconsistent state... */
 
                /* ### use something besides 500? */
index 08a50b3f80801f590a48db261e873cb17accf357..21c020adae060861b00b9a6ff51abbb996515cc6 100644 (file)
 **       entries from the property database.
 */
 
+#include "apr.h"
+#include "apr_strings.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>              /* for sprintf() */
+#endif
+
 #include "mod_dav.h"
 
 #include "http_log.h"
 #include "http_request.h"
-#include "apr_strings.h"
 
 /*
 ** There is some rough support for writable DAV:getcontenttype and
index 4c23d5e595049b5b0b1c5a85571c46a87f4a07ac..3a138dd16faad9e15e05991f82fe28de4ed02620 100644 (file)
 ** DAV repository-independent lock functions
 */
 
+#include "apr.h"
+#include "apr_strings.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>              /* for sprintf() */
+#endif
+
 #include "mod_dav.h"
 #include "http_log.h"
 #include "http_config.h"
 #include "http_protocol.h"
 #include "http_core.h"
-#include "apr_strings.h"
-#include "memory.h"
 
 
 /* ---------------------------------------------------------------
index 350dadc9653c5158547afbbb02330935dc33988b..b7d83d930789306916f1d88755136cc76b06e928 100644 (file)
  * -Doug MacEachern
  */
 
+#include "apr.h"
+#include "apr_strings.h"
+#include "apr_thread_proc.h"
+
 #define CORE_PRIVATE
 
 #ifdef USE_PERL_SSI
 #include "config.h"
 #include "modules/perl/mod_perl.h"
 #else
-#include "apr_strings.h"
 #include "ap_config.h"
 #include "util_filter.h"
 #include "httpd.h"
@@ -1083,7 +1086,9 @@ static int include_cmd(include_ctx_t *ctx, ap_bucket_brigade **bb, char *s,
         build_argv_list(&argv, r, r->pool);
         argv[0] = apr_pstrdup(r->pool, s);
         procnew = apr_pcalloc(r->pool, sizeof(*procnew));
-        rc = apr_create_process(procnew, s, argv, ap_create_environment(r->pool, env), procattr, r->pool);
+        rc = apr_create_process(procnew, s, (const char * const *) argv,
+                                (const char * const *)ap_create_environment(r->pool, env),
+                                procattr, r->pool);
 
         if (rc != APR_SUCCESS) {
             /* Bad things happened. Everyone should have cleaned up. */
index cd448dc29478c5739015e8285e1c7199f0fb6c65..b16d67c2d7137063f0d19aa3fc2c2166b27b3971 100644 (file)
  * they fail.
  */
 
+#include "apr.h"
+#include "apr_strings.h"
+#include "apr_thread_proc.h"    /* for RLIMIT stuff */
+
 #define CORE_PRIVATE
 
-#include "apr_strings.h"
 #include "ap_buckets.h"
 #include "util_filter.h"
 #include "ap_config.h"
index f6c7e99c19b380b847f0c47a6a05e2127191bfad..e3c5cf2c1078b3ef3ede56b68b6198cb73904e00 100644 (file)
  * University of Illinois, Urbana-Champaign.
  */
 
-#define CORE_PRIVATE
-#include "ap_config.h"
+#include "apr.h"
 #include "apr_strings.h"
 #include "apr_lib.h"
+#include "apr_fnmatch.h"
+#include "apr_thread_proc.h"    /* for RLIMIT stuff */
+
+#if APR_HAVE_SYS_UIO_H
+#include <sys/uio.h>            /* for iovec */
+#endif
+
+#define CORE_PRIVATE
+#include "ap_config.h"
 #include "httpd.h"
 #include "http_config.h"
 #include "http_core.h"
 #include "http_log.h"
 #include "rfc1413.h"
 #include "util_md5.h"
-#include "apr_fnmatch.h"
 #include "http_connection.h"
 #include "ap_buckets.h"
 #include "util_filter.h"
 #include "util_ebcdic.h"
 #include "mpm.h"
+
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
@@ -2524,7 +2532,8 @@ static const char *set_limit_nproc(cmd_parms *cmd, void *conf_,
 }
 #endif
 
-static apr_status_t writev_it_all(apr_socket_t *s, struct iovec *vec, int nvec, 
+static apr_status_t writev_it_all(apr_socket_t *s,
+                                  struct iovec *vec, int nvec,
                                   apr_size_t len, apr_size_t *nbytes)
 {
     apr_size_t bytes_written = 0;
index 82ce9ab4f287c49259bf369b481d6e42050fc2d0..0e097679403b4f1706862a2499f7cf7c4ce597de 100644 (file)
  * and the Apache Software Foundation.
  */
 
+#include "apr.h"
+#include "apr_strings.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>              /* for EOF, sscanf() */
+#endif
+#if APR_HAVE_STDARG_H
+#include <stdarg.h>
+#endif
+
 #define CORE_PRIVATE
 #include "ap_buckets.h"
 #include "util_filter.h"
 #include "ap_config.h"
-#include "apr_strings.h"
 #include "httpd.h"
 #include "http_config.h"
 #include "http_core.h"
@@ -81,9 +90,7 @@
 #include "util_charset.h"
 #include "util_ebcdic.h"
 #include "mpm_status.h"
-#ifdef APR_HAVE_STDARG_H
-#include <stdarg.h>
-#endif
+
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
index dca681fc64115aee58337496f9dbb6958df70969..7a1eb078ba7798a3931880e482019d46239a2d48 100644 (file)
  * Mark Cox, mark@ukweb.com, Allow relative URLs even when no base specified
  */
 
+#include "apr.h"
 #include "apr_strings.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>              /* for sscanf() */
+#endif
+
 #include "ap_config.h"
 #include "httpd.h"
 #include "http_config.h"
index c8919fcbb6285804eaa06af4eb43375ffb12bbca..b4852266acd3fc0cbff131c67ef51b2109321112 100644 (file)
  * rst
  */
 
-#include "ap_config.h"
+#include "apr.h"
 #include "apr_strings.h"
 #include "apr_file_io.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>              /* for EOF */
+#endif
+
+#include "ap_config.h"
 #include "httpd.h"
 #include "http_config.h"
 #include "http_request.h"
index 2d48e2e808b1bc05aa714ccdeb6ce2ad4444c06d..9ba7f6851ad7c0fdd26ff04e78a2b7326799c91b 100644 (file)
  *
  */
 
+#include "apr.h"
+#include "apr_dso.h"
+#include "apr_strings.h"
+#include "apr_errno.h"
 
 #define CORE_PRIVATE
 #include "ap_config.h"
 #include "http_config.h"
 #include "http_log.h"
 #include "ap_config.h"
-#include "apr_dso.h"
-#include "apr_strings.h"
 
 module AP_MODULE_DECLARE_DATA so_module;
 
index b040432a1f90c33d64ca3902ae4e87812923e3e0..a0600b8e22feff0b6c6bb3e2d5ffd57f993fad16 100644 (file)
@@ -70,10 +70,12 @@ int ap_os_is_path_absolute(const char *file)
   return file[0] == '/';
 }
 
-AP_DECLARE(apr_status_t) ap_os_create_privileged_process(const request_rec *r,
-                              apr_proc_t *newproc, const char *progname,
-                              char *const *args, char **env,
-                              apr_procattr_t *attr, apr_pool_t *p)
+AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
+    const request_rec *r,
+    apr_proc_t *newproc, const char *progname,
+    const char * const *args,
+    const char * const *env,
+    apr_procattr_t *attr, apr_pool_t *p)
 {
     return apr_create_process(newproc, progname, args, env, attr, p);
 }
index 72f76640570cd8b1afe4a27638ee909a3bb971cd..088230b68bf884ab26c6ba50d25d59988e159d00 100644 (file)
@@ -103,10 +103,12 @@ int ap_checkconv(struct request_rec *r)
     return convert_to_ascii;
 }
 
-AP_DECLARE(apr_status_t) ap_os_create_privileged_process(const request_rec *r,
-                              apr_proc_t *newproc, const char *progname,
-                              char *const *args, char **env,
-                              apr_procattr_t *attr, apr_pool_t *p)
+AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
+    const request_rec *r,
+    apr_proc_t *newproc, const char *progname,
+    const char * const *args,
+    const char * const *env,
+    apr_procattr_t *attr, apr_pool_t *p)
 {
     return apr_create_process(newproc, progname, args, env, attr, p);
 }
index 637eca4642eea038d8b8f01ddfdb060674044828..06751dd669063ea780cc16ba532f8acc7e7de47a 100644 (file)
@@ -171,10 +171,12 @@ char *ap_os_canonical_filename(apr_pool_t *pPool, const char *szFile)
     return szCanonicalFile;
 }
 
-AP_DECLARE(apr_status_t) ap_os_create_privileged_process(const request_rec *r,
-                              apr_proc_t *newproc, const char *progname,
-                              char *const *args, char **env,
-                              apr_procattr_t *attr, apr_pool_t *p)
+AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
+    const request_rec *r,
+    apr_proc_t *newproc, const char *progname,
+    const char * const *args,
+    const char * const *env,
+    apr_procattr_t *attr, apr_pool_t *p)
 {
     return apr_create_process(newproc, progname, args, env, attr, p);
 }
index cc0633d6d77adc3689d5543f265cc05a8c9d54a9..f357228ebc9ebd95389caa920152ea404046ee84 100644 (file)
@@ -412,10 +412,12 @@ void os_tpf_child(APACHE_TPF_INPUT *input_parms) {
     ap_restart_time = input_parms->restart_time;
 }
 
-AP_DECLARE(apr_status_t) ap_os_create_privileged_process(const request_rec *r,
-                              apr_proc_t *newproc, const char *progname,
-                              char *const *args, char **env,
-                              apr_procattr_t *attr, apr_pool_t *p)
+AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
+    const request_rec *r,
+    apr_proc_t *newproc, const char *progname,
+    const char * const *args,
+    const char * const *env,
+    apr_procattr_t *attr, apr_pool_t *p)
 {
     return apr_create_process(newproc, progname, args, env, attr, p);
 }
index 1b8a465ab857a718d2da2b28f13afeae0b543f8f..2ef1f58a660433d1cf79ef04222b484895767b8d 100644 (file)
@@ -427,12 +427,13 @@ AP_IMPLEMENT_HOOK_RUN_FIRST(ap_unix_identity_t *, get_suexec_identity,
 
 static apr_status_t ap_unix_create_privileged_process(
                               apr_proc_t *newproc, const char *progname,
-                              char *const *args, char **env,
+                              const char * const *args,
+                              const char * const *env,
                               apr_procattr_t *attr, ap_unix_identity_t *ugid,
                               apr_pool_t *p)
 {
     int i = 0;
-    char **newargs;
+    const char **newargs;
     char *newprogname;
     char *execuser, *execgroup;
 
@@ -468,10 +469,12 @@ static apr_status_t ap_unix_create_privileged_process(
     return apr_create_process(newproc, newprogname, newargs, env, attr, p);
 }
 
-AP_DECLARE(apr_status_t) ap_os_create_privileged_process(const request_rec *r,
-                              apr_proc_t *newproc, const char *progname,
-                              char *const *args, char **env,
-                              apr_procattr_t *attr, apr_pool_t *p)
+AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
+    const request_rec *r,
+    apr_proc_t *newproc, const char *progname,
+    const char * const *args,
+    const char * const *env,
+    apr_procattr_t *attr, apr_pool_t *p)
 {
     ap_unix_identity_t *ugid = ap_run_get_suexec_identity(r);
 
index c3395af0d5156b8a1d66103a60721e32052c36ef..f7346c123c58f9c4b18b2de99e0cb5497de43d74 100644 (file)
@@ -507,10 +507,12 @@ AP_DECLARE(int) ap_os_is_filename_valid(const char *file)
 }
 #endif
 
-AP_DECLARE(apr_status_t) ap_os_create_privileged_process(const request_rec *r,
-                              apr_proc_t *newproc, const char *progname,
-                              char *const *args, char **env,
-                              apr_procattr_t *attr, apr_pool_t *p)
+AP_DECLARE(apr_status_t) ap_os_create_privileged_process(
+    const request_rec *r,
+    apr_proc_t *newproc, const char *progname,
+    const char * const *args,
+    const char * const *env,
+    apr_procattr_t *attr, apr_pool_t *p)
 {
     return apr_create_process(newproc, progname, args, env, attr, p);
 }
index 358f32a25ceb82b6d4b1820b77eefe6c69b780ed..0d78b7e9144b185535ca1cacf899d3186372d6cf 100644 (file)
  *
  */
 
+#include "apr.h"
+#include "apr_strings.h"
+#include "apr_portable.h"
+#include "apr_file_io.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
 #define CORE_PRIVATE
 
 #include "ap_config.h"
-#include "apr_portable.h"
-#include "apr_strings.h"
-#include "apr_file_io.h"
 #include "httpd.h"
 #include "http_config.h"
 #include "http_protocol.h"
index 52d178209950f3c2bf6332d0af27e405d534ea5d..c03215b2a34d9b3327b3bf991e12e99db365d936 100644 (file)
  * University of Illinois, Urbana-Champaign.
  */
 
+#include "apr.h"
+#include "apr_lib.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
 /* we need some of the portability definitions... for strchr */
 #include "ap_config.h"
-#include "apr_lib.h"
 #include "httpd.h"
 
 /* A bunch of functions in util.c scan strings looking for certain characters.
index e3158b5206aca4cb1aa6c995475837dbee478cd7..7a67f6b39de1c6ee7bc4ddc580eb8b15cad717bf 100644 (file)
  * 
  */
 
+#include "apr.h"
+#include "apr_general.h"        /* for signal stuff */
+#include "apr_strings.h"
+#include "apr_errno.h"
+#include "apr_thread_proc.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>
+#endif
+#if APR_HAVE_STDARG_H
+#include <stdarg.h>
+#endif
 
 #define CORE_PRIVATE
-#include "apr.h"  /* for apr_signal */
+
 #include "ap_config.h"
-#include "apr_strings.h"
-#include "apr_lib.h"
-#include "apr_portable.h"
 #include "httpd.h"
 #include "http_config.h"
 #include "http_core.h"
 #include "http_log.h"
 #include "http_main.h"
 
-#ifdef APR_HAVE_STDARG_H
-#include <stdarg.h>
-#endif
 #ifdef HAVE_STRINGS_H
 #include <strings.h>
 #endif
@@ -199,7 +205,8 @@ static int log_child(apr_pool_t *p, const char *progname,
         apr_tokenize_to_argv(progname, &args, p);
         pname = apr_pstrdup(p, args[0]);
         procnew = (apr_proc_t *) apr_pcalloc(p, sizeof(*procnew));
-        rc = apr_create_process(procnew, pname, args, NULL, procattr, p);
+        rc = apr_create_process(procnew, pname, (const char * const *)args,
+                                NULL, procattr, p);
     
         if (rc == APR_SUCCESS) {
             apr_note_subprocess(p, procnew, kill_after_timeout);
@@ -589,7 +596,8 @@ static int piped_log_spawn(piped_log *pl)
         apr_tokenize_to_argv(pl->program, &args, pl->p);
         pname = apr_pstrdup(pl->p, args[0]);
         procnew = apr_pcalloc(pl->p, sizeof(apr_proc_t));
-        rc = apr_create_process(procnew, pname, args, NULL, procattr, pl->p);
+        rc = apr_create_process(procnew, pname, (const char * const *) args,
+                                NULL, procattr, pl->p);
     
         if (rc == APR_SUCCESS) {            
             /* pjr - This no longer happens inside the child, */
index 29cdb14449f447607738d65030d7a9853ee1a15b..57cf359062d2e67c9648ca3c2a513d5ee91ee066 100644 (file)
  * University of Illinois, Urbana-Champaign.
  */
 
+#include "apr.h"
+#include "apr_strings.h"
+#include "apr_getopt.h"
+#include "apr_general.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
 #define CORE_PRIVATE
 #include "ap_config.h"
 #include "httpd.h" 
@@ -65,8 +74,6 @@
 #include "http_vhost.h"
 #include "util_uri.h" 
 #include "util_ebcdic.h"
-#include "apr_strings.h"
-#include "apr_getopt.h"
 #include "ap_mpm.h"
 
 /* WARNING: Win32 binds http_main.c dynamically to the server. Please place 
index 80183a8ce1d3bc09259dff83c32896ff995993a3..6bee0821c60139e9b66f4807152f24aac567bcc4 100644 (file)
  * TODO: - clean up scoreboard stuff when we figure out how to do it in 2.0
  */
 
-#define CORE_PRIVATE
-
-#include "ap_config.h"
+#include "apr.h"
 #include "apr_portable.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>
+#endif
+#if APR_HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
+#define CORE_PRIVATE
+
+#include "ap_config.h"
 #include "httpd.h"
 #include "mpm_default.h"
 #include "mpm_status.h"
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
 #endif
-#ifdef HAVE_SYS_WAIT_H
-#include <sys/wait.h>
-#endif
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
 #ifdef HAVE_TIME_H
 #include <time.h>
 #endif
+
 #include <signal.h>
 #include <sys/times.h>
 
index e9e2727e8487ffe7f2e24a768544d03692af8d0b..8708a10c91983ad21ee6e376c34a388fe713d1dd 100644 (file)
  * does not belong in src/os/unix
  */
 
+#include "apr.h"
 #include "apr_thread_proc.h"
+#include "apr_general.h"        /* for signal stuff */
+
 #include "httpd.h"
 #include "http_config.h"
 #include "http_log.h"
 #include "mpm.h"
 #include "mpm_common.h"
 
-#if HAVE_SYS_TIME_H
-#include <sys/time.h> /* for timeval definitions */
-#endif
-#if HAVE_SYS_SOCKET_H
-#include <sys/socket.h> /* for setsockopt prototype */
-#endif
-
 #ifdef MPM_NEEDS_RECLAIM_CHILD_PROCESSES
 void ap_reclaim_child_processes(int terminate)
 {
index 23e29be5fb112a96fa5d4baa37204d24c47df00b..9f811c8b128ef3dabb36721c17961d2b133369cf 100644 (file)
 
 /* Rewritten by David Robinson */
 
+#include "apr.h"
+#include "apr_network_io.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
 #include "ap_config.h"
+
+#ifdef HAVE_STRING_H
+#include <string.h>
+#endif
+
 #include "httpd.h"             /* for server_rec, conn_rec, etc. */
 #include "http_log.h"          /* for aplog_error */
 #include "rfc1413.h"
 #include "http_main.h"         /* set_callback_and_alarm */
 #include "util_ebcdic.h"
-#include "apr_network_io.h"
-#ifdef HAVE_STRING_H
-#include <string.h>
-#endif
 
 /* Local stuff. */
 /* Semi-well-known port */
index a05443f25ebb903717f7e58831c453fdf2421c04..f4911c9b388b6a229572a3f3e049c6b295b44d1e 100644 (file)
 
 #define CORE_PRIVATE
 
+#include "apr.h"
+#include "apr_strings.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>              /* for EOF */
+#endif
+#if APR_HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#if APR_HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+
 #include "ap_config.h"
 #include "ap_base64.h"
-#include "apr_strings.h"
 #include "httpd.h"
 #include "http_main.h"
 #include "http_log.h"
 #include "http_config.h"
 #include "util_ebcdic.h"
 
-#ifdef HAVE_STDIO_H
-#include <stdio.h>
-#endif
 #ifdef HAVE_UNISTD_H
 #include <unistd.h>
 #endif
-#ifdef HAVE_NETINET_IN_H
-#include <netinet/in.h>
-#endif
-#ifdef HAVE_SYS_SOCKET_H
-#include <sys/socket.h>
-#endif
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
index 3aa7afc58c6d204fc8529cbade97940a381d4054..bcc5cda57be0298742046cd6e21f95de00b7358b 100644 (file)
 /* James Clark's Expat parser */
 #include "xmlparse.h"
 
+#include "apr.h"
+#include "apr_strings.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>              /* for fprintf(), sprintf() */
+#endif
+
 #include "httpd.h"
 #include "http_protocol.h"
 #include "http_log.h"
 #include "http_core.h"
-#include "apr_strings.h"
 
 #include "util_xml.h"
 
index 668b87384dfe5d83c5a0efa1f00fb03149c601d8..643a79506adfa017a67e151c40dc3a4b188fb442 100644 (file)
 /* affects include files on Solaris */
 #define BSD_COMP
 
+#include "apr.h"
+#include "apr_strings.h"
 #include "apr_network_io.h"
 #include "apr_file_io.h"
 #include "apr_time.h"
 #include "apr_getopt.h"
-#include "apr_strings.h"
+#include "apr_general.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>              /* for EOF */
+#endif
+
 #include "ap_base64.h"
 #ifdef NOT_ASCII
 #include "apr_xlate.h"
@@ -886,14 +893,14 @@ static void test(void)
 static void copyright(void)
 {
     if (!use_html) {
-        printf("This is ApacheBench, Version %s\n", AB_VERSION " <$Revision: 1.36 $> apache-2.0");
+        printf("This is ApacheBench, Version %s\n", AB_VERSION " <$Revision: 1.37 $> apache-2.0");
         printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n");
         printf("Copyright (c) 1998-2000 The Apache Software Foundation, http://www.apache.org/\n");
         printf("\n");
     }
     else {
         printf("<p>\n");
-        printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AB_VERSION, "$Revision: 1.36 $");
+        printf(" This is ApacheBench, Version %s <i>&lt;%s&gt;</i> apache-2.0<br>\n", AB_VERSION, "$Revision: 1.37 $");
         printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/<br>\n");
         printf(" Copyright (c) 1998-2000 The Apache Software Foundation, http://www.apache.org/<br>\n");
         printf("</p>\n<p>\n");
index 73cb59199c4165217e6e5baf7984bbcfc0175fa9..c7a179ae76262e7c5f0b8fc5ba0116171d8e2813 100644 (file)
  * by Alexei Kosut, based on htpasswd.c, by Rob McCool
  */
 
-#include "apr_lib.h"
+#include "apr.h"
+#include "apr_file_io.h"
 #include "apr_md5.h"
+#include "apr_lib.h"            /* for apr_getpass() */
+#include "apr_general.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>
+#endif
 
 #ifdef HAVE_SYS_TYPES_H
 #include <sys/types.h>
index 820cf78bf0e2f2e6cb2a1e370eb87113cb01a85b..77e6bdc915b5ebc1bc5e3553d5caa3dba426e8a2 100644 (file)
  *  6: Failure; username contains illegal or reserved characters
  */
 
+#include "apr.h"
 #include "apr_strings.h"
-#include "apr_lib.h"
 #include "apr_errno.h"
+#include "apr_file_io.h"
+
+#if APR_HAVE_STDIO_H
+#include <stdio.h>
+#endif
+
 #include "ap_config.h"
 #include "apr_md5.h"
 #include "ap_sha1.h"