]> granicus.if.org Git - apache/log
apache
24 years agoenable Expat for the Win32 build.
Greg Stein [Mon, 3 Jul 2000 08:26:52 +0000 (08:26 +0000)]
enable Expat for the Win32 build.

Submitted by: Keith Wannamaker

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

24 years agorun DAV's type_checker first so that it can grab the non-GET methods (it
Greg Stein [Sun, 2 Jul 2000 09:08:46 +0000 (09:08 +0000)]
run DAV's type_checker first so that it can grab the non-GET methods (it
    will pass thru GET for normal processing)
fix the DBGn() macros for Apache 2.0

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

24 years agosunny. wish my pool was finished...
Greg Stein [Sun, 2 Jul 2000 00:39:06 +0000 (00:39 +0000)]
sunny. wish my pool was finished...

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

24 years agofilter out the warning that AC_TRY_RUN gives us while running the
Greg Stein [Sun, 2 Jul 2000 00:16:27 +0000 (00:16 +0000)]
filter out the warning that AC_TRY_RUN gives us while running the
    AC_C_BIGENDIAN macro. we've already handled the cross-compile case,
    so we don't need to see the message

Submitted by: idea from Sascha Schumann

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

24 years agomaking progress...
Greg Stein [Sat, 1 Jul 2000 14:24:47 +0000 (14:24 +0000)]
making progress...

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

24 years agobuild the XML utility stuff now (req'd by the DAV code)
Greg Stein [Sat, 1 Jul 2000 14:14:15 +0000 (14:14 +0000)]
build the XML utility stuff now (req'd by the DAV code)

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

24 years agoconfig magic for enabling DAV, Expat, and SDBM.
Greg Stein [Sat, 1 Jul 2000 14:08:25 +0000 (14:08 +0000)]
config magic for enabling DAV, Expat, and SDBM.
*) AP_LIBS contains the target .a files from src/lib/
*) AP_LIB_DIRS contains add'l directories (besides pcre and apr) that we
   will build (and generate Makefiles for)
*) apache_need_expat and apache_need_sdbm are two new configure feature
   macros; set by the DAV stuff as needed
*) hackery to deal with dav/fs/ since it isn't really a module
*) do endian testing, so we can feed it into Expat to optimize that code

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

24 years agono need for relative includes. the directories will be added to the
Greg Stein [Sat, 1 Jul 2000 14:02:52 +0000 (14:02 +0000)]
no need for relative includes. the directories will be added to the
    compilation by the configure system.

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

24 years agoadd some basic infrastructure to sdbm. update expat-lite's
Greg Stein [Sat, 1 Jul 2000 14:01:37 +0000 (14:01 +0000)]
add some basic infrastructure to sdbm. update expat-lite's

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

24 years agoautoconf gives us WORDS_BIGENDIAN. a bit more of our magic for whether we
Greg Stein [Sat, 1 Jul 2000 13:56:00 +0000 (13:56 +0000)]
autoconf gives us WORDS_BIGENDIAN. a bit more of our magic for whether we
    even know the byte order one way or another.

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

24 years agobrand new Makefile.in to work in the Apache 2.0 config/build system
Greg Stein [Sat, 1 Jul 2000 13:54:50 +0000 (13:54 +0000)]
brand new Makefile.in to work in the Apache 2.0 config/build system

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

24 years agobring up to date with respect to Apache 1.3 src/lib/expat-lite/
Greg Stein [Sat, 1 Jul 2000 11:33:02 +0000 (11:33 +0000)]
bring up to date with respect to Apache 1.3 src/lib/expat-lite/

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

24 years agoRemove iol_socket.c from OS/2 build after Ryans's cleanup.
Brian Havard [Sat, 1 Jul 2000 04:09:29 +0000 (04:09 +0000)]
Remove iol_socket.c from OS/2 build after Ryans's cleanup.

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

24 years agoRemove ap_get_server_conf() from the MPM's that implement. The only place
Ryan Bloom [Fri, 30 Jun 2000 21:18:26 +0000 (21:18 +0000)]
Remove ap_get_server_conf() from the MPM's that implement.  The only place
this function was ever called was inside the MPM's, and not all of the
MPM's actually had the function.  This is part of another round of common
code clean-up.

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

24 years agoCast a vote
Jim Jagielski [Fri, 30 Jun 2000 21:11:26 +0000 (21:11 +0000)]
Cast a vote

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

24 years agoFix the problem with ./buildconf not working right out of CVS. The
Ryan Bloom [Fri, 30 Jun 2000 19:57:49 +0000 (19:57 +0000)]
Fix the problem with ./buildconf not working right out of CVS.  The
general problem, is that we were using AC_CONFIG_AUX_DIR_DEFAULT, which
the autoconf source says shouldn't be called directly.  It should be
called using AC_REQUIRE, but I couldn't make that work.  So, since we know
exactly where the files that we are looking for are located, we'll just
point autoconf directly to them, and ignore all of the hoops.  :-)

I am not convinced the AC_CONFIG_AUX_DIR(.) call that I am using is
strictly necessary, but it doesn't cause any problems and it logically
makes sense.

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

24 years agoCombine some common code. Before this, all platforms implemented their
Ryan Bloom [Fri, 30 Jun 2000 18:08:13 +0000 (18:08 +0000)]
Combine some common code.  Before this, all platforms implemented their
own iol_sockets using APR.  This just combines all of that code to a
common file and moves that file to main.  I have tested this with all of
the Unix MPM's, but I am willing to bet I missed something (Makefiles) for
Windows, and possibly moving some code for OS/2 and BeOS.

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

24 years agoI am removing my veto and stepping away from this discussion for at least
Ryan Bloom [Fri, 30 Jun 2000 14:45:15 +0000 (14:45 +0000)]
I am removing my veto and stepping away from this discussion for at least
two days.  This does NOT mean I like the patch at all, it just means I have
no desire to continue with this discussion right now.  Because I have no
plans to respond to any more e-mail on the topic currently, I have no right
to veto a patch.

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

24 years agoalways include limits.h for the INT_MAX value.
Greg Stein [Thu, 29 Jun 2000 00:53:38 +0000 (00:53 +0000)]
always include limits.h for the INT_MAX value.

Submitted by: Jeff Trawick

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

24 years agoFirst cut at getting mod_mmap_static function into mod_file_cache. My intent is to
Bill Stoddard [Wed, 28 Jun 2000 19:19:46 +0000 (19:19 +0000)]
First cut at getting mod_mmap_static function into mod_file_cache. My intent is to
retire mod_mmap_static.

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

24 years agoRemove the config stuff from the STATUS file. I believe the configuration
Ryan Bloom [Wed, 28 Jun 2000 16:55:45 +0000 (16:55 +0000)]
Remove the config stuff from the STATUS file.  I believe the configuration
in 2.0 is as clean as it's going to get now.  Most of the cruft has been
removed.  Any more changes that are needed to make the configure system
work can easily be added within the current configuration framework.

Also, update CHANGES to reflect the recent changes to the config system.

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

24 years agoFinish the Configuration cleanup. This basically merges all of the
Ryan Bloom [Wed, 28 Jun 2000 16:31:02 +0000 (16:31 +0000)]
Finish the Configuration cleanup.  This basically merges all of the
autoconf scripts that APR provides for other programs into apr_common.m4.
Other programs can then just include that file to get the APR checks that
are required.
Submitted by: Sascha Schumann <sascha@schumann.cx>

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

24 years agoUpdate mod_file_cache to use ap_core_translate. mod_file_cache is essentially identical
Bill Stoddard [Wed, 28 Jun 2000 14:46:01 +0000 (14:46 +0000)]
Update mod_file_cache to use ap_core_translate.  mod_file_cache is essentially identical
to mod_mmap_static now. Time to merge the two together...

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

24 years agoInclude strings.h for strcasecmp(), strncasecmp(), and bzero().
Jeff Trawick [Wed, 28 Jun 2000 14:33:48 +0000 (14:33 +0000)]
Include strings.h for strcasecmp(), strncasecmp(), and bzero().
Include time.h for time().

This removes a bunch of compiler warnings with gcc -Wall on AIX.
Submitted by: Jeff Trawick, Victor Orlikowski

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

24 years agoturn this off for now; the stuff compiles but doesn't link...
Greg Stein [Wed, 28 Jun 2000 11:42:36 +0000 (11:42 +0000)]
turn this off for now; the stuff compiles but doesn't link...

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

24 years agonote todo items to complete first pass of integration
Greg Stein [Wed, 28 Jun 2000 11:41:14 +0000 (11:41 +0000)]
note todo items to complete first pass of integration

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

24 years agoget the DAV stuff to compile for Apache 2.0. some unpleasantries are in
Greg Stein [Wed, 28 Jun 2000 11:23:53 +0000 (11:23 +0000)]
get the DAV stuff to compile for Apache 2.0. some unpleasantries are in
    there, but it *does* compile.

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

24 years agoinitial whack at the config/build stuff.
Greg Stein [Wed, 28 Jun 2000 09:49:11 +0000 (09:49 +0000)]
initial whack at the config/build stuff.

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

24 years agofirst, obvious step: alter the license/copyright on all mod_dav files.
Greg Stein [Wed, 28 Jun 2000 09:21:40 +0000 (09:21 +0000)]
first, obvious step: alter the license/copyright on all mod_dav files.

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

24 years agoinitial checkin of the new Apache DAV code. this is a pristine copy of
Greg Stein [Wed, 28 Jun 2000 08:55:58 +0000 (08:55 +0000)]
initial checkin of the new Apache DAV code. this is a pristine copy of
mod_dav 1.0.1 (tag "V1_0_1" in the mod_dav CVS repository).

For historical information about these files, see the (old) mod_dav web
site at http://www.webdav.org/mod_dav/. CVS repository information can
be located from those pages.

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

24 years ago Whoops... will be needing this exported rsn for mod_mmap_static. But the
William A. Rowe Jr [Wed, 28 Jun 2000 07:55:44 +0000 (07:55 +0000)]
  Whoops... will be needing this exported rsn for mod_mmap_static.  But the
  argument to register hook fn takes a __cdecl function, so _NONSTD it is.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years ago Hook functions aren't translated (and when they are, they are _NONSTD)...
William A. Rowe Jr [Wed, 28 Jun 2000 04:52:39 +0000 (04:52 +0000)]
  Hook functions aren't translated (and when they are, they are _NONSTD)...
  but you don't need to export a function you will pass by ref to a
  register hook function.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoFix the configure process. This does a couple of things to allow APR and
Ryan Bloom [Tue, 27 Jun 2000 23:12:23 +0000 (23:12 +0000)]
Fix the configure process.  This does a couple of things to allow APR and
Apache to share information.

1)  Move the calling of APR after Apache decides which MPM is run, but
    before Apache generates the Makefiles and related files.  This allows
    Apache to setup the threading cache values, while still allowing APR
    to generate APRVARS in time for Apache to use it.

2)  Setup the cache files correctly for RUN_NOW configured subdirectories.

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

24 years agoFix another compiler warning. Forgot to commit this one along with the
Bill Stoddard [Tue, 27 Jun 2000 22:39:13 +0000 (22:39 +0000)]
Fix another compiler warning. Forgot to commit this one along with the
earlier patch. Sorry...
Submitted by: Victor Orlikowski
Reviewed by:  Bill Stoddard

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

24 years agoFix compiler warning on AIX
Bill Stoddard [Tue, 27 Jun 2000 22:37:36 +0000 (22:37 +0000)]
Fix compiler warning on AIX
Submitted by:  Victor Orlikowski
Reviewed by:   Bill Stoddard

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

24 years agoPass the configure args to sub_configure scripts with the RUN_NOW macro.
Ryan Bloom [Tue, 27 Jun 2000 22:35:53 +0000 (22:35 +0000)]
Pass the configure args to sub_configure scripts with the RUN_NOW macro.

This allows people to specify --disable-threads on Apache's configure
command line, and APR respects it.  This is the first step to fixing a
problem introduced by making Apache call APR's configure script before
making any config decisions.

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

24 years agoFix compile warning on AIX
Bill Stoddard [Tue, 27 Jun 2000 22:35:40 +0000 (22:35 +0000)]
Fix compile warning on AIX

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

24 years agoUse libtool to compile instead of cc. If we are going to use libtool,
Ryan Bloom [Tue, 27 Jun 2000 22:25:12 +0000 (22:25 +0000)]
Use libtool to compile instead of cc.  If we are going to use libtool,
we may as well go all the way.
Submitted by: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
Reviewed by: Ryan Bloom

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

24 years agoStill a sunny day.
Ryan Bloom [Tue, 27 Jun 2000 22:01:04 +0000 (22:01 +0000)]
Still a sunny day.

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

24 years agosunny? yet again?
Greg Stein [Tue, 27 Jun 2000 21:51:11 +0000 (21:51 +0000)]
sunny? yet again?

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

24 years agoMove the checks for bcopy and memmove down to APR. APR now defines memmove
Ryan Bloom [Tue, 27 Jun 2000 21:35:27 +0000 (21:35 +0000)]
Move the checks for bcopy and memmove down to APR.  APR now defines memmove
and bzero on platforms that do not natively support them.

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

24 years agoOne bug and one fluff: need to use the '.' shell ``command'' to
Jim Jagielski [Tue, 27 Jun 2000 21:28:31 +0000 (21:28 +0000)]
One bug and one fluff: need to use the '.' shell ``command'' to
source the file; and remove error message first time APR's
configure is run, and APRVAR doesn't exist.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoMake sure to get the required vars for the config.guess/et.al. family
Jim Jagielski [Tue, 27 Jun 2000 21:16:52 +0000 (21:16 +0000)]
Make sure to get the required vars for the config.guess/et.al. family
first. Right now, this is semi-duplicated, since APR does the same.
PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoWe need to preload first, before running any other configures.
Jim Jagielski [Tue, 27 Jun 2000 21:02:12 +0000 (21:02 +0000)]
We need to preload first, before running any other configures.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoFix the configure script. If a either the mpmt_pthread or dexter MPM's
Ryan Bloom [Tue, 27 Jun 2000 20:25:46 +0000 (20:25 +0000)]
Fix the configure script.  If a either the mpmt_pthread or dexter MPM's
are chosen, the default CGI module is mod_cgid.  If any other MPM is
chosen, mod_cgi is the default.  I would rather have the maintainers for
other platforms change their own defaults, than make mod_cgid the default
on all threaded MPM's.

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

24 years agoDetect libraries based on which platform configure is being run on.
Ryan Bloom [Tue, 27 Jun 2000 20:06:21 +0000 (20:06 +0000)]
Detect libraries based on which platform configure is being run on.

Basically, Apache now runs APR's configure script first.  APR's configure
script has been setup to create a new file, APRVARS.  APRVARS is basically
all of the environment variables that APR wants to export to the program
that is using it.  This allows the calling program to "source" APRVARS
and get those environment variables.

Removed hack to make platforms use -ldl.

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

24 years agoRemove const from ap_socket_t parameters on APR functions so that
Jeff Trawick [Mon, 26 Jun 2000 20:37:49 +0000 (20:37 +0000)]
Remove const from ap_socket_t parameters on APR functions so that
APR can modify the ap_socket_t as it sees fit.  It may choose to
modify the ap_socket_t on functions which only read from the ap_socket_t
conceptually.

Note: http_connection::ap_new_apr_connection() passes its ap_socket_t
arg to one of the changed functions, so const was removed there also.

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

24 years agoFix the type of the 5th argument to iol_sendfile().
Jeff Trawick [Mon, 26 Jun 2000 17:25:52 +0000 (17:25 +0000)]
Fix the type of the 5th argument to iol_sendfile().

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

24 years agoLarge tidy up of the beos mpm. this brings in a lot of the changes that
David Reid [Mon, 26 Jun 2000 13:26:22 +0000 (13:26 +0000)]
Large tidy up of the beos mpm.  this brings in a lot of the changes that
have been made to dexter and mpmt_pthread and adds more support for graceful
restarts.

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

24 years agomention a newly-available patch from Jim Winstead
Jeff Trawick [Mon, 26 Jun 2000 13:13:05 +0000 (13:13 +0000)]
mention a newly-available patch from Jim Winstead

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

24 years ago"kick the baby!"
Greg Stein [Mon, 26 Jun 2000 00:38:44 +0000 (00:38 +0000)]
"kick the baby!"

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

24 years agoallow apxs to be run from the source tree, before installation (e.g. perl ../apache...
Doug MacEachern [Sun, 25 Jun 2000 23:44:16 +0000 (23:44 +0000)]
allow apxs to be run from the source tree, before installation (e.g. perl ../apache-2.0/src/support/apxs -q CFLAGS)

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

24 years agoparms needs err_directive incase execute_now() returns non-NULL (e.g. if LoadModule...
Doug MacEachern [Sun, 25 Jun 2000 22:50:10 +0000 (22:50 +0000)]
parms needs err_directive incase execute_now() returns non-NULL (e.g. if LoadModule fails)

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

24 years agoSince we are initializing the status variable, use the error code
Ryan Bloom [Sun, 25 Jun 2000 18:23:06 +0000 (18:23 +0000)]
Since we are initializing the status variable, use the error code
specially set aside for that purpose.

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

24 years agoQuiet an unhelpful gcc warning which said that stat might be
Jeff Trawick [Sun, 25 Jun 2000 15:53:53 +0000 (15:53 +0000)]
Quiet an unhelpful gcc warning which said that stat might be
used before set.

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

24 years agoClean up some warnings by including appropriate headers &
Brian Havard [Sun, 25 Jun 2000 08:22:13 +0000 (08:22 +0000)]
Clean up some warnings by including appropriate headers &
removing an unused variable.

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

24 years agoFix a couple of const warnings on Linux. This basically just defines
Ryan Bloom [Sat, 24 Jun 2000 19:31:42 +0000 (19:31 +0000)]
Fix a couple of const warnings on Linux.  This basically just defines
ap_strstr and ap_strstr_c, which make sure that things are const when
they need to be.

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

24 years agoblast the old names for the status codes
Greg Stein [Sat, 24 Jun 2000 17:34:11 +0000 (17:34 +0000)]
blast the old names for the status codes

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

24 years agohttp_request.[ch]:
Greg Stein [Sat, 24 Jun 2000 16:27:47 +0000 (16:27 +0000)]
http_request.[ch]:
*) add the "install_filter" hook as a hook/control point for modules to
   install their filters. [Ryan Bloom]

http_protocol.c:
*) move check_first_conn_error() up in the file; no actual changes
*) add checked_bputstrs(), checked_bflush(), and checked_bputs(). These are
   copies of ap_rvputs(), ap_rflush(), and ap_rputs() respectively. The
   users of the checked_* functions will be independent of filtering changes
   to the ap_r* functions.
*) add flush_filters() place holder

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

24 years agoBug fix:
Jeff Trawick [Sat, 24 Jun 2000 16:14:11 +0000 (16:14 +0000)]
Bug fix:
. check proper error variable when handling errors from ap_write(pipe_of_death)
. log proper error variable after ap_poll() failure
. ditto for ap_create_pipe() failures
. ditto for ap_set_pipe_timeout() failures
Stylistic change:
. pass 0 instead of errno to ap_log_error when APLOG_NOERRNO is specified

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

24 years agoLog errors from ap_accept().
Jeff Trawick [Sat, 24 Jun 2000 14:33:48 +0000 (14:33 +0000)]
Log errors from ap_accept().
Fix bad ap_log_error() argument list.
Pass correct error code from ap_poll().

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

24 years agoFix a few problems checking and logging errors in prefork.
Jeff Trawick [Sat, 24 Jun 2000 03:47:04 +0000 (03:47 +0000)]
Fix a few problems checking and logging errors in prefork.

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

24 years agoOS/390 needs arpa/inet.h for htonl().
Jeff Trawick [Sat, 24 Jun 2000 02:01:28 +0000 (02:01 +0000)]
OS/390 needs arpa/inet.h for htonl().
Submitted by: Greg Ames

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

24 years agoFix a couple of problems associated with recognizing when file
Jeff Trawick [Fri, 23 Jun 2000 20:23:08 +0000 (20:23 +0000)]
Fix a couple of problems associated with recognizing when file
descriptors for connected sockets are too big.

Todo: The BeOS MPMs seem to have the same issue.

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

24 years agoClean up the APR-ization of the pipe of death.
Jeff Trawick [Fri, 23 Jun 2000 20:02:58 +0000 (20:02 +0000)]
Clean up the APR-ization of the pipe of death.

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

24 years agoFix the mpmt_pthread MPM to use an APR pipe for the pipe of death. This
Ryan Bloom [Fri, 23 Jun 2000 18:12:44 +0000 (18:12 +0000)]
Fix the mpmt_pthread MPM to use an APR pipe for the pipe of death.  This
allows us to use APR_SOCKETS_AS_FILES to poll on an APR socket.  Finally,
this makes the MPM more portable, because it is now always possible to set
the pipe to be non-blocking.

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

24 years agoBring back the hokey call to ap_create_tcp_socket() so mpmt_pthread
Jeff Trawick [Fri, 23 Jun 2000 18:02:16 +0000 (18:02 +0000)]
Bring back the hokey call to ap_create_tcp_socket() so mpmt_pthread
works again.  It is completely hosed at the moment.

Todo: remove the need for this call.

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

24 years agoProperly detect the existance of send_file() on AIX
Bill Stoddard [Fri, 23 Jun 2000 16:00:29 +0000 (16:00 +0000)]
Properly detect the existance of send_file() on AIX

Submitted by: Victor Orlikowski
Reviewed by: Bill Stoddard

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

24 years agoModify the dexter MPM to use an APR pipe for the pipe of death. This fixes
Ryan Bloom [Fri, 23 Jun 2000 00:14:14 +0000 (00:14 +0000)]
Modify the dexter MPM to use an APR pipe for the pipe of death.  This fixes
a bug I introduced earlier today, because it uses the APR_FILES_AS_SOCKETS
to let us use the pipe of death in a poll call.  With this change, dexter
becomes much more portable.  Dexter used to try to set the pipe
non-blocking on it's own, but it only tried one argument to fcntl.  There
are at least four different arguments to fcntl based on what platform you
are on.  APR gets rid of that ugliness for us.

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

24 years agoRemove select checks from Apache config. These checks were used to define
Ryan Bloom [Thu, 22 Jun 2000 22:49:50 +0000 (22:49 +0000)]
Remove select checks from Apache config.  These checks were used to define
ap_select in ap_config.h.  The only file that used ap_select() was
prefork.c.  I have modified prefork.c to use select instead of ap_select.
In the future, this should be modified to use ap_poll like the rest of the
Unix MPMs.  There are other MPMs that are continuing to use select, but this
too should change in time.

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

24 years agoCommit a few changes to the mpmt_pthread and dexter MPMs. These basically
Ryan Bloom [Thu, 22 Jun 2000 19:46:23 +0000 (19:46 +0000)]
Commit a few changes to the mpmt_pthread and dexter MPMs.  These basically
fix the error checking for one return from ap_poll, and use ap_pcalloc to
allocate the listenfds array.  By using listenfds, we can avoid making
an unnecessary call to ap_create_tcp_socket.
Submitted by: Jeff Trawick
Reviewed by: Ryan Bloom

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

24 years agoGet Win32 building after yesterday's patch to make MPM's explain
Allan K. Edwards [Thu, 22 Jun 2000 19:17:20 +0000 (19:17 +0000)]
Get Win32 building after yesterday's patch to make MPM's explain
where to change compiled-in limits.

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

24 years agoMake dexter use the ap_poll API. This change is forced by AIX's
Ryan Bloom [Thu, 22 Jun 2000 19:06:07 +0000 (19:06 +0000)]
Make dexter use the ap_poll API.  This change is forced by AIX's
redefinition of pollfd.

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

24 years agoAdd the EXTRA_LIBS to get apache building on BONE again and now that
David Reid [Thu, 22 Jun 2000 18:28:07 +0000 (18:28 +0000)]
Add the EXTRA_LIBS to get apache building on BONE again and now that
we're using ap_sleep remove the need for sys/socket.h in mpm_common.c

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

24 years agoRemove a few unnecessary calls to select. These calls used to be made so
Ryan Bloom [Thu, 22 Jun 2000 16:55:01 +0000 (16:55 +0000)]
Remove a few unnecessary calls to select.  These calls used to be made so
that we would sleep for a specified number of microseconds.  APR provides
a function ap_sleep that does this for us.

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

24 years agoCut free mpm_common.c from ap_max_daemons_limit as a variable. Now we
David Reid [Thu, 22 Jun 2000 01:36:33 +0000 (01:36 +0000)]
Cut free mpm_common.c from ap_max_daemons_limit as a variable.  Now we
get the value from the MPM and thus free the MPM to use any variable
name they like.

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

24 years agoCorrect the pid that's being stored in the child_table to reflect what it's
David Reid [Thu, 22 Jun 2000 00:47:54 +0000 (00:47 +0000)]
Correct the pid that's being stored in the child_table to reflect what it's
supposed to (doh!) and fix some things to help with restarts.

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

24 years agoSmall change in an effort to get restarts working correctly on BeOS.
David Reid [Thu, 22 Jun 2000 00:41:43 +0000 (00:41 +0000)]
Small change in an effort to get restarts working correctly on BeOS.

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

24 years agoAdd the ap_get_max_daemons to dexter, prefork and spmt_os2 MPM's. The only
David Reid [Thu, 22 Jun 2000 00:28:33 +0000 (00:28 +0000)]
Add the ap_get_max_daemons to dexter, prefork and spmt_os2 MPM's.  The only
one now lacking it is winnt, but that'll need someone form the winnt camp
to sort out.

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

24 years agostop defining ap_scoreboard_fname multiple times in Mpmt_pthread MPM.
Ryan Bloom [Wed, 21 Jun 2000 23:04:02 +0000 (23:04 +0000)]
stop defining ap_scoreboard_fname multiple times in Mpmt_pthread MPM.
Submitted by: Victor J. Orlikowski <vjo@raleigh.ibm.com>
Reviewed by: Ryan Bloom

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

24 years agoStop defining ap_scoreboard_fname twice in the Dexter MPM
Ryan Bloom [Wed, 21 Jun 2000 23:00:03 +0000 (23:00 +0000)]
Stop defining ap_scoreboard_fname twice in the Dexter MPM
Submitted by: Victor J. Orlikowski <vjo@raleigh.ibm.com>
Reviewed by: Ryan Bloom

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

24 years ago#undef strchr and strrchr when in maintainer mode. This keeps us from
Ryan Bloom [Wed, 21 Jun 2000 14:34:41 +0000 (14:34 +0000)]
#undef strchr and strrchr when in maintainer mode.  This keeps us from
getting a lot of warnings on platforms that use macros for these functions.

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

24 years agoFix error messages issued from MPMs which explain where to change
Jeff Trawick [Wed, 21 Jun 2000 13:15:30 +0000 (13:15 +0000)]
Fix error messages issued from MPMs which explain where to change
compiled-in limits (e.g., ThreadsPerChild, MaxClients, StartTreads).

missing: the same minor changes for the 2nd BeOS MPM

Submitted by: Greg Ames
Reviewed by: Jeff Trawick

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

24 years agoFix warnings.
Ben Laurie [Tue, 20 Jun 2000 21:06:44 +0000 (21:06 +0000)]
Fix warnings.

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

24 years agoFix warnings.
Ben Laurie [Tue, 20 Jun 2000 20:52:44 +0000 (20:52 +0000)]
Fix warnings.

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

24 years agoConvert module and fix warnings.
Ben Laurie [Tue, 20 Jun 2000 20:47:01 +0000 (20:47 +0000)]
Convert module and fix warnings.

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

24 years agoFix warnings (we really need typesafe arrays, y'know).
Ben Laurie [Tue, 20 Jun 2000 20:42:06 +0000 (20:42 +0000)]
Fix warnings (we really need typesafe arrays, y'know).

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

24 years agoFix warnings.
Ben Laurie [Tue, 20 Jun 2000 20:39:39 +0000 (20:39 +0000)]
Fix warnings.

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

24 years agoFix warning.
Ben Laurie [Tue, 20 Jun 2000 20:31:42 +0000 (20:31 +0000)]
Fix warning.

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

24 years agoBlue Skies.....
Ryan Bloom [Tue, 20 Jun 2000 20:28:47 +0000 (20:28 +0000)]
Blue Skies.....

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

24 years agoap_create_pipe was changed to return a pipe with both handles
Jeff Trawick [Tue, 20 Jun 2000 19:36:50 +0000 (19:36 +0000)]
ap_create_pipe was changed to return a pipe with both handles
blocking (previously, both handles were non-blocking).

ap_set_pipe_timeout() is now the only way to manipulate the
blocking state of the pipe.  Pass -1 for timeout to make it
blocking; pass 0 for timeout to make it non-blocking.

ap_block_pipe() is gone.

A few minor bugs were fixed along the way.

OS-specific notes:

non-Unix in general:

Only Unix/BeOS currently has the optimization to keep track of the blocking
state.  This is used to avoid syscalls as well as to handle ap_put_os_file(),
which is a case where we don't know the blocking state of the handle we are
given.

OS/2:

ap_set_pipe_timeout() with timeout value > 0: The code didn't play with
the blocking state before and it doesn't still.  I did add logic for special
timeout values 0 and -1 to play with the blocking state.

ap_create_pipe():  old logic didn't do anything with the blocking state
of the second handle; it still doesn't; hopefully it is blocking

pre-BONE BEOS:

old code to make a pipe non-blocking was a no-op; now it returns
APR_ENOTIMPL

BONE: old code to make a pipe non-blocking; it passed &zero as the
parm to FIONBIO instead of &one; this bug was fixed

Win32:

The pipe was always created blocking before; no change

previously, ap_setprocattr_io() ignored the blocking flag; now it
respects it like other platforms and calls ap_set_pipe_timeout(p,0)
on appropriate pipe handles (Bill Stoddard was just working in
ap_set_pipe_timeout(), so I presume this is golden)

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

24 years ago Correct the problem where the only local host name that the IP stack
William A. Rowe Jr [Tue, 20 Jun 2000 19:30:32 +0000 (19:30 +0000)]
Correct the problem where the only local host name that the IP stack
    can discover are 'undotted' private names.  If no fully qualified
    domain name can be identified, the default ServerName will be set to
    the machine's IP address string.

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

24 years agoRemove unixd_detach function, because it is provided by APR as ap_detach.
Ryan Bloom [Tue, 20 Jun 2000 19:16:18 +0000 (19:16 +0000)]
Remove unixd_detach function, because it is provided by APR as ap_detach.
This also modifies the ap_detach function to look like unixd_detach.
Finally all calls to unixd_detach are changed to ap_detach.

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

24 years agoFix a typo.
Ryan Bloom [Tue, 20 Jun 2000 18:06:51 +0000 (18:06 +0000)]
Fix a typo.
Submitted by:Victor J. Orlikowski <vjo@raleigh.ibm.com>

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

24 years agoFix detection of sigwait prototype for NetBSD.
Ryan Bloom [Tue, 20 Jun 2000 17:57:25 +0000 (17:57 +0000)]
Fix detection of sigwait prototype for NetBSD.
Submitted by: Hubert Feyrer <feyrer@rfhs8012.fh-regensburg.de>
Reviewed by: Ryan Bloom

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

24 years agoThe new beos mpm. This is the first pass but will let more
David Reid [Tue, 20 Jun 2000 14:30:01 +0000 (14:30 +0000)]
The new beos mpm.  This is the first pass but will let more
people test later this week.

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

24 years agoignore some generated files in pcre and modules/proxy
Jeff Trawick [Tue, 20 Jun 2000 13:25:27 +0000 (13:25 +0000)]
ignore some generated files in pcre and modules/proxy

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

24 years agoUse the new command-handler initializer macros in some more modules.
Jeff Trawick [Tue, 20 Jun 2000 11:31:54 +0000 (11:31 +0000)]
Use the new command-handler initializer macros in some more modules.

Unfortunately, the resulting warnings are *not* all cleaned up.  Ten or
so warnings spill over to non-AP_DEBUG builds (but that just means that
there is a bigger pool of folks to resolve them, right?).

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

24 years agoRemoved the pointless ap_is_aborted macro.
Roy T. Fielding [Tue, 20 Jun 2000 04:22:39 +0000 (04:22 +0000)]
Removed the pointless ap_is_aborted macro.

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

24 years ago This Win32 patch adds the key HKCR/filetype/shell/execcgi/command as the
William A. Rowe Jr [Tue, 20 Jun 2000 04:15:02 +0000 (04:15 +0000)]
  This Win32 patch adds the key HKCR/filetype/shell/execcgi/command as the
  preference over the HKCR/filetype/shell/open/command for registry-based
  script execution, allowing two behaviors to coexist peacefully (the pipe
  based console behavior and the Win32 shell behavior.)

  The new ScriptInterpreterSource registry-strict directive dismisses bth
  the HKCR/filetype/shell/open/command and the shebang processing for
  administrators who are interested in explicit authorization of file type
  execution allowed in the context of subscriber-created scripts.  The net
  result: only HKCR/filetype/shell/execcgi/command processing is permitted.

  Docs to follow shortly.

PR:
Obtained from:
Submitted by:
Reviewed by:

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