summaryrefslogtreecommitdiff
path: root/CHANGES
Commit message (Collapse)AuthorAgeFilesLines
* Update CHANGES and STATUS to reflect the current state of the pools code.striker2002-01-121-0/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62764 13f79535-47bb-0310-9956-ffa450edef68
* add a new define APR_POOL_DEBUG_VERBOSEianh2002-01-111-0/+2
| | | | | | | | | | | | which will print out where pools are created and their children in the destroy function PR: Obtained from: Submitted by: Reviewed by: git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62757 13f79535-47bb-0310-9956-ffa450edef68
* Fix GMT offset calculations for platforms that do not have native GMTjerenkrantz2002-01-101-0/+3
| | | | | | | | | offsets. Submitted by: Jon Travis <jtravis@covalent.net> Reviewed by: Justin, Brian, David git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62744 13f79535-47bb-0310-9956-ffa450edef68
* This should take care of this STATUS entry. We now have a unifiedaaron2002-01-101-0/+7
| | | | | | | | shared memory system that can be implemented and used on all platforms including Win32. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62738 13f79535-47bb-0310-9956-ffa450edef68
* Add support for EGD-compatible entropy gatherers (such as EGD or PRNGd).jerenkrantz2002-01-081-0/+3
| | | | | | | At configure-time, specify --with-egd=/path/to/egd/socket. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62715 13f79535-47bb-0310-9956-ffa450edef68
* roll the extra apr_lock_create_np() functionality into apr_lock_create()trawick2001-12-291-0/+5
| | | | | | | | | | | and get rid of apr_lock_create_np(); apr_lock_create() has a new parameter for specifying the lock mechanism (or APR_LOCK_DEFAULT to let APR choose) (same for apr_proc_mutex_create_np() and apr_proc_mutex_create()) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62684 13f79535-47bb-0310-9956-ffa450edef68
* nonshowstoppers--aaron2001-12-271-0/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62671 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_sockaddr_equal() for comparing APR sockaddrs.trawick2001-12-261-0/+4
| | | | | | | This handles v4-mapped IPv6 addresses. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62669 13f79535-47bb-0310-9956-ffa450edef68
* Win32: apr_sendfile() should return APR_ENOTIMPL if oslevel < WINNTstoddard2001-12-201-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62662 13f79535-47bb-0310-9956-ffa450edef68
* Put new pools code in place which allows applications tostriker2001-12-141-0/+6
| | | | | | | | | | | | switch off locking on pools operations in case a pool is guaranteed to never being used in more than one thread at the same time. We've seen a significant performance improvement over the old code. Reviewed by: Justin Erenkrantz, Brian Pane git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62650 13f79535-47bb-0310-9956-ffa450edef68
* apr-config is a shell script modeled after glib-config et al that allowsjerenkrantz2001-12-121-0/+6
| | | | | | | | | third-parties easy access to APR configuration parameters. Reviewed by: Greg Stein git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62628 13f79535-47bb-0310-9956-ffa450edef68
* fix segv in apr_table_overlapianh2001-12-091-0/+2
| | | | | | | | | | | | This patch fixes a bug in apr_table_overlap: when using the APR_OVERLAP_TABLES_SET option, the red-black tree's shape properties were sometimes broken, which could cause a segfault if it happened at the root node of the tree. Obtained from: Brian Pane git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62612 13f79535-47bb-0310-9956-ffa450edef68
* optimize the apr_array_copy call by remvoing the zero fillianh2001-12-081-0/+2
| | | | | | | | | Thanks Brian! Obtained from: Brian Pane <bpane@pacbell.net> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62611 13f79535-47bb-0310-9956-ffa450edef68
* don't try to use getaddrinfo() on systems without gai_strerror()trawick2001-12-071-0/+3
| | | | | | | this fixes a build error on RedHat 5.2 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62608 13f79535-47bb-0310-9956-ffa450edef68
* Fix a problem in Unix apr_file_dup() which caused 0 to be returnedtrawick2001-12-061-0/+3
| | | | | | | | | | by the first read. Submitted by: Stas Bekman <stas@stason.org> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62607 13f79535-47bb-0310-9956-ffa450edef68
* Fix a buglet that caused APR_FILE_BASED_SHM to be set inadvertentlytrawick2001-11-261-0/+4
| | | | | | | on some platforms (e.g., Linux, AIX). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62555 13f79535-47bb-0310-9956-ffa450edef68
* Canonicalize the formatting of these entries.jwoolley2001-11-261-10/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62550 13f79535-47bb-0310-9956-ffa450edef68
* Um, Brain? :)jwoolley2001-11-261-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62549 13f79535-47bb-0310-9956-ffa450edef68
* Speed up table operations.ianh2001-11-261-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch adds a cache to each element in an apr_table_t. The cache consists of a 32-bit int containing the first 4 bytes of the element's key, converted to uppercase. This makes it possible to replace strcasecmp calls with inline integer comparisons. If the integer comparison fails, we can skip the strcasecmp. If the integer comparison succeeds, we can at least skip the first 4 bytes of the strcmp. In the httpd, this roughly doubles the speed of the apr_table_get and apr_table_setn operations. * A rewrite of apr_table_overlap() that uses a red-black tree instead of qsort * Cliff's faster version of the prefix computation macro * apr_palloc instead of apr_pcalloc for creating the array inside a table an important note: * This patch increases the size of the apr_table_entry_t struct, so it requires a "make clean." Submitted by: Brian Pane <bpane@pacbell.net> Reviewed by: Ian Holsman, Cliff Woolley git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62547 13f79535-47bb-0310-9956-ffa450edef68
* Speed up apr_pool_userdata_set[n] by letting apr_hash_set/get figure out theianh2001-11-231-0/+4
| | | | | | | | string length Obtained from: Brain Pane git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62543 13f79535-47bb-0310-9956-ffa450edef68
* New APR function apr_mmap_dup.ianh2001-11-211-0/+5
| | | | | | | | | this is used in the MMAP bucket setaside function for a performance win. Mod_file_cache will also use this Submitted by: Brian Pane <bpane@pacbell.net> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62536 13f79535-47bb-0310-9956-ffa450edef68
* Tweak apr_gethostname() so that it detects truncation of thetrawick2001-11-201-0/+3
| | | | | | | | | | | name and returns an error. Such behavior varied between platforms before, since some systems returned an error if the buffer wasn't large enough while others just truncated the returned name and left it up to the app to detect truncation and/or '\0'-terminate it. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62526 13f79535-47bb-0310-9956-ffa450edef68
* Update *ressym on success in the Darwin DSO load path.jerenkrantz2001-11-201-0/+2
| | | | | | | | Submitted by: Sander Temme <sctemme@covalent.net> Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62524 13f79535-47bb-0310-9956-ffa450edef68
* Fix apr_setup_signal_thread() to grab the right error code fromtrawick2001-11-161-0/+4
| | | | | | | | | | | a sigprocmask() failure. This only affects platforms that use sigprocmask() in lieu of pthread_sigmask(). sigprocmask() reports error codes via errno, not via the return code. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62517 13f79535-47bb-0310-9956-ffa450edef68
* Fix the Unix HAVE_POLL flavor of apr_poll_socket_mask() so thattrawick2001-11-131-3/+7
| | | | | | | | | | | it doesn't segfault. Avoid some wasted storage in a poll-related APR structure. Submitted by: INOUE Seiichiro <inoue@ariel-networks.com> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62511 13f79535-47bb-0310-9956-ffa450edef68
* Fix apr_setup_signal_thread() so that threads don't blocktrawick2001-11-121-2/+8
| | | | | | | | | | | | | synchronous signals (e.g., SIGSEGV). It is a programming error to do so, and some platforms (e.g., Solaris, AIX) don't call any registered signal handler when such signals are blocked. Thanks are due to Dick Dunbar <RLDunbar@pacbell.net>, who pointed this out to me in the context of debugging a threaded module for Apache 1.3. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62509 13f79535-47bb-0310-9956-ffa450edef68
* Argh.. water damage all over our new building ;(ianh2001-11-121-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62504 13f79535-47bb-0310-9956-ffa450edef68
* Use strerror_r() where available, since strerror() isn't alwaystrawick2001-11-121-0/+4
| | | | | | | | thread-safe. Example systems where strerror() isn't thread-safe: Linux+glibc, AIX git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62503 13f79535-47bb-0310-9956-ffa450edef68
* Fix some file cleanup problems in apr_proc_create() which couldtrawick2001-11-111-1/+5
| | | | | | | | result in the pipes for stdin/stdout/stderr being closed immediately. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62497 13f79535-47bb-0310-9956-ffa450edef68
* Add 2 new hash functions.ianh2001-11-091-0/+4
| | | | | | | | | | | | apr_hash_copy & apr_hash_merge. the merge function allows for a callback if both hash's have the same value this changes the overlay function so that it calls the 'merge' Submitted by: Brian Pane <bpane@pacbell.net> Reviewed by: Ian Holsman git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62493 13f79535-47bb-0310-9956-ffa450edef68
* Introduce the apr_pool_userdata_setn() variant that doesn't strdup the key.wrowe2001-10-291-0/+4
| | | | | | | | | | Support for passing NULL as the cleanup callback, so items that don't require a cleanup need not incur the overhead of registering a no-op. Submitted by: Brian Pane <bpane@pacbell.net> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62473 13f79535-47bb-0310-9956-ffa450edef68
* Fix the reporting for child processes that die. This removesrbb2001-10-231-0/+5
| | | | | | | | | all of the non-portable W* macros from Apache. Submitted by: Jeff Trawick and Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62455 13f79535-47bb-0310-9956-ffa450edef68
* Come on Aaron, you can think of a better commit log message than this!aaron2001-10-191-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62448 13f79535-47bb-0310-9956-ffa450edef68
* Added a new parameter to apr_thread_mutex_init(). Mutexes are now byaaron2001-10-171-0/+6
| | | | | | | | | | | | | | | | default not nested, but an init flag can enable them. I added a new test to testlockperf to show how much faster non-nested mutexes are. I also updated calls to apr_thread_mutex_init() wherever I could find them. This patch only implements this for Unix (nested locks already existed on Unix, so this patch just optionally enables/disables them). I did my best to change the function declaration on other platforms, but someone will have to double check me. Those other platforms will also have to either enable nested locks (sometimes available in their thread library) or just do what Unix does. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62435 13f79535-47bb-0310-9956-ffa450edef68
* read_with_timeout in apr/file_io/win32/readwrite.c incorrectlytrawick2001-10-161-0/+6
| | | | | | | | | | | | returned APR_SUCCESS instead of APR_EOF when PeekNamedPipe failed and the result from GetLastError() was ERROR_BROKEN_PIPE. Because of this, the pipe wasn't closed as soon as it could be. Submitted by: Tim Costello <tim.costello@zcmgroup.com.au> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62430 13f79535-47bb-0310-9956-ffa450edef68
* The pipe creation code used by mod_cgi in Apache 2.0trawick2001-10-161-0/+6
| | | | | | | | | | | | | | doesn't register cleanups for either the read or the write ends of the pipe - so file handles (and event handles for pipes with asynchronous I/O mode set) are never closed. The function in question is called apr_create_nt_pipe, and the following patch fixes this (see also apr_file_pipe_create). Submitted by: Tim Costello <tim.costello@zcmgroup.com.au> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62429 13f79535-47bb-0310-9956-ffa450edef68
* Add support for QNX 6.trawick2001-10-161-0/+2
| | | | | | | | | | (Jeff removed a bogus comment about systems without union semun defined.) Submitted by: J.T. Conklin <jtc@acorntoolworks.com> Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62428 13f79535-47bb-0310-9956-ffa450edef68
* Almost forgot this...aaron2001-10-161-0/+6
| | | | | | | um...it hasn't rained in months, or something. :) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62427 13f79535-47bb-0310-9956-ffa450edef68
* Added the cond_timedwait function (and a new test for it as well).aaron2001-10-121-0/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62423 13f79535-47bb-0310-9956-ffa450edef68
* Many fixes to apr_file_mktemp when !HAVE_MKSTEMP to (a) make it workjwoolley2001-10-061-0/+3
| | | | | | | | | | | | | | | | | | | | | | and (b) be consistent with systems that do have mkstemp. - s/APR_HAS_STDINT_H/APR_HAVE_STDINT_H/ - dropped use of errno and just returned the apr status directly - fixed gettemp prototype to allow the apr_file_t* to actually be returned - set missing APR_DELONCLOSE flag in call to apr_file_open in gettemp - removed duplicate calls to apr_pool_cleanup_register for platforms that use gettemp because apr_file_open() already registers the cleanup for us - dropped support for a NULL apr_file_t** parameter (which only worked if !HAVE_MKSTEMP anyway) because using a temp filename that has been created that way is unsafe. Question: does OS/2 have mkstemp() or is it using gettemp()? If it has mkstemp, the OS/2 cleanup registration needs to be put back in. Submitted by: Mladen Turk, Cliff Woolley git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62405 13f79535-47bb-0310-9956-ffa450edef68
* Fix a segfault in apr_poll_clear on Unix. Also fix the logicrbb2001-10-021-0/+4
| | | | | | | | | | for the case where there are multiple events ORed together in the events list. Submitted by: Jamshid Mahdavi <mahdavi@volera.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62392 13f79535-47bb-0310-9956-ffa450edef68
* Even though it's not unusual for temporary files to be unlinked as soon asjwoolley2001-10-011-0/+5
| | | | | | | | | | | they're open on Unix, it makes the use of those files harder in some cases. For example, the filename we were getting back from apr_file_mktemp() was useless because the file had already been unlinked. Now we defer the unlink until the file is actually closed. This also makes the behavior on Unix somewhat more consistent with other platforms. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62390 13f79535-47bb-0310-9956-ffa450edef68
* Fix a potential segfault on Unix when apr_file_close() is called and thejwoolley2001-10-011-0/+5
| | | | | | | | | | | | file_cleanup fails. Previously in that situation the cleanup would not be deregistered and therefore it would get run again when the pool went away. Similar behavior in the directory cleanup logic caused segfaults at some point in the past. Reviewed by: Ryan Bloom, Bill Rowe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62389 13f79535-47bb-0310-9956-ffa450edef68
* Introduce apr_pool_lock for debugging, in combination withwrowe2001-09-281-0/+5
| | | | | | | | | | | | | ALLOC_USE_MALLOC + DEBUG_WITH_MPROTECT. Only implemented on Win32 today, very effective for debugging pool constness. Fixed a double-reservation for the union block_hdr size in the unix mprotect_alloc mmap() call. I suspect the mmap can be modified to implement this on Unix, move the #define DO_LOCK() out of the win32 block if this is implemented. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62382 13f79535-47bb-0310-9956-ffa450edef68
* optimize apr_pstrcat by storing the lengths of the first 6 stringsianh2001-09-281-0/+3
| | | | | | | | | | (changed const to #define as suggested, and so that it compiles on NT) Submitted by: Brian Pane <bpane@pacbell.net> Reviewed by: Ian Holsman git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62379 13f79535-47bb-0310-9956-ffa450edef68
* Add pool accessors to the apr_thread_mutex_t datatype.rbb2001-09-261-0/+3
| | | | | | | Submitted by: Aaron Bannert <aaron@clove.org> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62377 13f79535-47bb-0310-9956-ffa450edef68
* Add the apr_file_mktemp function. This creates and opens arbb2001-09-241-0/+5
| | | | | | | | | | | | | | temporary file, for use by the program. This file is created delete_on_close. The initial implementation only works on Unix, but Windows is coming soon. This also modifies all of the process lock functions that need a temporary file to use the new apr_file_mktemp function. Submitted by: Ryan Bloom git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62368 13f79535-47bb-0310-9956-ffa450edef68
* Simplify apr_proc_wait_all_procs and consolidate apr_proc_wait.jerenkrantz2001-09-211-0/+5
| | | | | | | | | | | | | (I had a similar version in my tree. Kevin's wins out because of the WIF macros. Are there any platforms that don't have this? The Solaris man page seems to indicate that they must be called, so it seems correct. Please check on your favorite platform.) Submitted by: Kevin Pilch-Bisson <kevin@pilch-bisson.net> Reviewed by: Justin Erenkrantz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62358 13f79535-47bb-0310-9956-ffa450edef68
* Add a test for the new process mutex, and a CHANGES entry about therbb2001-09-191-0/+2
| | | | | | | process locks. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62348 13f79535-47bb-0310-9956-ffa450edef68
* Add my name to this CHANGES entryrbb2001-09-191-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62343 13f79535-47bb-0310-9956-ffa450edef68