summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* This commit adds the start of IPv6 support. Before we all get too excited,David Reid2000-11-061-0/+2
| | | | | | | | | | | | | | | please note that it doesn't do anything at present. All this adds is the configure checks and a few variables that will be used by the code. Can anyone on an IPv6 system please see how these work and report any problems so we can refine our plans before we submit the next patch? Thanks. Systems tested so far are FreeBSD 4, Mandrake 7 and Solaris 8. Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60636 13f79535-47bb-0310-9956-ffa450edef68
* Fix a bit of docs with the new pipe timeout code.Ryan Bloom2000-11-051-3/+2
| | | | | | | Submitted by: Chris Pepper <pepper@mail.reppep.com> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60635 13f79535-47bb-0310-9956-ffa450edef68
* Make non-blocking reads from pipes work through the bucket interface.Ryan Bloom2000-11-041-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60634 13f79535-47bb-0310-9956-ffa450edef68
* I'm not sure I really like this as it smacks of code duplication withDavid Reid2000-11-031-0/+7
| | | | | | | | | | | | apr_get_remote_hostname, so maybe they should be combined? Anyway, I haven't added the function to Win32/OS2 as I can't test there, but it shouldn't be hard! Once all platforms have this we can remove another of the raw sockaddr references in http_core. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60632 13f79535-47bb-0310-9956-ffa450edef68
* Make the len parm to apr_sendfile() apr_ssize_t * instead of apr_size_t *Jeff Trawick2000-11-031-1/+1
| | | | | | | for consistency with other APR network send/recv calls. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60630 13f79535-47bb-0310-9956-ffa450edef68
* Fix a coupl of misspellings; make some doc more consistent.Jeff Trawick2000-11-031-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60629 13f79535-47bb-0310-9956-ffa450edef68
* The Unicode/WinNT APR patch. Note that this may even be faster thanWilliam A. Rowe Jr2000-11-022-13/+21
| | | | | | | | | | | | | | | MS's internal atow translation that always occurs. Enabled now by default. Warning; it's probable that extended characters in existing URL's are broken by the patch, since the URL semantic changes. Also, launching cgi's, loading modules, etc that use extended characters are also broken. Step 2 is to address the cgi/CreateProcess (spawn) aspects of the patch, fix dso/LoadModule handling, and accept a Unicode'd httpd.conf file, as utf-8 is already legal in httpd.conf path specs, but difficult to use. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60625 13f79535-47bb-0310-9956-ffa450edef68
* Make 2nd parm of apr_connect() const char * instead of char *.Jeff Trawick2000-11-021-1/+1
| | | | | | | Note to BeOS fans: apr_connect() is missing a check for hostname != NULL. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60620 13f79535-47bb-0310-9956-ffa450edef68
* I'm pretty sure we only need to include this once...David Reid2000-10-301-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60617 13f79535-47bb-0310-9956-ffa450edef68
* fix a typo and add a little more info in the doc for apr_pstrndup()Jeff Trawick2000-10-281-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60615 13f79535-47bb-0310-9956-ffa450edef68
* Fix some typos in the comments.Jeff Trawick2000-10-251-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60614 13f79535-47bb-0310-9956-ffa450edef68
* Errr... was a goof. The HAS_UNICODE_FS shouldn't be toggled yetWilliam A. Rowe Jr2000-10-251-1/+7
| | | | | | | | | across the board - will clobber 9x. Need to add run time checks. [actually, can treat file names as utf-8 on 9x, but must not call wide char functions!] git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60611 13f79535-47bb-0310-9956-ffa450edef68
* Ok here it is: Win32 utf-8 native unicode filename support.William A. Rowe Jr2000-10-253-2/+16
| | | | | | | | There are just too many folks to credit... so this goes out from the entire ApacheCon hacking team :-) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60610 13f79535-47bb-0310-9956-ffa450edef68
* The start of the canonical name stuff.William A. Rowe Jr2000-10-233-9/+165
| | | | | | | | | | | * removed cruft that did nothing (yet) * add prototypes for the apr_canon... fn's * Consider: apr_compare_canonical (need to count matching elements) * Consider: Manoj's suggestion to handle symlinks within here. * Consider: fanf's concept to use dev/inode for comparison w/o strs. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60607 13f79535-47bb-0310-9956-ffa450edef68
* Fix piped logs in 2.0. This basically:Ryan Bloom2000-10-181-1/+1
| | | | | | | | | | | | 1) cleans up an annoying type that was getting in my way while I was trying to fix things. 2) Makes some of the allocations pcalloc instead of palloc 3) The arg array passed to create_process is a const *char *, not const *char []. PR: 6642 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60599 13f79535-47bb-0310-9956-ffa450edef68
* document the file typesGreg Stein2000-10-181-2/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60597 13f79535-47bb-0310-9956-ffa450edef68
* Clearing more things off my plate. Here is the -internal- utf8/ucs2William A. Rowe Jr2000-10-171-0/+89
| | | | | | | | | | | conversion. It's not exported, nor should it be. Jeff suggests wrapping into apr_xlate, which is fine if someone would like to do so. This pair is for handling utf8 resource identifiers (filenames) on any Unicode aware platform, so that the Unicode values are invisible to the application (apache server). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60594 13f79535-47bb-0310-9956-ffa450edef68
* Make things a little clearer in reaction to the _snames snafus.William A. Rowe Jr2000-10-172-2/+6
| | | | | | | | Submitted by: Greg Stein Reviewed by: William Rowe git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60593 13f79535-47bb-0310-9956-ffa450edef68
* Ugh... had different meaning between apr and ap. Not good, all fixed.William A. Rowe Jr2000-10-171-2/+2
| | | | | | | | Submitted by: Karl Fogel <kfogel@collab.net> Reviewed by: Greg Stein git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60592 13f79535-47bb-0310-9956-ffa450edef68
* Make sure that passing (s, APR_HASH_KEY_STRING) and (s, strlen(s)) areGreg Stein2000-10-161-2/+4
| | | | | | | | | | equivalent. The +1 would lead to subtle errors when people forgot t include the null-term in the hash value. (and it is possible that the caller is extracting a substring for the key and does not *have* a null term when doing a lookup) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60590 13f79535-47bb-0310-9956-ffa450edef68
* Pesky stragglerWilliam A. Rowe Jr2000-10-161-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60588 13f79535-47bb-0310-9956-ffa450edef68
* Renamed all MODULE_EXPORT symbols to AP_MODULE_DECLARE and all symbolsWilliam A. Rowe Jr2000-10-1612-95/+80
| | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60587 13f79535-47bb-0310-9956-ffa450edef68
* This 'descended' from apachecore - I have no idea if it is stillWilliam A. Rowe Jr2000-10-161-0/+2
| | | | | | | appropriate or required. FirstBill? git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60585 13f79535-47bb-0310-9956-ffa450edef68
* the zero-length hash key is valid. use (-1) as the discrimnator forGreg Stein2000-10-161-6/+14
| | | | | | | auto-computed string-length hash keys git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60583 13f79535-47bb-0310-9956-ffa450edef68
* before anyone raises a ruckus - here are the symbols I'm moving fromWilliam A. Rowe Jr2000-10-151-5/+9
| | | | | | | | os2 and the other platform os.h files (where applicable), plus a few cleanups from my apr_getopt overhaul where we have no symbol remaining. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60582 13f79535-47bb-0310-9956-ffa450edef68
* I hope this clarifies. Greg is absolutely correct, there is no need forWilliam A. Rowe Jr2000-10-122-5/+62
| | | | | | | | | any modules symbol other than AP_MODULE_DECLARE_DATA, since module .h files containing imports and exports imply something more sophisticated, as the early mod_dav.c example illustrated. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60581 13f79535-47bb-0310-9956-ffa450edef68
* Squishing bugs.William A. Rowe Jr2000-10-111-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60577 13f79535-47bb-0310-9956-ffa450edef68
* Take Greg's criticism very literally. EXPORT (when it's really IMPORT)William A. Rowe Jr2000-10-112-20/+41
| | | | | | | | | | | | | | | | | | | | | | | is a true Lewis Carrollism. This patch replaces the following: APR_EXPORT() -> APR_DECLARE() This is a public fn APR_EXPORT_NONSTD() -> APR_DECLARE_NONSTD() This is a varargs fn APR_VAR_EXPORT -> APR_DECLARE_DATA These are public vars APR_VAR_IMPORT -> APR_DECLARE_DATA ditto APR_EXPORT_SYMBOLS -> APR_DECLARE_EXPORT Compile the lib to export APR_STATIC -> APR_DECLARE_STATIC Compile:linked to the .lib no define Compile:linked to the .dll The old symbols are retained in-place. I will wait for the firestorm of controversy to die before we actually use these symbols in the APR, or will back out the new names under CtR Submitted by: Greg Stein Reviewed by: William Rowe git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60576 13f79535-47bb-0310-9956-ffa450edef68
* Add some docs to APR.Ryan Bloom2000-10-093-12/+31
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60569 13f79535-47bb-0310-9956-ffa450edef68
* Sort out OS/2 APR error handling with new canonical test macro.Brian Havard2000-10-093-54/+57
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60567 13f79535-47bb-0310-9956-ffa450edef68
* Update send_the_file to fall back to a read/write loop on platformsRyan Bloom2000-10-071-10/+1
| | | | | | | | | without sendfile. This also makes the apr_hdtr_t type available on all platforms, regardless of whether apr_sendfile is defined or not. Submitted by: Brian Havard and Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60561 13f79535-47bb-0310-9956-ffa450edef68
* doc nit and I missed a change to Makefile.in.Greg Stein2000-10-071-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60560 13f79535-47bb-0310-9956-ffa450edef68
* This is ugly, but at least we compile again on platforms that lackJim Jagielski2000-10-071-0/+9
| | | | | | | | | | | sendfile(). PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60559 13f79535-47bb-0310-9956-ffa450edef68
* The precursor to the win32 cannonical errors patchWilliam A. Rowe Jr2000-10-061-73/+103
| | | | | | | | | | | | | | | Moved the unix APR_IS_STATUS... block to the end (a fallthrough, rather than a nasty condition list.) Added some GetLastError/WSAGetLastError/SetLastError helpers, they are just macro wrappers. Changed for the optimizer, the SYSERR value was flipped to the other side of the equation (creating a constant and killing potential run time math). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60551 13f79535-47bb-0310-9956-ffa450edef68
* some nits that I forgot first time around.Greg Stein2000-10-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60550 13f79535-47bb-0310-9956-ffa450edef68
* add UUID generation/formatting/parsing to APRGreg Stein2000-10-061-0/+99
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60549 13f79535-47bb-0310-9956-ffa450edef68
* size_t should be an apr_size_t.Greg Stein2000-10-051-7/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60548 13f79535-47bb-0310-9956-ffa450edef68
* The big one... APR_IS_STATUS_condition(rv) conditional macros.William A. Rowe Jr2000-10-051-10/+210
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60546 13f79535-47bb-0310-9956-ffa450edef68
* Some systems have poll.h in include/sys, not include. I found thisRyan Bloom2000-09-291-0/+3
| | | | | | | problem on non-glibc linux machines. This patch solves the problem. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60540 13f79535-47bb-0310-9956-ffa450edef68
* Fix a few misspellings.Jeff Trawick2000-09-281-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60539 13f79535-47bb-0310-9956-ffa450edef68
* Provide a socklen_t to the user of APR as a portability aid. SomeJeff Trawick2000-09-223-1/+8
| | | | | | | | | | | | | | | | | | systems have unsigned sockaddr len parameters; others have signed. When passing the length by address (as to accept()) a warning is generated if the sign is not correct. This patch assumes that, if no native socklen_t is provided, apr_socklen_t is always signed; that can be easily tweaked for certain platforms later. Inside APR, apr_socklen_t is only used currently in the Unix implementation. Submitted by: Victor J. Orlikowski <v.j.orlikowski@gte.net> Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60538 13f79535-47bb-0310-9956-ffa450edef68
* This changes the way we check for inet_addr and inet_network. The new testsDavid Reid2000-09-171-2/+2
| | | | | | | | | allow BeOS BONE to work and shouldn't create any problems on other platforms. Also a little bit of a consistency improvements with the variable names we use. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60535 13f79535-47bb-0310-9956-ffa450edef68
* Fix some docsRyan Bloom2000-09-131-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60527 13f79535-47bb-0310-9956-ffa450edef68
* We need to test specifically for setrlimit/getrlimit instead ofJim Jagielski2000-08-231-0/+2
| | | | | | | | | | | | | just the structure or the RLIMIT_* defines. Also, we should make the API function unixd_set_rlimit() ``available'' even if it doesn't do anything. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60512 13f79535-47bb-0310-9956-ffa450edef68
* Add UNTESTED routines and structures to APR's table implementationKen Coar2000-08-221-28/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | to allow for tables with string keys and non-string values. Instead of a char * value field, these tables have an apr_item_t * value field, which in turn is a structure containing a size and a void * pointer to the data themselves. I've kept the types distinct to keep type-checking useful, so they can't be accidentally intermixed in function calls. I've used 'btable' in place of 'table' in all cases, so the structures are apr_btable_t and apr_btable_entry_t. I've prototyped and cloned all of the relevant routines except apr_table_to() and apr_overlap_tables(), which were both too complex for me to want to tackle to-night. Some of the routines don't make sense to clone, like apr_table_merge*(). So maybe this all sucks and someone can rip it out, but I'm sick of waiting for this functionality so I hope someone takes this and improves it instead. We *could* reimplement the string-value tables as a special case of btables, which would conceivably save on strlen() cycles, but I'm not sure it would be worth it. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60510 13f79535-47bb-0310-9956-ffa450edef68
* APRize disabling nagle (setting TCP_NODELAY).Brian Havard2000-08-221-0/+1
| | | | | | | | | | | | | Note that several areas have not been tested as they apply to MPMs or APR code that I can't test. PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60508 13f79535-47bb-0310-9956-ffa450edef68
* Add support to APR for dsos on OS/390.Jeff Trawick2000-08-171-0/+76
| | | | | | | | Submitted by: Greg Ames Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60501 13f79535-47bb-0310-9956-ffa450edef68
* Fix some warnings from initopt and getopt.Ryan Bloom2000-08-171-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60500 13f79535-47bb-0310-9956-ffa450edef68
* Tweak apr_getopt() and its use in ab to avoid compiler warnings.Jeff Trawick2000-08-101-3/+3
| | | | | | | | | (Note: apr_initopt() and/or its callers still need tweaking.) Submitted by: Bill Rowe Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60496 13f79535-47bb-0310-9956-ffa450edef68
* Doc it correctly, even if the const'ness is wrong.William A. Rowe Jr2000-08-091-2/+2
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60495 13f79535-47bb-0310-9956-ffa450edef68