Commit Graph

506 Commits

Author SHA1 Message Date
0cc2db9987 Add pre_config hooks back in for all modules. This is important for the
server tokens code that is coming soon.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85378 13f79535-47bb-0310-9956-ffa450edef68
2000-06-02 15:33:20 +00:00
e9a493b9be Fix a SIGSEGV in ap_md5digest() (bad parms to ap_seek()). This is used
when you have ContentDigest enabled and we can't/don't mmap the file.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85373 13f79535-47bb-0310-9956-ffa450edef68
2000-06-01 22:52:50 +00:00
9d1a70c8d5 Add support for the BeOS mpm. Also change some things to make it easier
for future additions.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85372 13f79535-47bb-0310-9956-ffa450edef68
2000-06-01 18:42:04 +00:00
0230ab1458 PR:
Obtained from:
Submitted by:
Reviewed by:

  Just a few error cleanups for tonight.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85363 13f79535-47bb-0310-9956-ffa450edef68
2000-06-01 03:20:09 +00:00
24beda9563 Remove a warning when compiled with --use-maintainer-mode. Basically,
process_rec should just be storing argv the same way that getopt
expects it.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85361 13f79535-47bb-0310-9956-ffa450edef68
2000-05-31 22:06:33 +00:00
7825f17a52 PR:
Obtained from:
Submitted by:
Reviewed by:

  Quick patch to accomodate the mpm's rename to mpm_winnt.c/.h

  At least in the short term.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85359 13f79535-47bb-0310-9956-ffa450edef68
2000-05-31 15:28:52 +00:00
ce6df54a15 PR:
Obtained from:
Submitted by:
Reviewed by:

  First checkin of Win32 service control structure merged into the mpm.

  Project files to be updated with this 'experimental' implementation once
  peer review is complete and the module maintainer accepts the patch.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85358 13f79535-47bb-0310-9956-ffa450edef68
2000-05-31 15:15:31 +00:00
0a0fb25f0d PR:
Obtained from:
Submitted by:
Reviewed by:

  Ugh, sorry bout that... reversing out the last dsp6->dsp5 commit.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85355 13f79535-47bb-0310-9956-ffa450edef68
2000-05-30 22:56:36 +00:00
eb266c4118 PR:
Obtained from:
Submitted by:
Reviewed by:

  How, precisely, was Apache going to do anything with rewritten args ;-?
  +1 on my personal oh-duh tally for the weekend.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85354 13f79535-47bb-0310-9956-ffa450edef68
2000-05-30 22:54:31 +00:00
782de3b8d3 Forward fit a bug fix in the TAKE13 handling from 1.3 to 2.0
Submitted by:	Jon Travis <jtravis@covalent.net>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85353 13f79535-47bb-0310-9956-ffa450edef68
2000-05-30 15:56:18 +00:00
1d642bab66 We now report the correct line number for syntax errors in config
files.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85348 13f79535-47bb-0310-9956-ffa450edef68
2000-05-30 02:42:32 +00:00
677c482d63 PR:
Obtained from:
Submitted by:
Reviewed by:

  One last precursor to the common code base for Win32 rewrite_args from
  it's MPM.  Since we need to walk the arg list... why maintain it in
  several places.  This patch adds the AP_SERVER_BASEARGS definition to
  the header, so any mpm (and mod_info, for example) can know what args
  are legitimate, even when they plan to ignore them.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85340 13f79535-47bb-0310-9956-ffa450edef68
2000-05-29 04:17:41 +00:00
a32a5cddbf PR:
Obtained from:
Submitted by:
Reviewed by:

  Remove any possiblity of having multiple tags to correct as the version
  changes.  Split httpd.h's version into tokens.  Roll these tokens into
  registry.c

  TODO: Remove registry.c from the list of files to touch when rolling


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85338 13f79535-47bb-0310-9956-ffa450edef68
2000-05-28 17:52:19 +00:00
9d8956eb73 Switch to APR's ap_probe_writable_fds() in spmt_os2 MPM.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85335 13f79535-47bb-0310-9956-ffa450edef68
2000-05-28 12:45:58 +00:00
e960297d04 Add an mpm.h for spmt_os2 MPM so that mpm_common.c will build.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85334 13f79535-47bb-0310-9956-ffa450edef68
2000-05-28 12:33:04 +00:00
7cdbb7194d Only compile ap_reclaim_child_processes() if a CHILD_INFO_TABLE is known.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85333 13f79535-47bb-0310-9956-ffa450edef68
2000-05-28 12:20:04 +00:00
f7e32fc893 PR:
Obtained from:
Submitted by:
Reviewed by:

  Finally a patch that can't (well, shouldn't :-) break any other platform.

  Open up the symbols defined for http_main.c to move main() from the core
  under Win32 (that's the real main(), not that apache_main() thing).

  Win32 Project file changes will follow in a seperate patch.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85326 13f79535-47bb-0310-9956-ffa450edef68
2000-05-28 03:52:42 +00:00
553f9f3e25 PR:
Obtained from:
Submitted by:
Reviewed by:

  Document the lack of exports so http_main.c stays that way,
  as suggested by Greg Stein.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85321 13f79535-47bb-0310-9956-ffa450edef68
2000-05-27 23:53:45 +00:00
3f29977506 PR:
Obtained from:
Submitted by:
Reviewed by:

  Reverse out additional linkage argument from DECLARE_HOOK
  and IMPLEMENT_HOOK macros.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85319 13f79535-47bb-0310-9956-ffa450edef68
2000-05-27 22:53:48 +00:00
da493b8be1 PR:
Obtained from:
Submitted by:
Reviewed by:

  Reverse out all _EXPORT_VAR changes back to their original _VAR_EXPORT
  names for linkage (API_, CORE_, and MODULE_).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85318 13f79535-47bb-0310-9956-ffa450edef68
2000-05-27 22:40:44 +00:00
0d1a103ede Fix broken comment in util_ebcdic.c
Submitted by:	Greg Ames


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85313 13f79535-47bb-0310-9956-ffa450edef68
2000-05-27 14:05:13 +00:00
f8fdc29678 PR:
Obtained from:
Submitted by:
Reviewed by:

  Cleaning up.  Note that apache (or https) -D DEFINE is now enabled, the
  shared data is now properly moved to either ap_hooks.c or http_config.c,
  and all should be well with rewrite_args.

  Next stop, no more apache_main entry point.  That's why this file needs
  to be empty of any callbacks or shared data, as it will bind to the core
  but the core won't be looking back into http_main.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85312 13f79535-47bb-0310-9956-ffa450edef68
2000-05-27 07:05:17 +00:00
5e05af51e4 Pass the process_rec to the MPM to allow rewriting of the args list.
Especially necessary under Win32, or other non-unix front ends where
  oddball arguments might be required, but without causing a mess in
  http_main.c.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85311 13f79535-47bb-0310-9956-ffa450edef68
2000-05-27 06:22:55 +00:00
ff26991747 A really simple change for readability:
ap_pool_t *g_pHookPool;           becomes ap_global_hook_pool
    int g_bDebugHooks;                becomes ap_debug_module_hooks
    const char *g_szCurrentHookName;  becomes ap_debug_module_name

  Just as a reminder, these are now declared in ap_hooks.c


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85310 13f79535-47bb-0310-9956-ffa450edef68
2000-05-27 05:31:34 +00:00
86e2a18f2a This patch corrects the issues from the AP_EXPORT and linkage
specification arguments to the ap_hooks.h declarations.  As with
  the APR_ and AP_ patches, API_VAR_EXPORT becomes API_EXPORT_VAR,
  and MODULE_VAR_EXPORT becomes MODULE_EXPORT_VAR.

  I will be happy to revert the inclusion of ap_config.h from 
  httpd.h if this bothers anyone.  More individual modules need
  to be patched if we do so.

  The API_EXPORTs all moved into central storage in the ap_config.h
  header.  Without WIN32 or API_STATIC compile time declarations, 
  these macros remain no-ops.

  This patch also moves the following data from http_main to http_config:

    const char *ap_server_argv0;
    const char *ap_server_root;
    ap_array_header_t *ap_server_pre_read_config;
    ap_array_header_t *ap_server_post_read_config;
    ap_array_header_t *ap_server_config_defines;

  And the following variables had already moved into ap_hooks.c:

    ap_pool_t *g_pHookPool;  (initialized now in http_config)
    int g_bDebugHooks;                   (out of http_config)
    const char *g_szCurrentHookName;     (out of http_config)

  The changes to http_main.c are in preparation for that module to
  move out to a seperate .exe for win32.  Other platforms will be
  unaffected, outside of these changes.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85309 13f79535-47bb-0310-9956-ffa450edef68
2000-05-27 05:28:02 +00:00
32368e5171 s/IMPORT/EXPORT/g; typo i assume.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85305 13f79535-47bb-0310-9956-ffa450edef68
2000-05-26 18:23:47 +00:00
ed7378f2ec PR:
Obtained from:
Submitted by:
Reviewed by:

  All waiting to bite us... just go ahead and ignore this commit.  Better
  now that when we are deciphering real changes.  This knocks all the
  projects into what I expect is a clean VC6 format.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85301 13f79535-47bb-0310-9956-ffa450edef68
2000-05-26 05:09:17 +00:00
78aba7227f APACHE_XLATE, CHARSET_EBCDIC stuff:
Provide new function ap_set_content_xlate() to simplify what needs
to be done to set up translation of content.  Use it where appropriate.

With this change, EBCDIC logic was tweaked so that ap_checkconv() does
not overlay a translation handle previously stored (e.g., by a module)
unless it is turning translation off.  Unless ap_checkconv() determines
that translation is inappropriate, it should leave the translation handle
alone.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85296 13f79535-47bb-0310-9956-ffa450edef68
2000-05-25 20:51:25 +00:00
2745ccdaf8 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
2000-05-24 23:45:37 +00:00
4512225488 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
2000-05-24 20:01:18 +00:00
93d9ac51ce 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
2000-05-24 00:42:01 +00:00
6c75ebc1da 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
2000-05-24 00:15:09 +00:00
026c77c19d use the correct size for 'ret'
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85284 13f79535-47bb-0310-9956-ffa450edef68
2000-05-23 23:32:35 +00:00
ea432e5602 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
2000-05-23 23:26:51 +00:00
6fd5974570 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
2000-05-23 21:27:37 +00:00
f9f4c470a8 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
2000-05-23 21:04:03 +00:00
2ed396efb4 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
2000-05-23 17:28:51 +00:00
488983982b 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
2000-05-23 14:05:53 +00:00
da0e294dbc 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
2000-05-23 13:56:39 +00:00
7218b78f44 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
2000-05-22 17:05:23 +00:00
e9380c4c1e 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
2000-05-22 02:57:44 +00:00
aec887ec5e 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
2000-05-21 05:31:09 +00:00
584ae79514 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
2000-05-19 22:39:00 +00:00
ceec7e2831 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
2000-05-19 17:22:47 +00:00
eefcb4c522 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
2000-05-19 07:14:54 +00:00
62a38109bd 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
2000-05-19 07:10:57 +00:00
591482f6ad 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
2000-05-19 06:49:52 +00:00
e2cb3c6457 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
2000-05-19 05:09:20 +00:00
40b92feb96 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
2000-05-19 05:01:53 +00:00
42ec41c2a7 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
2000-05-19 02:37:17 +00:00