]> granicus.if.org Git - apache/log
apache
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

24 years ago This patch disallows bogus args to the ScriptInterpreterSource directive
William A. Rowe Jr [Tue, 20 Jun 2000 03:53:55 +0000 (03:53 +0000)]
  This patch disallows bogus args to the ScriptInterpreterSource directive

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years ago This patch solves several specific issues:
William A. Rowe Jr [Tue, 20 Jun 2000 03:48:25 +0000 (03:48 +0000)]
  This patch solves several specific issues:

     1.3.x truncated any open/command arguments following the %1 arg.
           so this patch adds the char** arguments to several functions

     1.3.x did not expand environment strings (%userprofile% etc.)
           *) This patch may still not do so, if we are running with a
              subset of the 'normal' environment for security reasons.

     1.3.x did not parse the extension itself (eg. the .pl key itself)
           for the command, failing the 'named' type (eg. perlscript),
           so this patch first tests the 'named' key, then the .ext key

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agofix compile warning
Jeff Trawick [Mon, 19 Jun 2000 22:29:17 +0000 (22:29 +0000)]
fix compile warning
Submitted by: Victor J. Orlikowski <vjo@raleigh.ibm.com>
Reviewed by: Jeff Trawick

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

24 years agoUpdate mpm_common to work with the latest BeOS version and start
David Reid [Mon, 19 Jun 2000 21:11:49 +0000 (21:11 +0000)]
Update mpm_common to work with the latest BeOS version and start
adding support for a new BeOS MPM that I'll commit in a few days.

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

24 years agoGet rid of more compiler warnings.
Bill Stoddard [Mon, 19 Jun 2000 18:11:47 +0000 (18:11 +0000)]
Get rid of more compiler warnings.

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

24 years agoGet rid of a compiler warning.
Bill Stoddard [Mon, 19 Jun 2000 18:00:52 +0000 (18:00 +0000)]
Get rid of a compiler warning.

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

24 years agoEliminate warning.
Bill Stoddard [Mon, 19 Jun 2000 17:49:58 +0000 (17:49 +0000)]
Eliminate warning.

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

24 years agoAdd notes field to conn_rec
Allan K. Edwards [Mon, 19 Jun 2000 17:38:06 +0000 (17:38 +0000)]
Add notes field to conn_rec

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

24 years agoUse the new command-handler initializer macros in dexter;
Jeff Trawick [Mon, 19 Jun 2000 02:22:30 +0000 (02:22 +0000)]
Use the new command-handler initializer macros in dexter;
clean up the resulting warnings.

Fix minor glitch in previous changes to mpmt_pthread: the const-ness
of ap_scoreboard_fname wasn't consistent between mpmt_pthread.c and
scoreboard.c (of course, putting the decl in a header file would have
helped root this out earlier).

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

24 years agoRepair C++ compatibility in ap_config.h, apr_file_io.h,
Jeff Trawick [Mon, 19 Jun 2000 00:45:39 +0000 (00:45 +0000)]
Repair C++ compatibility in ap_config.h, apr_file_io.h,
apr_network_io.h, and apr_thread_proc.h.
Submitted by: Tyler J. Brooks <tylerjbrooks@home.com>

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

24 years agoUse the new command-handler initializer macros in prefork;
Jeff Trawick [Mon, 19 Jun 2000 00:24:24 +0000 (00:24 +0000)]
Use the new command-handler initializer macros in prefork;
clean up the resulting warnings.

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

24 years agoUse the new command-handler initializer macros in mod_access;
Jeff Trawick [Sun, 18 Jun 2000 21:01:21 +0000 (21:01 +0000)]
Use the new command-handler initializer macros in mod_access;
clean up the resulting warnings.

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

24 years agoUse the new command-handler initializer macros in mod_actions;
Jeff Trawick [Sun, 18 Jun 2000 13:43:38 +0000 (13:43 +0000)]
Use the new command-handler initializer macros in mod_actions;
clean up the resulting warnings.

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

24 years agoUse the new command-handler initializer macros in mod_auth;
Jeff Trawick [Sun, 18 Jun 2000 13:33:29 +0000 (13:33 +0000)]
Use the new command-handler initializer macros in mod_auth;
clean up the resulting warnings.

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

24 years agoFirst pass at documentation for the debugging options in APR's
David Reid [Sun, 18 Jun 2000 10:41:32 +0000 (10:41 +0000)]
First pass at documentation for the debugging options in APR's
memory allocation.  Mainly just the comments from apr_pools.c.

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

24 years agoUse the new command-handler initializer macros in a few more modules,
Jeff Trawick [Sun, 18 Jun 2000 04:06:43 +0000 (04:06 +0000)]
Use the new command-handler initializer macros in a few more modules,
cleaning up the resulting warnings.

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

24 years agoMake unixd_config.user_name const char * instead of char * to avoid
Jeff Trawick [Sun, 18 Jun 2000 03:05:41 +0000 (03:05 +0000)]
Make unixd_config.user_name const char * instead of char * to avoid
a warning when the set-user-name command handler saves the address of
the arg from the config file.

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

24 years agoProvide some more missing initializer macros for when AP_DEBUG isn't
Jeff Trawick [Sun, 18 Jun 2000 03:01:30 +0000 (03:01 +0000)]
Provide some more missing initializer macros for when AP_DEBUG isn't
defined (no, I didn't miss these in my commit this a.m. :) ).

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

24 years agoMore command handlers.
Ben Laurie [Sat, 17 Jun 2000 21:37:05 +0000 (21:37 +0000)]
More command handlers.

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

24 years ago Time for these to be gone? I'd say it's long past :)
William A. Rowe Jr [Sat, 17 Jun 2000 21:06:24 +0000 (21:06 +0000)]
  Time for these to be gone?  I'd say it's long past :)

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years ago Get Apache building on Win32
William A. Rowe Jr [Sat, 17 Jun 2000 21:05:30 +0000 (21:05 +0000)]
  Get Apache building on Win32

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years ago Time to jump back into 2.0 again... here are yesterday's updates to
William A. Rowe Jr [Sat, 17 Jun 2000 20:44:46 +0000 (20:44 +0000)]
  Time to jump back into 2.0 again... here are yesterday's updates to
  the MSVC conversion scripts, since the old ones would occasional be
  whacked.  Again I ask, if you see better code here, please commit it.

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoMore command handler updates.
Ben Laurie [Sat, 17 Jun 2000 16:53:50 +0000 (16:53 +0000)]
More command handler updates.

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

24 years agoMore consification, correct command initialisation.
Ben Laurie [Sat, 17 Jun 2000 16:29:53 +0000 (16:29 +0000)]
More consification, correct command initialisation.

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

24 years agoConstification.
Ben Laurie [Sat, 17 Jun 2000 12:36:54 +0000 (12:36 +0000)]
Constification.

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

24 years agoFix warnings.
Ben Laurie [Sat, 17 Jun 2000 12:33:30 +0000 (12:33 +0000)]
Fix warnings.

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

24 years agoFill in missing implementations of AP_INIT_whatever for when
Jeff Trawick [Sat, 17 Jun 2000 12:29:53 +0000 (12:29 +0000)]
Fill in missing implementations of AP_INIT_whatever for when
AP_DEBUG is not defined.  Apache now compiles for me on FreeBSD
3.4 when AP_DEBUG isn't defined (albeit with a few warnings).

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

24 years agoCommand handler revamp. Note that this makes the code produce a LOT of
Ben Laurie [Sat, 17 Jun 2000 11:13:05 +0000 (11:13 +0000)]
Command handler revamp. Note that this makes the code produce a LOT of
warnings!

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

24 years agoap_pool_join is a debugging function so remove it.
David Reid [Sat, 17 Jun 2000 11:00:57 +0000 (11:00 +0000)]
ap_pool_join is a debugging function so remove it.

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

24 years agoreduce some code redundancy / simplify.
Greg Stein [Sat, 17 Jun 2000 02:22:03 +0000 (02:22 +0000)]
reduce some code redundancy / simplify.
use a consistent var name for va_list

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

24 years agoap_bvputs() is a misnomer; introduce ap_bputstrs()
Greg Stein [Sat, 17 Jun 2000 01:29:29 +0000 (01:29 +0000)]
ap_bvputs() is a misnomer; introduce ap_bputstrs()
    [todo: proxy and file_cache code should be updated for new name]
add ap_vbputstrs()
use ap_vbputstrs() from http_protocol.
use EOF in a few places, rather than the magic "-1" constant

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

24 years agoBuffering for config file reads is now enabled.
Jeff Trawick [Fri, 16 Jun 2000 16:42:49 +0000 (16:42 +0000)]
Buffering for config file reads is now enabled.

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

24 years agoTurn on buffering for config file reads. This is dependent on ap_fgets()
Jeff Trawick [Fri, 16 Jun 2000 16:41:21 +0000 (16:41 +0000)]
Turn on buffering for config file reads.  This is dependent on ap_fgets()
doing the right thing.

Brian Havard implemented buffering for ap_fgets() on Win32 recently; OS/2 had
it already.  This provides it for Unix.

changes to ap_read(), ap_getc(), ap_fgets() for Unix:

1) this fixes a problem in where ap_open() where a lock is created for
   non-buffered files
2) this fixes problems setting rv correctly in the ap_read() buffered
   path
3) since ap_read() works as expected, it is possible to make ap_getc()
   and ap_fgets() even smaller
4) ap_fgets() no longer cares about '\r'

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

24 years agoFix segfault when reporting this type of syntax error:
Jeff Trawick [Fri, 16 Jun 2000 12:00:58 +0000 (12:00 +0000)]
Fix segfault when reporting this type of syntax error:
"</container> without matching <container> section", where
container is VirtualHost or Directory or whatever.

This was a path not covered by the fix in 2.0a4 to report
the proper line numbers (sorry!).

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

24 years agoRebuild Apache and APR configure scripts when lib/apr/hints.m4 changes.
Jeff Trawick [Thu, 15 Jun 2000 17:54:37 +0000 (17:54 +0000)]
Rebuild Apache and APR configure scripts when lib/apr/hints.m4 changes.

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

24 years agoInclude the proper header file (under X/Open, at least) for ntohs() in
Jeff Trawick [Thu, 15 Jun 2000 13:42:01 +0000 (13:42 +0000)]
Include the proper header file (under X/Open, at least) for ntohs() in
a couple of modules.  This lets us link-edit successfully again on OS/390.
(OS/390 only has the macro form of these functions.)

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

24 years agoPrevent the source code for CGIs from being revealed when using
Tony Finch [Thu, 15 Jun 2000 00:56:37 +0000 (00:56 +0000)]
Prevent the source code for CGIs from being revealed when using
mod_vhost_alias and the CGI directory is under the document root
and a user makes a request like http://www.example.com//cgi-bin/cgi
as reported in <news:960999105.344321@ernani.logica.co.uk>

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

24 years agoAdd support to ap_xlate_open() for an app to specify that the
Jeff Trawick [Wed, 14 Jun 2000 20:38:32 +0000 (20:38 +0000)]
Add support to ap_xlate_open() for an app to specify that the
charset of the locale is to be used for the source or target
charset.

At EBCDIC initialization, use the locale charset as one of the
pair when setting up the default translation handles for content.

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

24 years agoAdd sys/time.h to mpm_common to include define of timeval.
David Reid [Wed, 14 Jun 2000 13:50:40 +0000 (13:50 +0000)]
Add sys/time.h to mpm_common to include define of timeval.

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

24 years agoTidy up the beos mpm by
David Reid [Wed, 14 Jun 2000 00:17:21 +0000 (00:17 +0000)]
Tidy up the beos mpm by
- removing some unused variables
- correct a problem with pool allocations that killed the server
- add back the ap_lingering close call which I removed in error
  just before going on holiday.

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

24 years agoGet the ap_config.h cleanup working on FreeBSD by adding includes of
Jeff Trawick [Tue, 13 Jun 2000 21:36:18 +0000 (21:36 +0000)]
Get the ap_config.h cleanup working on FreeBSD by adding includes of
additional system headers.

A platform check in logresolve.c to determine whether or not we include
<arpa/inet.h> was converted to a feature check.

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

24 years agoAdd mpm.h to the src/modules/mpm/winnt directory (it's empty for now, but its presense
Bill Stoddard [Tue, 13 Jun 2000 14:09:22 +0000 (14:09 +0000)]
Add mpm.h to the src/modules/mpm/winnt directory (it's empty for now, but its presense
is required for http_core.c, et. al.).  Update ApacheCore.dsp to pick it up in the
include path.

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

24 years agofixups for remaining current warnings
Chuck Murcko [Tue, 13 Jun 2000 06:17:47 +0000 (06:17 +0000)]
fixups for remaining current warnings

Submitted by: Chuck Murcko

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

24 years agoOK, this builds and is autoconf safe about system headers, until it starts
Chuck Murcko [Tue, 13 Jun 2000 01:22:09 +0000 (01:22 +0000)]
OK, this builds and is autoconf safe about system headers, until it starts
using APR
PR:
Obtained from:
Submitted by: Chuck Murcko
Reviewed by:

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

24 years agoFix the configuration process. If no modules are specified in a given
Ryan Bloom [Tue, 13 Jun 2000 01:22:06 +0000 (01:22 +0000)]
Fix the configuration process.  If no modules are specified in a given
directory, then that directory is no longer added to the build process.
Also, I have added a .cvsignore to the file_cache directory and removed
a generated file from this directory.  Finally, I have removed
some unnecessary checks from the config.m4 files.

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

24 years agoStop checking for Shared Memory. This function is actually no longer
Ryan Bloom [Tue, 13 Jun 2000 01:08:20 +0000 (01:08 +0000)]
Stop checking for Shared Memory.  This function is actually no longer
defined by our autoconf setup, but I forgot to remove all of the calls
to it.

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

24 years agoRemove the check for EAGAIN. With APR handling the error codes, this is
Ryan Bloom [Mon, 12 Jun 2000 23:34:23 +0000 (23:34 +0000)]
Remove the check for EAGAIN.  With APR handling the error codes, this is
no longer an issue that Apache needs to deal with.

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

24 years agoProtect system header files with the appropriate macros.
Ryan Bloom [Mon, 12 Jun 2000 23:03:05 +0000 (23:03 +0000)]
Protect system header files with the appropriate macros.

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

24 years agoMod_proxy should not be a default module... yet. :-)
Ryan Bloom [Mon, 12 Jun 2000 22:49:53 +0000 (22:49 +0000)]
Mod_proxy should not be a default module... yet.  :-)

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

24 years agoresolved conflicts (2) in PASV handling from original commit
Chuck Murcko [Mon, 12 Jun 2000 22:13:08 +0000 (22:13 +0000)]
resolved conflicts (2) in PASV handling from original commit

PR:
Obtained from:
Submitted by: Chuck Murcko
Reviewed by:

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

24 years agoClean up a big chunk of ap_config.h. This basically stops ap_config.h from
Ryan Bloom [Mon, 12 Jun 2000 21:47:17 +0000 (21:47 +0000)]
Clean up a big chunk of ap_config.h.  This basically stops ap_config.h from
including any files.  Because of this change, other files must include
their own headers.  I also cleaned up a couple of other bugs in some
modules because I had to compile them all.

I expect this to break multiple platforms, but this will be fixed over time.
The massive configure cleanup is almost done.  I will go through the files
one more time after this commit.

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

24 years agoNew mod_proxy/mod_cache (file cache) for 2.0. This uses a caching API so
Chuck Murcko [Mon, 12 Jun 2000 21:41:58 +0000 (21:41 +0000)]
New mod_proxy/mod_cache (file cache) for 2.0. This uses a caching API so
that shared mem, LDAP servers, DBs, etc. can also be used for proxy
caching. The caching API is very young, and subject to change as APR changes.

proxy_cache.c from the proxy subdir is no longer used.

Build with --enable-modules=proxy,cache

Lightly tested on Linux, no warranties expressed or implied yet.

Still to do:

strerror(), waitpid(), stat() cleanups
address issues marked by @@@FIXME
add HTTP/1.1

This should be considered a *reference* proxy implementation for 2.0. What
actually ends up shipping with 2.0 is likely going to be rather different as
the redesign evolves. This may end up being the 2.0 backwards compatibility
workalike.

Modified to work with today's conf/build/layout scheme

PR:
Obtained from:
Submitted by: Sam Magnuson
Reviewed by: Chuck Murcko

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

24 years agoFix logging of errors creating the httpd.pid file.
Jeff Trawick [Mon, 12 Jun 2000 21:39:57 +0000 (21:39 +0000)]
Fix logging of errors creating the httpd.pid file.

perror() was converted to ap_log_error(), which will interpret the
specified APR error code properly.

The existing ap_log_error() call was changed so that the message is
formatted properly.  Note that this call is made from the mpm after
we detach from the foreground process, so it can only appear in the
log.

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

24 years agoBack out ap_set_default_perms(). Remove old logic to play with umask
Jeff Trawick [Mon, 12 Jun 2000 21:08:25 +0000 (21:08 +0000)]
Back out ap_set_default_perms().  Remove old logic to play with umask
around the creation of the httpd.pid file.  Pass explicit permissions to
ap_open(), omitting write-ability except by the owning user.  As always,
we end up with rw-r--r-- for the permissions unless the umask is something
unusual.

Note that the OS/2 and Win32 implementations of ap_open() ignore the
permissions parameter altogether.

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

24 years agoGet mod_cgid compiling again.
Jeff Trawick [Mon, 12 Jun 2000 20:42:11 +0000 (20:42 +0000)]
Get mod_cgid compiling again.

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

24 years agopcre.h is a permanent file now... don't .cvsignore it any longer
Jeff Trawick [Mon, 12 Jun 2000 20:40:05 +0000 (20:40 +0000)]
pcre.h is a permanent file now... don't .cvsignore it any longer

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

24 years agoAdd exports required by Jeff's recent changes.
Bill Stoddard [Mon, 12 Jun 2000 18:44:26 +0000 (18:44 +0000)]
Add exports required by Jeff's recent changes.

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

24 years agoAnother struct stat to ap_finfo_t change
Bill Stoddard [Mon, 12 Jun 2000 18:43:41 +0000 (18:43 +0000)]
Another struct stat to ap_finfo_t change

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

24 years agoClean up the stat commit. Basically there was one struct stat that I
Ryan Bloom [Mon, 12 Jun 2000 18:07:43 +0000 (18:07 +0000)]
Clean up the stat commit.  Basically there was one struct stat that I
missed converting to ap_finfo_t.

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

24 years agoFix Win32 compile break caused by Ryan's stat cleanup.
Bill Stoddard [Mon, 12 Jun 2000 18:07:31 +0000 (18:07 +0000)]
Fix Win32 compile break caused by Ryan's stat cleanup.

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

24 years agoIncluding apr_file_io.h is not necessary.
Sascha Schumann [Mon, 12 Jun 2000 17:41:14 +0000 (17:41 +0000)]
Including apr_file_io.h is not necessary.

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

24 years agoFix typos.
Sascha Schumann [Mon, 12 Jun 2000 17:40:00 +0000 (17:40 +0000)]
Fix typos.

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