Commit Graph

1997 Commits

Author SHA1 Message Date
6b6800fd85 Remove a bunch of string functions from Apache. These are basically
standard string functions like strstr, strcasecmp, etc that Apache used
to define for platforms that don't have them.  These functions and the
feature tests have moved down to APR where they really belong.  In doing
this, I am also able to remove a bunch of tests from the Apache configure
process.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85487 13f79535-47bb-0310-9956-ffa450edef68
2000-06-09 21:19:52 +00:00
9803fc27fd Remove all occurances of strerror from Apache. ap_strerror works just
fine with standard errno values, and it is more portable.  This also allows
me to remove the check for strerror from Apache's configure script.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85486 13f79535-47bb-0310-9956-ffa450edef68
2000-06-09 18:57:16 +00:00
d01fb3c907 PR:
Obtained from:
Submitted by:
Reviewed by:

  Andrew Braund's very complete review of the Win32 documentation!
  These should have a profound effect on the number of Win32 inquiries
  and problem reports.

  I will have some minor notes on running as another user, and
  using the perl .dsp conversion scripts to add as a seperate
  commit later today.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85484 13f79535-47bb-0310-9956-ffa450edef68
2000-06-09 18:33:02 +00:00
86b74c367a mention date of 2.0a4 release; mention a mod_cgid bug
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85482 13f79535-47bb-0310-9956-ffa450edef68
2000-06-09 15:22:12 +00:00
45df6f06a6 When mod_cgid is started as root, the cgi daemon now switches
to the configured User/Group (like other httpd processes)
instead of continuing as root.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85481 13f79535-47bb-0310-9956-ffa450edef68
2000-06-09 15:20:13 +00:00
f6e8fe6781 The prefork MPM now uses an APR lock for the accept() mutex.
It has not been getting a lock at all recently.

Note: The TPF and SGI folks need to each APR how to get the most
efficient lock on those platforms.  (For SGI it depends on whether
or not we're building for SMP.)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85479 13f79535-47bb-0310-9956-ffa450edef68
2000-06-09 14:48:58 +00:00
20c08c06da fix typo in AC_TYPE_RLIM_T
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85477 13f79535-47bb-0310-9956-ffa450edef68
2000-06-08 23:12:22 +00:00
568362d70c Fix the check for rlim_t correctly. I wish I had known that we had
created an rlim_t check in acinclude.m4.  :-)
Submitted by:	Jeff Trawick


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85476 13f79535-47bb-0310-9956-ffa450edef68
2000-06-08 21:32:13 +00:00
29a2154b85 ARGH! resource.h lives in sys.
Submitted by:	Doug M.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85475 13f79535-47bb-0310-9956-ffa450edef68
2000-06-08 20:30:58 +00:00
e629f47a13 Include a definition of rlim_t if the platform doesn't have it natively.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85474 13f79535-47bb-0310-9956-ffa450edef68
2000-06-08 20:21:35 +00:00
9b90f11c5f Cleanup APR header files a bit. Basically, this splits ap_table_t related
functions into their own header file, away from apr_pools.h.  At the same
time as I was doing this, I removed a couple of definitions that aren't
used anywhere anymore, like ap_child_info_t.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85473 13f79535-47bb-0310-9956-ffa450edef68
2000-06-08 19:29:40 +00:00
9578f8bffc a couple of data type issues have a more generic solution
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85466 13f79535-47bb-0310-9956-ffa450edef68
2000-06-08 04:15:47 +00:00
ebba9a0475 sleep until the next second, rather than sleep for <current-time> seconds.
fix typo on symbol (prevented compilation)


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85465 13f79535-47bb-0310-9956-ffa450edef68
2000-06-08 02:56:27 +00:00
074aa6aec7 Fix some problems with the time commit. I guess mod_unique_id isn't turned
on by default, which is why my last build's didn't catch this.  I'll be
more careful in the future.
Submitted by:	Greg Stein


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85464 13f79535-47bb-0310-9956-ffa450edef68
2000-06-08 01:47:21 +00:00
cc8eeb2d84 Remove all occurances of gettimeofday. Replace it with ap_now which
provides the same function but works cross-paltform.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85463 13f79535-47bb-0310-9956-ffa450edef68
2000-06-08 00:28:35 +00:00
75f76def88 Fix Win32 bug when pathname length exactly equals MAX_PATH.
This bug caused directory index to be displayed rather than
returning an error.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85461 13f79535-47bb-0310-9956-ffa450edef68
2000-06-07 22:50:15 +00:00
825b977744 Remove the check for difftime, we aren't actually using it anywhere.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85460 13f79535-47bb-0310-9956-ffa450edef68
2000-06-07 22:14:58 +00:00
95be9186ab Forgot to include when I committed the code change..
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85459 13f79535-47bb-0310-9956-ffa450edef68
2000-06-07 16:23:46 +00:00
79d04b35a1 Greg Ames' mod_mmap_static fixes have been applied, so remove the
corresponding entry.

Fix typo in Greg Stein's note about gethostbyname_r().


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85458 13f79535-47bb-0310-9956-ffa450edef68
2000-06-07 13:47:20 +00:00
28856f00f7 Change the mmap() feature test to check only for existence.
The autoconf-provided check used previously fails when the
platform doesn't support MAP_FIXED.  Apache doesn't use that
mmap() feature, so we don't want to require it.
Submitted by:	Greg Ames


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85457 13f79535-47bb-0310-9956-ffa450edef68
2000-06-07 12:36:51 +00:00
78a645f5df Fix some bad (1.3 style) parmlists to ap_log_error() which were introduced
with the reintroduction of resource limiting logic.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85456 13f79535-47bb-0310-9956-ffa450edef68
2000-06-07 11:51:49 +00:00
56721971a1 combine two entries because they just *cannot* be separated...
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85455 13f79535-47bb-0310-9956-ffa450edef68
2000-06-07 02:06:49 +00:00
115d32c361 Fix a couple of bugs in mod_cgid:
The cgi arguments were sometimes mangled because no terminating '\0' was
added to the arg string passed to the cgi daemon.

The len parm to accept() was not initialized, leading sometimes to an
endless loop of failed accept() calls on OS/390 and anywhere else that
failed the call if the len was negative.

Tweaks: Add some traces for failed socket calls at cgi daemon setup time
(most of which I hit while playing around).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85452 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 22:22:52 +00:00
1b501acd8b little wooden boy.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85451 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 21:46:40 +00:00
3c8e0cb24f Add the resource limiting code back to Apache 2.0. This only works on
Unix because I can't find any other platforms with rlimit.  If there are
other platforms that need this code, then some of the code needs to move.
This has just barely been tested, so it could probably use some good
testing.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85449 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 21:45:16 +00:00
704abb198b OS/390: avoid unconditional -ldl and -export-dynamic (other
platforms can add related logic to the case statement)

This is a stop-gap measure until the need for certain libraries
can be determined automatically.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85448 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 21:27:54 +00:00
1837ae341b Bring forward a change from 1.3 (the ability to use SetEnvIf*
and BrowserMatch* in .htaccess files).


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85447 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 20:41:45 +00:00
63066cda29 Bring forward a fix from 1.3.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85446 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 20:39:50 +00:00
130e171d62 Increase the size of the buffer passed to ap_strerror(); I saw
truncation of a particularly long message on OS/390, and useful
info was past char 100.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85443 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 14:51:06 +00:00
71a767ce58 Fix zombie process problem with mod_cgi. This problem was introduced
as part of the "Convert ap_proc_t to a complete type." enhancement.

mod_cgi previously declared a ptr to an ap_proc_t, storage was allocated
by ap_create_process() from the request pool, and the ap_proc_t address
was passed to ap_note_subprocess().

With the "Convert ap_proc_t to a complete type." change, ap_proc_t
lived in autodata, but the address was still passed to
ap_note_subprocess().  When the pool was cleaned up, the ap_proc_t
in autodata had been used for something else, so the contents were
garbage, but pool cleanup needed the contents, especially the os
pid to pass to waidpid().  Since this was garbage, we never reaped
status from the cgi child and thus the cgi child remained a zombie.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85441 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 05:58:16 +00:00
9445b0807b PR:
Obtained from:
Submitted by:
Reviewed by:

  Fix a silly oversight.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85440 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 05:00:49 +00:00
1ad75f891b PR:
Obtained from:
Submitted by:
Reviewed by:

  Hmmm... exporting a hook, very interesting :-)

  But the win32 build believes hooks are pretty uninteresting, mostly
  static __cdecl calls, so pound this declaration into NONSTD.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85439 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 04:11:08 +00:00
343754d3f2 PR:
Obtained from:
Submitted by:
Reviewed by:

  Just two quick fixes for the ApacheCore/ApacheCoreDll.dsp project split.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85438 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 01:55:44 +00:00
c84d2199e5 Port mod_mmap_static to 2.0. Make it go faster.
core: Export core_translate() as ap_core_translate() for use by
      mod_mmap_static.
Submitted by:	Greg Ames
Reviewed by:	Jeff Trawick


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85437 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 01:49:30 +00:00
b7d113d2b8 PR:
Obtained from:
Submitted by:
Reviewed by:

  Migrate the 'real' pre_config hook update from winnt.c to mpm_winnt.c
  and correct newly required symbols for http_main.c


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

  Fixes 1) The htpasswd and ab binaries, by converting ApacheCore.dsp to
           a library MSVC project.

        2) Creates the ApacheCoreDll.dsp project to produce the dso
           version ApacheCore.dll

        3) Some misc fixups to the original http_main.c -> Apache.exe
           conversion that misses newly added symbols.

  Code fixes to follow in a seperate patch.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85435 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 01:15:05 +00:00
f888d95c83 Fix typo in configure script when checking for mod_so. bash
doesn't seem to have a problem but /bin/sh on Solaris does.
Symptom: "./configure: test: unknown operator =="


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85434 13f79535-47bb-0310-9956-ffa450edef68
2000-06-06 00:51:20 +00:00
bcbcf75254 Remove some #ifdef'ed code that doesn't make much sense
(what does the 2 signify?)

Reviewed by:	Ryan Bloom


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85433 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 23:58:34 +00:00
1b9c484776 Remove the ability to enable/disable DSO support in APR. The only current
way to check for DSO support is to look for libdl.  Apache automatically
adds -ldl to it's LIBS flag from config.m4 in modules/standard.  Other
platforms will need to add the correct flag for their system.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85432 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 23:14:35 +00:00
150c8bcd64 Fix a warning and a bug from the server_token commit.
Submitted by:	Eric Cholet <cholet@logilune.com>


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85431 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 22:57:20 +00:00
20f66c9f65 PR:
Obtained from:
Submitted by:
Reviewed by:

  Unbind the old main_win32.c code and rebind to the new mpm logic
  in the modules/mpm/winnt directory.  Includes some simple cleanups.

  The old sources in os/win32 will disappear at the end of this week.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85430 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 22:39:03 +00:00
d60f2177b9 cleanup to cgid_init():
axe unused var cgid_server_conf
  fix type of pid
  don't create the socket as a file here; it doesn't help anything


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85429 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 22:28:07 +00:00
04974955dc Make the string in a log message unique so we know
what failed.  Before, "couldn't create child process: " was
used for a couple of different logs.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85428 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 20:51:11 +00:00
3983c8b6cd Make a copy of getenv("PATH") before storing for later use. Some
getenv() implementations use the same storage for successive calls.
CGIs on OS/390 had a bad PATH due to this.  (Believe it or not, ANSI
says getenv() can do this.)

Some similar getenv() usage was left alone as it was specific to a
certain platform, and I assume that getenv() doesn't have the "issue"
on those platforms.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85427 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 20:45:08 +00:00
eda6e3d23c Add server tokens back to 2.0. Also bring forward the change to allow
the PRODUCT_ONLY value for ServerTokens.  This is relatively clean,
all of the code lives in http_core, and when a module wants to add a token,
they just call ap_add_version_component from the post_config hook.  Actually
ap_add_version_component can be done anytime after the config has been
parsed, it just makes the most sense to do it in post_config IMHO.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85426 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 19:44:02 +00:00
33c17cea83 on a5 now.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85422 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 17:30:27 +00:00
d1247af825 2.0a4
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85421 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 17:15:25 +00:00
bed6974573 Fix mod_so handling. Basically, if --enable-so or
--enable-some-module=shared is specified on the ./configure line, then
mod_so is included in the build, -ldl is added to LIBS, and --enable-dso is
added to APR's configure line.  Otherwise, mod_so is turned off, -ldl is
not added, and APR is specifically told to build without DSO support.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85418 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 16:51:06 +00:00
ca422fe59b add self
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85410 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 15:46:05 +00:00
b96ae71961 correct some typos from the last commit.
add changes list

remove snippet about why the apache project was organized. I would think people
reading the annouement knows now.

try to remove a little more corporatespeak


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@85409 13f79535-47bb-0310-9956-ffa450edef68
2000-06-05 15:39:39 +00:00