util_script.c

Checkout Tools
  • last updated 1 hour ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates

Changeset 87424 is being indexed.

Force all Apache functions to be linked into the executable, whether they

are used or not. This uses the same mechanism that is used for APR

and APR-util. This may not be the correct solution, but it works, and that

is what I really care about. This also renames CHARSET_EBCDIC to

AP_CHARSET_EBCDIC. This is for namespace correctness, but it also makes

the exports script a bit easier.

  1. … 24 more files in changeset.
Allow modules to specify the first module for a sub-request. This allows

modules to not have to muck with the output_filter after it creates the

sub-request. Without this change, modules that create a sub-request have

to manually edit the output_filters, and therefore skip the sub-request

output_filter. If they skip the sub-request output_filter, then we end

up sending multiple EOS buckets to the core_output_filter.

  1. … 6 more files in changeset.
updates to changed interfaces to apr_set_port(), apr_get_port(),

apr_set_ipaddr(), and apr_get_ipaddr()

  1. … 6 more files in changeset.
This adds the APR_LOCAL/APR_REMOTE to APR and changes the apr_get/set_port

functions to use it. This is onyl the start and I'll pause a while before

I continue in case people really hate this. The patch can be backed out and

all evidence will be removed, but I think this makes maintaining/developing

the code easier in the long term.

  1. … 4 more files in changeset.
Start of moving to apr_port_t in the server code. This will probably the first

of a few...

  1. … 9 more files in changeset.
We have functions that allow us to get the ports from the sockets, so use them

here.

Remove original_uri. This is the same as r->unparsed_uri

Reviewed by: Roy Fielding and Tony Finch

Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbols

for CORE_EXPORT to AP_CORE_DECLARE (namespace protecting the wrapper)

and retitled API_EXPORT as AP_DECLARE and APR_EXPORT as APR_DECLARE.

All _VAR_ flavors changes to _DATA to be absolutely clear.

Thank you Greg, for the most obvious suggestion.

  1. … 102 more files in changeset.
These functions aren't used by any module, and they don't make any sense

with the bucket design, so they need to go away.

  1. … 1 more file in changeset.
Clean up some const-ness warnings in getsfunc_STRING().

Forward port 1.3 overhaul of isapi to 2.0.

Yes - it's blatently obvious that this should be 'bucketized', but the

sequence I will follow is:

*) compatibility of sources

*) extension to async + transmitfile emulated support

*) localization of ISAPI* directives to Directory, File blocks

*) addition of ISAPI caching

*) recode for buckets.

I'm actually looking forward to the mod_cgi bucketization as a model.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 3 more files in changeset.
Fix some problems with the apr conversion so that APACHE_XLATE builds work

again.

  1. … 9 more files in changeset.

Remaining cleanup of ap_ -> apr_ and AP_ -> APR_ transformation...

see src/lib/apr/apr_compat.h for most details.

Also a few minor nits to get Win32 to build.

PR:

Obtained from:

Submitted by:

Reviewed by:

  1. … 73 more files in changeset.
prefix libapr functions and types with apr_

  1. … 143 more files in changeset.
Move all APR functions related to strings to their own directory, and

create a new header for those functions. This is the first step to

removing the apr/lib directory completely, and moving those files/functions

to descriptive directories.

  1. … 36 more files in changeset.
Remove a bunch of dead code from util_script.

Include strings.h for strcasecmp(), strncasecmp(), and bzero().

Include time.h for time().

This removes a bunch of compiler warnings with gcc -Wall on AIX.

Submitted by: Jeff Trawick, Victor Orlikowski

  1. … 22 more files in changeset.
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.)

  1. … 1 more file in changeset.
Protect system header files with the appropriate macros.

  1. … 29 more files in changeset.
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.

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)

  1. … 4 more files in changeset.
[EBCDIC] Port Paul Gilmartin's CRLF patch from 1.3. This replaces most

of the \015, \012, and \015\012 constants with macros.

Submitted by: Greg Ames

Reviewed by: Jeff Trawick

  1. … 4 more files in changeset.
Change ap_context_t to ap_pool_t. This compiles, runs, and serves pages

on Linux, but probably breaks somewhere.

  1. … 88 more files in changeset.
Update to Apache Software License version 1.1

  1. … 16 more files in changeset.
Bring forward my recent 1.3 patches.

  1. … 1 more file in changeset.
Fix all the License issues. Including:

s/Apache Group/Apache Software Foundation/

s/1999/2000/

s/Sascha's license/ASF license

  1. … 146 more files in changeset.
Include ap_config.h before httpd.h, this ensures that AP_USE_HSREGEX is

defined correctly in all C files.

  1. … 23 more files in changeset.
Fix compile breaks on Windows.

  1. … 3 more files in changeset.
Finish the commits for the change in the header files. Basically, this hides

all of the Apache macros that modules don't need access to. This should

have been committed with the modules, but I wasn't paying attention to the

directory I was in when I ran the commit.

Submitted by: Manoj Kasichainula and Ryan Bloom

  1. … 41 more files in changeset.
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.

  1. … 19 more files in changeset.