summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Add ap_sendfile() flag APR_SENDFILE_DISCONNECT_SOCKET to tellBill Stoddard2000-05-121-0/+3
| | | | | | | | TransmitFile it is okay to disconnect the socket after successful send. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60036 13f79535-47bb-0310-9956-ffa450edef68
* repair some compile warnings, axe a wasted getsockname() call andJeff Trawick2000-05-111-2/+2
| | | | | | | some unnecessary local vars, fix bug in a rare trace of a pid git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60035 13f79535-47bb-0310-9956-ffa450edef68
* Add ap_xlate_conv_byte() to convert one char between single-byte characterJeff Trawick2000-05-101-0/+19
| | | | | | | sets. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60034 13f79535-47bb-0310-9956-ffa450edef68
* Make the hash API nicer when dealing with nul-terminated strings.Tony Finch2000-05-091-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60031 13f79535-47bb-0310-9956-ffa450edef68
* fix a bug in the definition of APR_ENOMEMJeff Trawick2000-05-091-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60030 13f79535-47bb-0310-9956-ffa450edef68
* serious bug fix:Jeff Trawick2000-05-061-3/+10
| | | | | | | | | | | | | | | | | htdigest didn't init the first parm to ap_open(), so ap_open() segfaults thinking it was passed valid storage build portability: make most src/lib/apr/test/Makefile.in compatible with OS/390 make (no -o outfile after infile specified) MD5 translation support: when APR_HAS_XLATE, low-level routines allow translation handle to be specified when CHARSET_EBCDIC, password-specific routines always translate, but client app must set handle before using git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60027 13f79535-47bb-0310-9956-ffa450edef68
* Add a new function to APR, ap_wait_all_procs. This waits for any currentRyan Bloom2000-05-041-2/+33
| | | | | | | child process to die, and then returns that child's information. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60022 13f79535-47bb-0310-9956-ffa450edef68
* Import support for hash tables.Tony Finch2000-05-031-0/+196
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60019 13f79535-47bb-0310-9956-ffa450edef68
* Back out sigthreadmask support.Sascha Schumann2000-05-021-5/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60013 13f79535-47bb-0310-9956-ffa450edef68
* Substitute sigthreadmask for pthread_sigmask, if necessary.Sascha Schumann2000-05-021-0/+5
| | | | | | | | | | | | Note that the behaviour of sigprocmask in a multi-threaded program is undefined. The AIX 4.3 documentation explicitly says "The sigprocmask, sigsetmask, and sigblock subroutines must not be used in a multi-threaded application." This change allows us to build the Dexter and mpmt_pthread MPM on AIX. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60012 13f79535-47bb-0310-9956-ffa450edef68
* Add options to APR to allow OTHER_CHILD support to be turned on and off.Ryan Bloom2000-05-012-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60011 13f79535-47bb-0310-9956-ffa450edef68
* William A. Rowe Jr2000-05-015-14/+91
| | | | | | | | | | | | | | | Significantly shorten the Win32 build and shrink symbol tables for precompiled headers and debugging by eliminating large chunks of the windows.h declarations, especially the graphical user interface declarations. Also eliminates redundant inclusion of winsock and windows headers. As the GUI sections can be included by adding the windows.h include prior to any apr headers, these includes now imply something completely different. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60009 13f79535-47bb-0310-9956-ffa450edef68
* Use ap_pcalloc instead of ap_palloc where it makes sense.Ryan Bloom2000-04-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60005 13f79535-47bb-0310-9956-ffa450edef68
* Fix ap_tokenize_to_argv to respect the const arguments it is passed. ThisRyan Bloom2000-04-301-1/+2
| | | | | | | is the first step to getting piped and reliable piped logs workin in 2.0 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59997 13f79535-47bb-0310-9956-ffa450edef68
* apr_errno.h:Jeff Trawick2000-04-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | APR_OS_START_ERROR needs to be at least 2000 for OS/390 and needs to be much higher than 10000 for Win32; 20000 seems nice and round and large enough to keep folks happy for a while; without this change, Win32 ap_strerror() is broken for common socket error codes unix/errorcodes.c: fix bug in stuffbuffer(); it chopped off the last char of the message win32/errorcodes.c: fix same bug in stuffbuffer() when Windows doesn't return a msg, provide a default one test/client.c: call ap_strerror() in a couple of places for easy testing get rid of the loop around ap_connect(); no current ap_connect() closes the socket or anything else required to make this work git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59986 13f79535-47bb-0310-9956-ffa450edef68
* don't redefine TRUE/FALSEDoug MacEachern2000-04-281-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59985 13f79535-47bb-0310-9956-ffa450edef68
* back out APR_ prefix for TRUE,FALSEDoug MacEachern2000-04-282-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59983 13f79535-47bb-0310-9956-ffa450edef68
* Win32:Jeff Trawick2000-04-281-0/+2
| | | | | | | | | | | | | | | | install ab.exe fix dependency in Apache.dsw (ab is dependent on aprlib and ap) fix ab and htdigest projects so that they find all header files define ap_signal() in apr.hw - this is o.k. for casual use as with cmd-line programs use API_VAR_EXPORT as appropriate in getopt.c general: ab doesn't need to declare ap_optarg/ap_optind; fix a warning htdigest needs to call ap_initialize() to avoid segfault at startup git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59981 13f79535-47bb-0310-9956-ffa450edef68
* prefix TRUE,FALSE with APR_Doug MacEachern2000-04-282-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59975 13f79535-47bb-0310-9956-ffa450edef68
* extremely minor cleanup:Jeff Trawick2000-04-281-3/+3
| | | | | | | | | | | apr_file_io.h: fix comment describing APR_OS_DEFAULT sockets.c: use socklen_t instead of int to avoid compile warning on systems with unsigned sock len parms dexter/.cvsignore: ignore .deps, .libs errorcodes.c: get rid of some unused vars git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59970 13f79535-47bb-0310-9956-ffa450edef68
* modify the arguments to ap_tokenize_to_argv to match the rest of apr.Ryan Bloom2000-04-281-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59968 13f79535-47bb-0310-9956-ffa450edef68
* Fix build break. ap_file_t does not use the 'ungetchar' field. I added it forBill Stoddard2000-04-271-4/+7
| | | | | | | | | consistency sake (and I think we can use it in the same way the Unix side does). Did a bit of extra cleanup in the process: Eliminated the file->stated field, it wasn't being used. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59959 13f79535-47bb-0310-9956-ffa450edef68
* Fix a prototype mistake from earlier commit.Ryan Bloom2000-04-261-2/+1
| | | | | | | Submitted by: Chia-liang Kao (clkao@CirX.ORG) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59957 13f79535-47bb-0310-9956-ffa450edef68
* Fix the ap_poll implementation on Unix. This stops us from re-allocatingRyan Bloom2000-04-262-5/+19
| | | | | | | | | the pollfd each time ap_poll is called. Submitted by: Chia-liang Kao (clkao@CirX.ORG) Reviewed by: Ryan Bloom git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59956 13f79535-47bb-0310-9956-ffa450edef68
* Change size_t to ap_size_t on ap_strerror(). Sorry about missing this theBill Stoddard2000-04-261-2/+2
| | | | | | | first time through. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59954 13f79535-47bb-0310-9956-ffa450edef68
* Get rid of ap_pool_t argument on ap_strerrorBill Stoddard2000-04-261-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59953 13f79535-47bb-0310-9956-ffa450edef68
* More win32 shotgunary to the windows project files and toBill Stoddard2000-04-252-4/+16
| | | | | | | eliminate compile warnings. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59950 13f79535-47bb-0310-9956-ffa450edef68
* Some Windows tweaks from William Rowe...Bill Stoddard2000-04-251-0/+1
| | | | | | | Submitted by: William Rowe git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59949 13f79535-47bb-0310-9956-ffa450edef68
* Add the status parameter back to the Other Child logic.Ryan Bloom2000-04-243-6/+6
| | | | | | | | | | PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59947 13f79535-47bb-0310-9956-ffa450edef68
* Change names of strnatcmp & strnatcasecmp to cpmply with APR namingBill Stoddard2000-04-241-2/+2
| | | | | | | | | conventions Submitted by: William Rowe git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59945 13f79535-47bb-0310-9956-ffa450edef68
* Add `IndexOptions +VersionSort', to nicely sort filenamesdgaudet2000-04-241-0/+24
| | | | | | | | | containing version numbers. Submitted by: Martin Pool <mbp@linuxcare.com.au> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59941 13f79535-47bb-0310-9956-ffa450edef68
* More cleanups associated with the apr_config->apr_private change:Jeff Trawick2000-04-233-160/+2
| | | | | | | | | 1) remove apr_config.hw 2) change comment in apr_private.hw to refer to apr_private.h instead of apr_config.h git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59936 13f79535-47bb-0310-9956-ffa450edef68
* Finished move of ap_md5 routines to apr_md5. Removed ap_md5.h.Roy T. Fielding2000-04-231-6/+6
| | | | | | | | | Replaced more magic numbers with MD5_DIGESTSIZE. Yuck. Submitted by: William Rowe, Roy Fielding git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59935 13f79535-47bb-0310-9956-ffa450edef68
* Replace APR_MD5_CTX with ap_MD5_ctx_t, as suggested by Bill Rowe.Roy T. Fielding2000-04-231-6/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59934 13f79535-47bb-0310-9956-ffa450edef68
* Move apr_config.h and apr_config.hw to apr_private.h and apr_private.hw.Ryan Bloom2000-04-2216-17/+17
| | | | | | | | This should make the fact that this is a private header file more obvious. This also updates all of the references to apr_config.h git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59924 13f79535-47bb-0310-9956-ffa450edef68
* Remove the invalid data checking from APR's file I/O on Unix.Ryan Bloom2000-04-211-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59912 13f79535-47bb-0310-9956-ffa450edef68
* Win32: Fix compile break caused by the recent ap_strerror patch.Bill Stoddard2000-04-203-219/+18
| | | | | | | | Move APR dependent code out of ap_config.hw and into misc/win32/misc.h. Include misc.h where needed. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59905 13f79535-47bb-0310-9956-ffa450edef68
* apr_iconv.h is now apr_xlate.hJeff Trawick2000-04-201-106/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59898 13f79535-47bb-0310-9956-ffa450edef68
* Add ap_xlate_open() et al for translation of text between differentJeff Trawick2000-04-203-0/+173
| | | | | | | character sets. The initial implementation requires iconv(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59897 13f79535-47bb-0310-9956-ffa450edef68
* add notes about empty slots (for reuse).Greg Stein2000-04-191-11/+24
| | | | | | | renumber the canonical errors -- there were conflicts. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59896 13f79535-47bb-0310-9956-ffa450edef68
* First pass at ap_strerrot. This is probably broken somewhere, but it compilesRyan Bloom2000-04-192-6/+20
| | | | | | | | on Linux, and seems to work most of the time. This also provides an error string for every APR error and status code. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59894 13f79535-47bb-0310-9956-ffa450edef68
* Cleaned up the error codes a bit. Removed codes that aren't used anywhere,Ryan Bloom2000-04-191-15/+5
| | | | | | | return errno instead of new error codes where appropriate. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59893 13f79535-47bb-0310-9956-ffa450edef68
* APR_ENOCONT doesn't make any sense without contexts. Replaced them all withRyan Bloom2000-04-191-1/+0
| | | | | | | APR_ENOPOOL git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59892 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: First hack at non-blocking & time-outable pipes.Brian Havard2000-04-181-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59885 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Switch from using critical sections to mutex semaphores for makingBrian Havard2000-04-181-0/+2
| | | | | | | | the buffering code thread safe. It's the more subtle approach and is actually faster too. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59884 13f79535-47bb-0310-9956-ffa450edef68
* Submitted by: Tim CostelloJeff Trawick2000-04-183-3/+3
| | | | | | | Reviewed by: William Rowe, Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59878 13f79535-47bb-0310-9956-ffa450edef68
* Add a pool to dupfile. There is no reason that when we duplicate a file, ↵Ryan Bloom2000-04-171-2/+3
| | | | | | | | | | | | | | we would want to use the same pool for the duplicated file as we used for the original file. This should solve a problem we were having with dieing quietly on startup, because we are no longer closing stderr in the original process and then opening the config file as file descriptor 2. The original problem report can be found in the message <20000311232812.A1066@sanguine.linuxcare.com.au> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59873 13f79535-47bb-0310-9956-ffa450edef68
* APR_SO_TIMEOUT now takes microseconds instead of seconds. (The newJeff Trawick2000-04-165-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | CHANGES text also reflects prior work on ap_poll() and ap_set_pipe_timeout()). apr/test/client.c now has a crude command-line mechanism for selecting a read timeout. Included bug fixes: 1) Some storage leaks were removed in BeOS and Unix select() usage. 2) For Win32, the code to process APR_SO_TIMEOUT stored timeout in milliseconds but the code to timeout a TransmitFile() in ap_sendfile() assumed that it had been stored in seconds. 3) ab_apr.c used a 30,000-second timeout in one place. This was changed to a 30-second timeout. 4) fix bad perldoc comment in apr_network_io.h which hid the ap_shutdown() prototype 5) disable stdout buffering in apr/test/client.c so that messages appear in the correct order when an error occurs git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59870 13f79535-47bb-0310-9956-ffa450edef68
* Change the format for APR function documentation. This uses the perldocRyan Bloom2000-04-1613-1186/+1952
| | | | | | | | | scripts to generate either plain text, html, or any other format perldoc can generate. This also fixes the comments to say ap_pool instead of ap_context. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59869 13f79535-47bb-0310-9956-ffa450edef68
* Convert ap_poll() to use microseconds instead of seconds forJeff Trawick2000-04-161-3/+4
| | | | | | | | | | | | | | | | the timeout interval. The OS/2 change was a cop-out, essentially using second resolution instead of millisecond resolution. The existing logic to update timeout for repeat calls to select() after EINTR wasn't quite right, and it was silly for me to try to do the right thing given that I wasn't going to compile or run it anyway. Also fixed were a couple of storage leaks around select() calls. Probably no app was affected. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@59868 13f79535-47bb-0310-9956-ffa450edef68