]> granicus.if.org Git - apache/log
apache
24 years agoWin32: Convert ap_proc_t to tranparent type.
Bill Stoddard [Wed, 24 May 2000 23:45:37 +0000 (23:45 +0000)]
Win32: Convert ap_proc_t to tranparent type.

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

24 years agoClear up some int vs. pid_t issues in prefork to keep compiles clean
Jeff Trawick [Wed, 24 May 2000 20:01:18 +0000 (20:01 +0000)]
Clear up some int vs. pid_t issues in prefork to keep compiles clean
on Solaris.

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

24 years agoImplement saferead in Apache 2.0. This has had minimal testing, and it
Ryan Bloom [Wed, 24 May 2000 19:19:20 +0000 (19:19 +0000)]
Implement saferead in Apache 2.0.  This has had minimal testing, and it
seems to work, but only really hammering on it will tell for sure.

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

24 years agoAllow --enable-cgid and --disable-cgid to work. Basically just make
Ryan Bloom [Wed, 24 May 2000 16:17:58 +0000 (16:17 +0000)]
Allow --enable-cgid and --disable-cgid to work.  Basically just make
cgid a standard module.

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

24 years agoFix a memory leak with ap_wait_or_timeout.
Ryan Bloom [Wed, 24 May 2000 00:42:01 +0000 (00:42 +0000)]
Fix a memory leak with ap_wait_or_timeout.

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

24 years agoRename stdin, stdout, stderr from new ap_proc_t to in, out, and err because
Ryan Bloom [Wed, 24 May 2000 00:15:09 +0000 (00:15 +0000)]
Rename stdin, stdout, stderr from new ap_proc_t to in, out, and err because
Windows was having problems with the original names.

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

24 years agouse the correct size for 'ret'
Greg Stein [Tue, 23 May 2000 23:32:35 +0000 (23:32 +0000)]
use the correct size for 'ret'

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

24 years agoFix a small bug/warning when compiling with use-maintiner-mode related
Ryan Bloom [Tue, 23 May 2000 23:26:51 +0000 (23:26 +0000)]
Fix a small bug/warning when compiling with use-maintiner-mode related
to the ap_proc_t change.

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

24 years ago Note a patch for htpasswd. A matching patch for 1.3 is also
Ken Coar [Tue, 23 May 2000 21:50:57 +0000 (21:50 +0000)]
Note a patch for htpasswd.  A matching patch for 1.3 is also
pending.  I'll commit in a couple of days if no-one comments.

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

24 years agoPort mpmt_pthread and dexter to the new ap_proc_t code. This works
Ryan Bloom [Tue, 23 May 2000 21:27:37 +0000 (21:27 +0000)]
Port mpmt_pthread and dexter to the new ap_proc_t code.  This works
just fine for these MPMs and it was easy to make the changes.

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

24 years agoConvert ap_proc_t to a complete type. This lets us access the pid directly.
Ryan Bloom [Tue, 23 May 2000 21:04:03 +0000 (21:04 +0000)]
Convert ap_proc_t to a complete type.  This lets us access the pid directly.
Only the prefork MPM has been ported so far, the rest of the Unix MPM's are
coming later today.

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

24 years agoWin32: Socket reuse is not enabled yet, so always mark used accept sockets
Bill Stoddard [Tue, 23 May 2000 17:28:51 +0000 (17:28 +0000)]
Win32: Socket reuse is not enabled yet, so always mark used accept sockets
as being closed.

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

24 years agoWin32: Fix compile problems.
Bill Stoddard [Tue, 23 May 2000 16:50:37 +0000 (16:50 +0000)]
Win32: Fix compile problems.

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

24 years agoClean up some pid_t vs. int confusion in mpmt_pthread MPM. This is
Jeff Trawick [Tue, 23 May 2000 14:05:53 +0000 (14:05 +0000)]
Clean up some pid_t vs. int confusion in mpmt_pthread MPM.  This is
needed to avoid some warnings on Solaris.

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

24 years agoClean up some pid_t vs. int confusion in dexter.c. This is
Jeff Trawick [Tue, 23 May 2000 13:56:39 +0000 (13:56 +0000)]
Clean up some pid_t vs. int confusion in dexter.c.  This is
needed to avoid some warnings on Solaris.

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

24 years agoTurn on buffered I/O in mod_include for reading the input file.
Brian Havard [Tue, 23 May 2000 03:04:30 +0000 (03:04 +0000)]
Turn on buffered I/O in mod_include for reading the input file.

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

24 years agoRemove ap_destroy_context from Apache 2.0. With the name change back to
Ryan Bloom [Mon, 22 May 2000 17:05:23 +0000 (17:05 +0000)]
Remove ap_destroy_context from Apache 2.0.  With the name change back to
ap_pool_t, this function doesn't make sense.  This also changes all
references to ap_destroy_context back to ap_destroy_pool.

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

24 years agoFix the config parser so that if there is no current node, and we are
Ryan Bloom [Mon, 22 May 2000 02:57:44 +0000 (02:57 +0000)]
Fix the config parser so that if there is no current node, and we are
evaluating an EXEC_ON_READ directive, and the directive's sub_tree is empty,
we don't try to set the node's parent pointer.  This stops a seg fault.
Submitted by: Jeff Trawick

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

24 years agoRemove all remaining instances in Apache code of
Manoj Kasichainula [Sun, 21 May 2000 05:31:09 +0000 (05:31 +0000)]
Remove all remaining instances in Apache code of
ap_{block,unblock}_alarms.

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

24 years agoconfigure is a generated file; hence it should be in .cvsignore.
Manoj Kasichainula [Sun, 21 May 2000 05:29:22 +0000 (05:29 +0000)]
configure is a generated file; hence it should be in .cvsignore.

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

24 years ago Why should Ryan have all the fun?
William A. Rowe Jr [Fri, 19 May 2000 23:24:19 +0000 (23:24 +0000)]
  Why should Ryan have all the fun?
  Cleans up compiler warning emits.

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

24 years agoMake Apache and APR use the same flags to specify maintainer mode. I
Ryan Bloom [Fri, 19 May 2000 23:13:31 +0000 (23:13 +0000)]
Make Apache and APR use the same flags to specify maintainer mode.  I
chose to use --with-maintainer-mode, because that flag can be passed down
using AC_CONFIG_SUBDIRS.  I couldn't find any easy way to pass environment
variables to configure scripts called from within Apache's configure.

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

24 years agoRemove a warning about ap_base64encode not being defined anywhere.
Ryan Bloom [Fri, 19 May 2000 22:39:40 +0000 (22:39 +0000)]
Remove a warning about ap_base64encode not being defined anywhere.

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

24 years agoRemove a warning when build with USE_MAINTAINER_MODE.
Ryan Bloom [Fri, 19 May 2000 22:39:00 +0000 (22:39 +0000)]
Remove a warning when build with USE_MAINTAINER_MODE.

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

24 years agoFix a bug in adding EXEC_ON_READ at the top level of the tree.
Ryan Bloom [Fri, 19 May 2000 17:22:47 +0000 (17:22 +0000)]
Fix a bug in adding EXEC_ON_READ at the top level of the tree.

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

24 years agoFix warnings on use of common prototypes. Fix bug of printing a
Roy T. Fielding [Fri, 19 May 2000 07:14:54 +0000 (07:14 +0000)]
Fix warnings on use of common prototypes.  Fix bug of printing a
pointer to proc_t instead of the actual pid on error.

Submitted by: Jeff Trawick, Roy Fielding

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

24 years agoTemporary fix for misuse of int instead of pid_t.
Roy T. Fielding [Fri, 19 May 2000 07:10:57 +0000 (07:10 +0000)]
Temporary fix for misuse of int instead of pid_t.
Also include mpm_common.h to pick up the common prototypes.

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

24 years agoPrototypes for the visible functions in mpm_common.c.
Roy T. Fielding [Fri, 19 May 2000 07:07:39 +0000 (07:07 +0000)]
Prototypes for the visible functions in mpm_common.c.

Submitted by: Jeff Trawick <trawickj@bellsouth.net>
Reviewed by: Roy Fielding

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

24 years agoWe shouldn't be calling mm_free directly. Use ap_shm_free instead.
Roy T. Fielding [Fri, 19 May 2000 06:49:52 +0000 (06:49 +0000)]
We shouldn't be calling mm_free directly.  Use ap_shm_free instead.

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

24 years ago Current and clean make files for Win95. Changes Include:
William A. Rowe Jr [Fri, 19 May 2000 05:09:20 +0000 (05:09 +0000)]
  Current and clean make files for Win95.  Changes Include:

  All projects link incrementally with no link maps in Debug mode.
  New cvstodsp6.pl and dsp6tocvs.pl will fix up /the /ZI - /Zi issue.
  Includes corrections noted by Tim Costello

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

24 years ago Fixes to allow Apache to run as a Win95 service... highlights
William A. Rowe Jr [Fri, 19 May 2000 05:01:53 +0000 (05:01 +0000)]
  Fixes to allow Apache to run as a Win95 service... highlights

  main_win32.h : Moved delarations to a header, by request
  ap_listen.h :  References types declared in http_config.h
  http_main.h :  Add the Win32 flavor entry point declaration
  apr.hw :       Cleanup the redundancy department of redundancy
  win32/proc.c : Double null termination was required here

  Everything else should be obvious and isolated to Win32.
  Build files will be committed seperately.

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

24 years agoap_wait_or_timeout() can't be static since it is called from
Jeff Trawick [Fri, 19 May 2000 02:37:17 +0000 (02:37 +0000)]
ap_wait_or_timeout() can't be static since it is called from
dexter.c, prefork.c, and mpmt_pthread.c.

(Yes, we still need a function prototype somewhere, but at least we
can link properly now.)

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

24 years agoab: Fix a command-line processing bug; track bad headers in
Jeff Trawick [Fri, 19 May 2000 02:18:06 +0000 (02:18 +0000)]
ab: Fix a command-line processing bug; track bad headers in
err_response; support reading headers up to 2K.  (In the
original patch it was 8K instead of 2K; it isn't clear to me
that 8K is really needed or appropriate.)
Submitted by: Ask Bjoern Hansen <ask@valueclick.com>
Reviewed by: Jeff Trawick

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

24 years agoMove wait_or_timeout from the MPM's into the new mpm_common.c file. I
Ryan Bloom [Fri, 19 May 2000 01:05:26 +0000 (01:05 +0000)]
Move wait_or_timeout from the MPM's into the new mpm_common.c file.  I
also renamed wait_or_timeout to ap_wait_or_timeout for namespace
protection.

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

24 years agoFirst function removed from Unix MPM's and moved to a common file. This
Ryan Bloom [Thu, 18 May 2000 23:25:06 +0000 (23:25 +0000)]
First function removed from Unix MPM's and moved to a common file.  This
work is not anywhere near finished, but the cleanup has begun at least.
Had to make a couple of variables non-static, so a name change was required
since they are now viewable from outside the library.  The advantage to this
is code that is much easier to maintain into the future, because it is
duplicated less often.

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

24 years agoAdd "-D APACHE_XLATE" to the output of httpd -V when APACHE_XLATE
Jeff Trawick [Thu, 18 May 2000 19:56:16 +0000 (19:56 +0000)]
Add "-D APACHE_XLATE" to the output of httpd -V when APACHE_XLATE
is defined at compile time.

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

24 years agoFix some bugs in the use of APACHE_XLATE vs. CHARSET_EBCDIC
Jeff Trawick [Thu, 18 May 2000 19:54:44 +0000 (19:54 +0000)]
Fix some bugs in the use of APACHE_XLATE vs. CHARSET_EBCDIC
which prevented building with APACHE_XLATE on an ASCII machine.

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

24 years agorebuild mm's configure if mm's aclocal.m4 has been modified
Jeff Trawick [Thu, 18 May 2000 19:14:02 +0000 (19:14 +0000)]
rebuild mm's configure if mm's aclocal.m4 has been modified

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

24 years agoThe following is a patch to fix Dirk's patch from March 14 so that
Jeff Trawick [Thu, 18 May 2000 14:11:23 +0000 (14:11 +0000)]
The following is a patch to fix Dirk's patch from March 14 so that
mod_rewrite will work without caveats. Basically Dirk was just
dropping patterns of the form ${x} if x didn't resolve to an
environment variable. That breaks mod_rewrite since mod_rewrite
uses the same syntax for some of its non-environment directives.

The patch below simply puts the behavior for unresolved values back
to what it was before Dirk's patch. If it is unresolved, it is just
left in the directive as is. Further processing will handle the value.

Dirk's optimization still holds if x is resolved. A small price is paid
if x is not resolved, but that shouldn't happen often.

(Note: some tweaks to the comments were negotiated offline after Paul
posted the patch to new-httpd.)
Submitted by: Paul Reder <rederpj@raleigh.ibm.com>
Reviewed by: Jeff Trawick

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

24 years agoGet dexter building/running on OS/390 (same changes as those
Jeff Trawick [Thu, 18 May 2000 11:39:44 +0000 (11:39 +0000)]
Get dexter building/running on OS/390 (same changes as those
made to mpmt_pthread previously):
. don't include netinet/tcp.h if you ain't got it
. handle OS/390 flavors of pthread_sigmask() and
  pthread_attr_setdetachstate()

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

24 years agoFix problem where the Unix mpms had an unitialized variable for
Jeff Trawick [Thu, 18 May 2000 02:17:30 +0000 (02:17 +0000)]
Fix problem where the Unix mpms had an unitialized variable for
child exit status by adding an exit status parameter to
ap_wait_all_procs(); with this change, the mpms use
ap_wait_all_procs() more like they previously used waitpid().

With the introduction of the exit status parameter, the definition
of ap_wait_t was moved from Apache to APR.  There was some handling
of union wait for the type of the exit status parameter to waitpid()
which I retained (but cannot test).  For WIN32, ap_wait_t was defined
as int (in apr.hw).  No current Windows code uses ap_wait_t, but a
type is required so that references to ap_wait_t in apr_thread_proc.h
can compile on Windows.

Note: There is still a storage leak in the way that the Unix mpms call
ap_wait_all_procs()...  this will be resolved at some later time.

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

24 years agoRemove an unused variable and warning.
Roy T. Fielding [Thu, 18 May 2000 01:35:03 +0000 (01:35 +0000)]
Remove an unused variable and warning.

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

24 years agoMove prototype of ap_hook_deregister_all to where it belongs.
Roy T. Fielding [Thu, 18 May 2000 00:45:05 +0000 (00:45 +0000)]
Move prototype of ap_hook_deregister_all to where it belongs.

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

24 years agoThis commit will most likely break everybody on Windows. The .dsp
Ryan Bloom [Wed, 17 May 2000 23:30:21 +0000 (23:30 +0000)]
This commit will most likely break everybody on Windows.  The .dsp
files I am checking in though will build a usable Apache on Windows.
This finishes at least the first round of the merge work to get the
common code into common files in APR.

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

24 years agoarg!! should have committed this with last night's changes; need
Jeff Trawick [Wed, 17 May 2000 12:07:49 +0000 (12:07 +0000)]
arg!!  should have committed this with last night's changes; need
more sleep

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

24 years agoinclude translation information in the request_rec;
Jeff Trawick [Wed, 17 May 2000 03:19:38 +0000 (03:19 +0000)]
include translation information in the request_rec;
finish converting ap_bsetflag(B_ASCII2EBCDIC or B_EBCDIC2ASCII) to
ap_bsetopt(BO_WXLATE or BO_RXLATE)

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

24 years ago Cleanup ap_config.h fallout for Win32. Only a few very minor
William A. Rowe Jr [Wed, 17 May 2000 01:52:48 +0000 (01:52 +0000)]
  Cleanup ap_config.h fallout for Win32.  Only a few very minor
  changes to ap_config.h and util.c, but they might hurt someone...
  please watch those two carefully.

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

24 years agoPR:
William A. Rowe Jr [Wed, 17 May 2000 00:45:05 +0000 (00:45 +0000)]
PR:
Obtained from:
Submitted by:
Reviewed by:

    Just a plain old screwup.  If someone can give me syntax to backout
    a change rather than reverse it, I'd be much obliged

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

24 years ago Radical overhaul of the Apache-2.0/Win32 mpm <-> service schema.
William A. Rowe Jr [Wed, 17 May 2000 00:35:21 +0000 (00:35 +0000)]
  Radical overhaul of the Apache-2.0/Win32 mpm <-> service schema.

  1) Services and Registry are not part of the core Apache operations,
     so registry.c and service.c are moved into Apache.exe - assuring
     the service control layers of NT and 95 are truly isolated.

  2) Isolation can't be complete, we need to know when the mpm is
     fully initialized.  A new pointer to a no-arg function returning
     void is provided for this purpose, ap_mpm_init_complete.  It is
     only called if overridden with a non-NULL value prior to invoking
     apache_main.

  3) Control+C, Control+Break are handled on both WinNT and Win9x.

  4) The window close, logoff and shutdown events are handled on WinNT.

  5) The beginnings of a Win95 service startup are provided, -k startservice
     but this is horribly incomplete since Win95 will NOT report shutdown.

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

24 years agofix up the repository with the correct add/remove sequence.
Greg Stein [Wed, 17 May 2000 00:22:56 +0000 (00:22 +0000)]
fix up the repository with the correct add/remove sequence.

this is the initial checkin of ap_config.h: it is a copy of ap_ac_config.h
    which has now been deleted. go there for proper history.

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

24 years agoFix a bug in the EXEC_ON_READ logic. When we build a sub_tree while
Ryan Bloom [Tue, 16 May 2000 22:16:51 +0000 (22:16 +0000)]
Fix a bug in the EXEC_ON_READ logic.  When we build a sub_tree while
reading that is the first item in a container, we have to return that tree
and set the parent pointers correctly.
Submitted by: Jeff Trawick
Reviewed by: Ryan Bloom

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

24 years agoUpdate a couple of modules to use ap_stat() rather than stat().
Bill Stoddard [Tue, 16 May 2000 20:19:29 +0000 (20:19 +0000)]
Update a couple of modules to use ap_stat() rather than stat().

PR:
Obtained from:
Submitted by:
Reviewed by:

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

24 years agoAPR-ize the CHARSET_EBCDIC support in the SHA1 routines. The app (e.g.,
Jeff Trawick [Tue, 16 May 2000 19:48:08 +0000 (19:48 +0000)]
APR-ize the CHARSET_EBCDIC support in the SHA1 routines.  The app (e.g.,
Apache, htpasswd) must call a function to set up translation.

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

24 years agoHandle some OS/390-isms dealing with pthreads:
Jeff Trawick [Tue, 16 May 2000 17:48:58 +0000 (17:48 +0000)]
Handle some OS/390-isms dealing with pthreads:
. the types of the parameters to pthread_attr_setdetachstate()
  and pthread_detach()
. the fact that sigprocmask() must be use to set a thread's
  signal mask

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

24 years agoOS/390 doesn't have ranlib and its make utility thinks RANLIB=:
Jeff Trawick [Tue, 16 May 2000 11:54:36 +0000 (11:54 +0000)]
OS/390 doesn't have ranlib and its make utility thinks RANLIB=:
is a rule, so set RANLIB to true if there is no ranlib.

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

24 years agoFix PCRE build on OS/2. This includes taking libtool out of the picture,
Brian Havard [Tue, 16 May 2000 10:57:29 +0000 (10:57 +0000)]
Fix PCRE build on OS/2. This includes taking libtool out of the picture,
making static build the default.

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

24 years agoEBCDIC bug fix: do the required translation handle initialization
Jeff Trawick [Tue, 16 May 2000 03:59:15 +0000 (03:59 +0000)]
EBCDIC bug fix: do the required translation handle initialization
so that ap_MD5Encode() can translate properly

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

24 years agoAPR-ize the CHARSET_EBCDIC support in ap_base64encode() and
Jeff Trawick [Tue, 16 May 2000 03:11:13 +0000 (03:11 +0000)]
APR-ize the CHARSET_EBCDIC support in ap_base64encode() and
ap_base64decode().  The app (e.g., Apache, ab) must call a function
to set up translation.

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

24 years agooops. somebody snuck different names for my_error, and I goofed a sizeof().
Greg Stein [Tue, 16 May 2000 02:57:00 +0000 (02:57 +0000)]
oops. somebody snuck different names for my_error, and I goofed a sizeof().
fixed some indents.
rename some 'stat' variables to 'status'
use ap_strerror() in load_file()

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

24 years agodo not canonicalize errors for ap_strerror(). use sizeof() rather than
Greg Stein [Tue, 16 May 2000 02:49:42 +0000 (02:49 +0000)]
do not canonicalize errors for ap_strerror(). use sizeof() rather than
    a bare constant.

Submitted by: Brian Havard
Reviewed by: Greg Stein

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

24 years agoFix some bugs (mostly lost 1.3 code) in ab's command-line processing.
Jeff Trawick [Tue, 16 May 2000 02:42:57 +0000 (02:42 +0000)]
Fix some bugs (mostly lost 1.3 code) in ab's command-line processing.

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

24 years agomod_include:
Jeff Trawick [Tue, 16 May 2000 01:59:07 +0000 (01:59 +0000)]
mod_include:
. APR-ize some EBCDIC logic that translates char-by-char
. use the buff option BO_WXLATE to store a translation handle
  instead of the old logic to turn on the B_EBCDIC2ASCII flag

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

24 years agoAPR-ize some EBCDIC logic which handles conversion between
Jeff Trawick [Tue, 16 May 2000 01:43:46 +0000 (01:43 +0000)]
APR-ize some EBCDIC logic which handles conversion between
characters and hex digits

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

24 years agoreorder libapr.a and libap.la in terms of dependencies (i.e.,
Jeff Trawick [Tue, 16 May 2000 00:44:47 +0000 (00:44 +0000)]
reorder libapr.a and libap.la in terms of dependencies (i.e.,
libap needs libapr, so put libapr last) for OS/390

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

24 years agoRemove the dso code from the os/unix directory. These functions are not
Ryan Bloom [Mon, 15 May 2000 23:02:57 +0000 (23:02 +0000)]
Remove the dso code from the os/unix directory.  These functions are not
used in Apache anymore because they are part of apr.

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

24 years agoMake mod_so use ap_strerror instead of the old ap_os_dso_error. The
Ryan Bloom [Mon, 15 May 2000 21:41:56 +0000 (21:41 +0000)]
Make mod_so use ap_strerror instead of the old ap_os_dso_error.  The
error codes for dso's will need to be added to strerror in order for
this to work fully.

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

24 years agoCommit the EXEC_ON_READ changes. This allows modules to hook into the
Ryan Bloom [Mon, 15 May 2000 19:21:40 +0000 (19:21 +0000)]
Commit the EXEC_ON_READ changes.  This allows modules to hook into the
config file read phase.  Full details are in the CHANGES file blurb.
Examples to see how this should be used are provided for <IfModule>
<IfDefine> LoadModule, AddModule and ClearModuleList expect docs in the
next day or two.

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

24 years agoCannot build the pthread mpms on AIX 4.2.1
Bill Stoddard [Mon, 15 May 2000 19:20:07 +0000 (19:20 +0000)]
Cannot build the pthread mpms on AIX 4.2.1

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

24 years agoutil_ebcdic.h, util_ebcdic.c, http_core.c:
Jeff Trawick [Mon, 15 May 2000 17:51:23 +0000 (17:51 +0000)]
util_ebcdic.h, util_ebcdic.c, http_core.c:
  tweak ap_checkconv() for 2.0
buff.c:
  fix typo in comment
util_md5.h:
  change CHARSET_EBCDIC to APACHE_XLATE
util_script.c:
  APR-ize some character set conversion (EBCDIC only)

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

24 years agoWe no longer have to -DHAVE_CONFIG_H on the $(CC) line, because the
Ryan Bloom [Fri, 12 May 2000 23:56:19 +0000 (23:56 +0000)]
We no longer have to -DHAVE_CONFIG_H on the $(CC) line, because the
ap_ac_config.h file has been renamed to ap_config.h which is included
directly.

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

24 years agoAll this file does is include another file. I am fixing this by removing
Ryan Bloom [Fri, 12 May 2000 23:48:01 +0000 (23:48 +0000)]
All this file does is include another file.  I am fixing this by removing
this file and replacing it with the file it includes.

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

24 years agofix WIN32 build for APACHE_XLATE changes
Allan K. Edwards [Fri, 12 May 2000 18:15:21 +0000 (18:15 +0000)]
fix WIN32 build for APACHE_XLATE changes

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

24 years agoUpdate to the media types as of 2000-05-12. I also added the non-clashing
Tony Finch [Fri, 12 May 2000 13:14:48 +0000 (13:14 +0000)]
Update to the media types as of 2000-05-12. I also added the non-clashing
filename extensions for the WAP types, as discussed in the "WAP/WML" thread
starting with Message-ID: <391696E0.4D0D6161@Golux.Com>
Obtained from:  ftp://ftp.isi.edu/in-notes/iana/assignments/media-types

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

24 years agoUpdate beos_mpmt to new function names.
David Reid [Fri, 12 May 2000 10:35:03 +0000 (10:35 +0000)]
Update beos_mpmt to new function names.

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

24 years agoWin32: Some cleanup of winnt.c. Retry AcceptEx on failure in preparation for
Bill Stoddard [Fri, 12 May 2000 00:43:43 +0000 (00:43 +0000)]
Win32: Some cleanup of winnt.c. Retry AcceptEx on failure in preparation for
socket reuse patch. Sometimes the recycled accept socket will not work; need
to handle this case by closing it and obtaining a new one.

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

24 years agoAdd the prototype for ap_lingering_close()
Bill Stoddard [Fri, 12 May 2000 00:40:58 +0000 (00:40 +0000)]
Add the prototype for ap_lingering_close()

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

24 years agoCreate ap_bpop_iol to pop the buff off the iol and unregister the
Bill Stoddard [Thu, 11 May 2000 22:20:31 +0000 (22:20 +0000)]
Create ap_bpop_iol to pop the buff off the iol and unregister the
cleanup.

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

24 years agosrc/build/build2.mk: build PCRE's configure script if needed (when you
Jeff Trawick [Thu, 11 May 2000 21:56:51 +0000 (21:56 +0000)]
src/build/build2.mk: build PCRE's configure script if needed (when you
                     run buildconf, for example)
src/Makefile.in    : re-order libpcreposix.la and libpcre.la to make
                     OS/390's binder happy (now the libraries are listed
                     in order of dependencies)

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

24 years agoCreate new function, ap_lingering_close(), which will explicitly do a lingering close
Bill Stoddard [Thu, 11 May 2000 21:17:00 +0000 (21:17 +0000)]
Create new function, ap_lingering_close(), which will explicitly do a lingering close
if USE_SO_LINGER is not defined. Move responsibility for closing connections out
of http_connection.c and into the MPMs.

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

24 years agoExit connection processing normally on a graceful shutdown (which will allow
Bill Stoddard [Thu, 11 May 2000 20:47:21 +0000 (20:47 +0000)]
Exit connection processing normally on a graceful shutdown (which will allow
a lingering close where applicable). Set is_graceful in the winnt MPM.

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

24 years agorepair some compile warnings, axe a wasted getsockname() call and
Jeff Trawick [Thu, 11 May 2000 20:34:29 +0000 (20:34 +0000)]
repair some compile warnings, axe a wasted getsockname() call and
some unnecessary local vars, fix bug in a rare trace of a pid

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

24 years agoAdd mod_example to the build system.
Tony Finch [Thu, 11 May 2000 20:25:46 +0000 (20:25 +0000)]
Add mod_example to the build system.
I also fixed a few bogosities in mod_example itself, mostly improved
ordering of the code; I also fixed the long-standing numbering mistake
for the order of the request processing stages, and added the hook
registering function to the module record.

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

24 years agoVertically align all the descriptions of the modules in ./configure --help
Tony Finch [Thu, 11 May 2000 19:32:11 +0000 (19:32 +0000)]
Vertically align all the descriptions of the modules in ./configure --help
(m4 is gnarly)

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

24 years agoPR:
William A. Rowe Jr [Thu, 11 May 2000 04:03:37 +0000 (04:03 +0000)]
PR:
Obtained from:
Submitted by:
Reviewed by:

  A leftover I noticed cleaning up based addresses for 1.3.x

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

24 years ago Clean up documentation on both sides (1.3 and 2.0) for the Win32 build.
William A. Rowe Jr [Thu, 11 May 2000 03:58:00 +0000 (03:58 +0000)]
  Clean up documentation on both sides (1.3 and 2.0) for the Win32 build.

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

24 years ago Clean up documentation on both sides (1.3 and 2.0) for the Win32 build.
William A. Rowe Jr [Thu, 11 May 2000 03:39:39 +0000 (03:39 +0000)]
  Clean up documentation on both sides (1.3 and 2.0) for the Win32 build.

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

24 years agouse helpers/PrintPath instead of which to find the location of
Jeff Trawick [Thu, 11 May 2000 03:20:15 +0000 (03:20 +0000)]
use helpers/PrintPath instead of which to find the location of
the perl interpreter

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

24 years agoEBCDIC: Update util_md5.c routines to use APR-ized ap_MD5*()
Jeff Trawick [Thu, 11 May 2000 02:32:05 +0000 (02:32 +0000)]
EBCDIC: Update util_md5.c routines to use APR-ized ap_MD5*()
routines.  As in 1.3, ap_md5digest() has a different function
signature when CHARSET_EBCDIC is defined :(

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

24 years agoPick up various EBCDIC fixes from 1.3 (from Martin Kraemer and Oliver
Jeff Trawick [Wed, 10 May 2000 19:07:43 +0000 (19:07 +0000)]
Pick up various EBCDIC fixes from 1.3 (from Martin Kraemer and Oliver
Reh originally according to the change log).

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

24 years agonamespace-protect hdrs_to_ascii, hdrs_from_ascii, locale_to_ascii, and
Jeff Trawick [Wed, 10 May 2000 01:22:31 +0000 (01:22 +0000)]
namespace-protect hdrs_to_ascii, hdrs_from_ascii, locale_to_ascii, and
locale_from_ascii by adding ap_ prefix
Submitted by: Greg Stein

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

24 years ago Still have this lying around - maybe I should look below src
William A. Rowe Jr [Tue, 9 May 2000 23:29:41 +0000 (23:29 +0000)]
  Still have this lying around - maybe I should look below src
  more often :-)

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

24 years agoGet tree build to work correctly with config Include directive
Allan K. Edwards [Tue, 9 May 2000 22:46:03 +0000 (22:46 +0000)]
Get tree build to work correctly with config Include directive

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

24 years agogeneric EBCDIC support code, changes to rfc1413.c to use APR
Jeff Trawick [Tue, 9 May 2000 20:25:00 +0000 (20:25 +0000)]
generic EBCDIC support code, changes to rfc1413.c to use APR
translation in its EBCDIC support

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

24 years agorfc1413.c fixes:
Jeff Trawick [Tue, 9 May 2000 19:29:57 +0000 (19:29 +0000)]
rfc1413.c fixes:
1) we were retrieving our local port before APR filled it in; wait a
   little longer :)
   (maybe APR needs to be a little smarter about when/if to call
   getsockname()?  it could call it when the info is first needed and
   not do it at all if never needed)
2) when the server dropped the connection before sending a properly-
   delimited response, we entered a hard loop; we weren't reacting to
   EOF/FIN properly

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

24 years agoreap_children doesn't make sense on a machine without a scoreboard, and it
Ryan Bloom [Mon, 8 May 2000 15:36:19 +0000 (15:36 +0000)]
reap_children doesn't make sense on a machine without a scoreboard, and it
causes compile problems, so it's going away on dexter now.

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

24 years agoRemove dynamic MPM's from the status file.
Ryan Bloom [Sun, 7 May 2000 00:40:38 +0000 (00:40 +0000)]
Remove dynamic MPM's from the status file.

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

24 years ago pcre lives and dies on the _WIN32 define, rather than WIN32...
William A. Rowe Jr [Sat, 6 May 2000 16:09:10 +0000 (16:09 +0000)]
  pcre lives and dies on the _WIN32 define, rather than WIN32...
  Adjusted os/win32/os.h to always declare _WIN32, and fixed up
  some goodies.  Win32 now serves pages.

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

24 years ago Cleanup of Apache build with pcre in Win32.
William A. Rowe Jr [Sat, 6 May 2000 15:44:40 +0000 (15:44 +0000)]
  Cleanup of Apache build with pcre in Win32.
  Plus clean up ab and htdigest to conform to build
  of other support executables.
  Everything seems to be working again.

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

24 years ago First crack at getting Apache to build with pcre in Win32.
William A. Rowe Jr [Sat, 6 May 2000 15:02:13 +0000 (15:02 +0000)]
  First crack at getting Apache to build with pcre in Win32.
  Cleans up all the gen_ projects to strip off garbage files,
  as well, and follows the same pattern for dftables.

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

24 years agoserious bug fix:
Jeff Trawick [Sat, 6 May 2000 13:41:59 +0000 (13:41 +0000)]
serious bug fix:
  htdigest didn't init the first parm to ap_open(), so ap_open()
  segfaults thinking it was passed valid storage
build portability:
  make most src/lib/apr/test/Makefile.in compatible with OS/390
  make (no -o outfile after infile specified)
MD5 translation support:
  when APR_HAS_XLATE, low-level routines allow translation handle
  to be specified

  when CHARSET_EBCDIC, password-specific routines always translate,
  but client app must set handle before using

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