1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-05 16:55:50 +03:00

224 Commits

Author SHA1 Message Date
dgaudet
faff1f01dd time overhaul:
- ap_time_t is a 64-bit scalar, microseconds since epoch
- ap_exploded_time_t corresponds to struct tm with a few extras

probably broken on anything except linux.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84413 13f79535-47bb-0310-9956-ffa450edef68
2000-01-09 05:18:31 +00:00
Ryan Bloom
8f26ac7df4 Separate the stat structure from the file structure and use ap_stat and
ap_getfileinfo in apache.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84397 13f79535-47bb-0310-9956-ffa450edef68
2000-01-06 14:43:41 +00:00
Ryan Bloom
528afcc4d6 Initialize all ap_file_t's to NULL. This allows ap_open and ap_stat to
work together without causing memory leaks.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84393 13f79535-47bb-0310-9956-ffa450edef68
2000-01-04 19:01:04 +00:00
Ryan Bloom
bea42aaa36 Make CGI's work correctly in Apache 2.0. APR wants the first element in the
argument list to be the program name.  This is exactly what POSIX requires,
and what Windows wants, but Apache 1.3 would create the arg list, and then
have another function squeeze the program name in later.  This patch fixes
that by having mod_cgi put the program name the correct place.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84293 13f79535-47bb-0310-9956-ffa450edef68
1999-12-14 20:37:58 +00:00
Ryan Bloom
0d022946bc Get rid of more platform dependant code.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84288 13f79535-47bb-0310-9956-ffa450edef68
1999-12-13 20:52:28 +00:00
Ryan Bloom
b259c85053 We may not always want to make the pipes between processes non-blocking.
This patch allows us to set if both sides of the pipes are nonblocking,
both sides are blocking, just the parent side blocks, or just the child
side blocks for all three of the pipes created during create_process.  I
have also modified Apache to take advantage of this change.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84215 13f79535-47bb-0310-9956-ffa450edef68
1999-12-02 18:36:39 +00:00
Manoj Kasichainula
2c5ab99008 Undo the ap_bgets errno patch. It will return status with ap_berror().
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84076 13f79535-47bb-0310-9956-ffa450edef68
1999-10-31 09:02:55 +00:00
Manoj Kasichainula
9056dc8abc An errnoless interface for ap_bgets
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84075 13f79535-47bb-0310-9956-ffa450edef68
1999-10-30 08:05:10 +00:00
Manoj Kasichainula
b73b1bf345 ap_bwrite now exports an errnoless interface.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84074 13f79535-47bb-0310-9956-ffa450edef68
1999-10-30 05:25:32 +00:00
Brian Havard
010eb1291c Make args to CGIs work.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84033 13f79535-47bb-0310-9956-ffa450edef68
1999-10-25 12:45:39 +00:00
Ryan Bloom
b1889e8425 Fix mod_cgi so it works on Unix systems. We need to be VERY careful
about calling ap_cleanups_for_exec now.  There is really no reason to call
this from outside of APR, unless you are specifically doing a fork/exec.
If you use ap_create_process, it will call ap_cleanups_for_exec for you
in the right spot now.  Also cleaned up some of the code because it helped
with debugging.  We need better error messages in mod_cgi now.
iCVS:


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84009 13f79535-47bb-0310-9956-ffa450edef68
1999-10-20 18:28:04 +00:00
Brian Havard
3c6a4c71fd Apply ap_log_error() errno parameter addition to a few more files.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@84008 13f79535-47bb-0310-9956-ffa450edef68
1999-10-20 15:15:41 +00:00
Bill Stoddard
1118174782 A couple of arg swaps on ap_open
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83999 13f79535-47bb-0310-9956-ffa450edef68
1999-10-17 15:26:07 +00:00
Bill Stoddard
97ba63a260 Fix argv list generation bug.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83997 13f79535-47bb-0310-9956-ffa450edef68
1999-10-15 00:05:01 +00:00
Bill Stoddard
512a32027d Still does not work reliably, but it's closer to being right.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83993 13f79535-47bb-0310-9956-ffa450edef68
1999-10-14 13:51:41 +00:00
Bill Stoddard
c24df1204a Need to pass in just the directory, not including the filename. Note that CGI
arguments are being completely ignored. suexec needs to be handled, the CGI arguments
need to be canonicalized (e.g., quote args containing spaces, etc.) and ScriptInterpreterSource
needs reimplementing. Whew!


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83978 13f79535-47bb-0310-9956-ffa450edef68
1999-10-12 19:19:29 +00:00
Bill Stoddard
312ea662f0 Fix bug interpreting cgi_child return code. Do some clean-up.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83977 13f79535-47bb-0310-9956-ffa450edef68
1999-10-12 14:45:57 +00:00
Manoj Kasichainula
2792406eac Fix function arguments to respect APR's New World Order.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83975 13f79535-47bb-0310-9956-ffa450edef68
1999-10-12 04:06:58 +00:00
Bill Stoddard
15be4a2322 First cut at migrating mod_cgi over to APR. Still needs some work to make it Win32 friendly (use named pipes, etc.)
Submitted by: Paul Reder
Reviewed by: Bill Stoddard


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83965 13f79535-47bb-0310-9956-ffa450edef68
1999-10-11 20:44:28 +00:00
Ryan Bloom
c37f14ddf3 Changed pools to contexts. Tested with prefork and pthread mpm's. I'll
check this out tomorrow and make sure everything was checked in correctly.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83852 13f79535-47bb-0310-9956-ffa450edef68
1999-08-31 05:35:52 +00:00
Roy T. Fielding
f971d0d40f Remove support for ap_suexec_enabled
Submitted by:	Dean Gaudet


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83790 13f79535-47bb-0310-9956-ffa450edef68
1999-08-26 17:25:09 +00:00
Roy T. Fielding
dc349534f3 Remove timeouts as part of pthreads changes.
Submitted by:	Bill Stoddard


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83788 13f79535-47bb-0310-9956-ffa450edef68
1999-08-26 17:17:22 +00:00
Roy T. Fielding
e3978962f9 Start to implement module-defined hooks that are a) fast and b) typesafe.
Replace pre_connection module call with a register_hook call and
implement pre_connection as a hook. The intent is that these hooks will
be extended to allow Apache to be multi-protocol, and also to allow the
calling order to be specified on a per-hook/per-module basis.  [Ben Laurie]

Port a bunch of modules to the new module structure.
["Michael H. Voase" <mvoase@midcoast.com.au>]

Submitted by:	Ben Laurie


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83770 13f79535-47bb-0310-9956-ffa450edef68
1999-08-26 14:18:40 +00:00
Roy T. Fielding
e3e87d34a0 Apache 1.3.9 baseline for the Apache 2.0 repository.
Obtained from: Apache 1.3.9 (minus unused files), tag APACHE_1_3_9
Submitted by: Apache Group


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@83751 13f79535-47bb-0310-9956-ffa450edef68
1999-08-24 06:55:44 +00:00