summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* This commit was manufactured by cvs2svn to create tag 'APR_1_0_RC1'.APR_1_0_RC1(no author)2004-06-183-259/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/tags/APR_1_0_RC1@65208 13f79535-47bb-0310-9956-ffa450edef68
* Following the last 2 weeks discussions, there are now no showstoppersdreid2004-06-181-64/+65
| | | | | | | | | for 1.0. Reflect that fact and add soem more comments. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65207 13f79535-47bb-0310-9956-ffa450edef68
* Reuse cleanup structures to prevent memory consumption from repeatedjorton2004-06-172-1/+62
| | | | | | | | | | | | | | | | | | | register/kill of a cleanup against a single pool: * memory/unix/apr_pools.c (struct apr_pool_t): Add freelist for cleanup structures. (apr_pool_cleanup_kill): Move used cleanup structures onto the freelist. (apr_pool_cleanup_register): Reuse cleanup structure if available. (apr_pool_clear, pool_clear_debug, apr_pool_create): Clear the freelist. * test/testpools.c (checker_cleanup, success_cleanup, test_cleanups): Add tests for cleanups. PR: 23567 (the easy half) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65206 13f79535-47bb-0310-9956-ffa450edef68
* 3centstrawick2004-06-161-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65205 13f79535-47bb-0310-9956-ffa450edef68
* indicate that default on address space differs among platformstrawick2004-06-151-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65204 13f79535-47bb-0310-9956-ffa450edef68
* Continue campaign to kill showstoppers.jerenkrantz2004-06-151-2/+8
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65203 13f79535-47bb-0310-9956-ffa450edef68
* LFS support is complete.jorton2004-06-151-7/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65202 13f79535-47bb-0310-9956-ffa450edef68
* Update STATUSdreid2004-06-151-6/+8
| | | | | | | damn it's hot again. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65201 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (apr_proc_mutex_lockfile): Fix build onjorton2004-06-151-2/+8
| | | | | | | platforms without flock. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65200 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/thread.c (apr_threadattr_detach_set): Fix for Mac OSjorton2004-06-143-6/+13
| | | | | | | | | | | | | X: pass valid arguments to pthread_attr_setdetachstate. * include/apr_thread_proc.h: Clarify apr_threadattr_detach_{set,get} interfaces. PR: 28472 Submitted by: INOUE Seiichiro <inoue ariel-networks.com> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65199 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in: Don't use POSIX semaphores or cross-process pthreadjorton2004-06-143-10/+13
| | | | | | | | | | | | mutexes as the default inter-process locking mechanism. * build/apr_hints.m4: Force default inter-process locking mechanism to fcntl for Solaris, as per 1.3. Reviewed by: Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65198 13f79535-47bb-0310-9956-ffa450edef68
* Fixed typo in API descriptionclar2004-06-141-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65197 13f79535-47bb-0310-9956-ffa450edef68
* Added new APR API to load child process in current or new address space ↵clar2004-06-147-6/+47
| | | | | | | | | | (NetWare ONLY). Replaced changes that added APR_PROGRAM_ADDRSPACE committed 6/11/04. Reviewed by Brad Nicholes git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65196 13f79535-47bb-0310-9956-ffa450edef68
* * threadproc/unix/thread.c (threadattr_cleanup): New function.jorton2004-06-141-2/+18
| | | | | | | | (apr_threadattr_create): Register cleanup for threadattr object, fix possible memory leak. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65195 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (apr_proc_mutex_create): Remove redundantjorton2004-06-141-7/+2
| | | | | | | NULL-initialization of zero-initialized field; remove redundant cast. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65194 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (proc_mutex_fcntl_cleanup): Always close thejorton2004-06-141-5/+2
| | | | | | | | file. (proc_mutex_fcntl_create): Don't call _cleanup on file open failure. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65193 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (proc_mutex_posix_release): Revert previousjorton2004-06-141-1/+3
| | | | | | | change, move ->curr_locked manipulation back inside critical section. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65192 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (apr_proc_mutex_lockfile): Avoid unnecessaryjorton2004-06-141-5/+4
| | | | | | | strcmp calls. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65191 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (proc_mutex_proc_pthread_cleanup): Fixjorton2004-06-141-1/+18
| | | | | | | | | | resource leak: destroy the mutex here, if it was ever initialized. (proc_mutex_proc_pthread_create): Destroy the mutexattr object on error paths; ensure that _cleanup destroys the mutex on error paths iff necessary. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65190 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (proc_mutex_proc_pthread_cleanup): Fixjorton2004-06-141-4/+4
| | | | | | | | | | memory leakup; always unmap the mmap'ed region. PR: 24049 Submitted by: Kohn Emil Dan <emild cs.technion.ac.il> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65189 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (proc_mutex_pthread_create): Don't leak anjorton2004-06-141-0/+1
| | | | | | | fd on mmap failure. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65188 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (proc_mutex_posix_cleanup): Ignorejorton2004-06-141-19/+9
| | | | | | | | | | | | interproc->filedes, always close the semaphore. (proc_mutex_posix_create): Don't call cleanup if sem_open failed, don't set interproc->filedes to -1. (proc_mutex_posix_acquire): Simplify error handling. (proc_mutex_posix_release): Simplify. Only clear curr_locked flag on success. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65187 13f79535-47bb-0310-9956-ffa450edef68
* * test/testprocmutex.c (test_exclusive): Take lock type parameter.jorton2004-06-141-5/+28
| | | | | | | | (proc_mutex): Pass lock type parameter. (testprocmutex): Test all supported mutex types. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65186 13f79535-47bb-0310-9956-ffa450edef68
* Support POSIX semaphores on LP64 platforms:jorton2004-06-143-6/+7
| | | | | | | | | | | | | | | | * configure.in: Don't disable POSIX semaphore support on LP64 platforms. * include/arch/unix/apr_arch_proc_mutex.h (struct apr_proc_mutex_t): Add a sem_t pointer field. * locks/unix/proc_mutex.c (proc_mutex_posix_create, proc_mutex_posix_cleanup, proc_mutex_posix_acquire, prox_mutex_posix_release): Use the sem_t pointer not the fd for the semaphore. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65185 13f79535-47bb-0310-9956-ffa450edef68
* Replaced APR_PROGRAM_ENV with new enum APR_PROGRAM_ADDRSPACE when starting a ↵clar2004-06-111-4/+3
| | | | | | child program git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65184 13f79535-47bb-0310-9956-ffa450edef68
* Added NetWare specific option in apr_cmdtype_e to start program in a ↵clar2004-06-111-4/+7
| | | | | | separate address space for cmdtype field in apr_procattr_t struct git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65183 13f79535-47bb-0310-9956-ffa450edef68
* Don't try to enable run-time linking on AIX < 4.2, as thistrawick2004-06-111-1/+7
| | | | | | | | results in invalid linker options being used. PR: 29170 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65182 13f79535-47bb-0310-9956-ffa450edef68
* Revert accidental commit.jorton2004-06-101-1/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65180 13f79535-47bb-0310-9956-ffa450edef68
* Add apr_threadattr_guardsize_set function, which allows changingjorton2004-06-107-7/+59
| | | | | | | | | | | | | | | | | | | the thread guard area size attribute for newly created threads. * configure.in: Check for pthread_attr_setguardsize. * include/apr_thread_proc.h (apr_threadattr_guardsize_set): Add prototype. * threadproc/unix/thread.c (apr_threadattr_guardsize_set): Add function. * threadproc/os2/thread.c, threadproc/win32/thread.c, threadproc/beos/thread.c, threadproc/netware/thread.c (apr_threadattr_guardsize_set): Add ENOTIMPL stubs. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65179 13f79535-47bb-0310-9956-ffa450edef68
* * test/Makefile.in (libmod_test.la): Link against dependencies forjorton2004-06-101-1/+1
| | | | | | | platforms where libraries can have no undefined symbols. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65178 13f79535-47bb-0310-9956-ffa450edef68
* * test/testglobalmutex.c (testglobalmutex): Fix declaration.jorton2004-06-101-4/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65177 13f79535-47bb-0310-9956-ffa450edef68
* Use abts_log_message to log data about which test is being run.rbb2004-06-091-0/+2
| | | | | | | | (This highlites a problem with abts which will be fixed shortly, namely it is too hard to use abts_log_message with a format string). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65176 13f79535-47bb-0310-9956-ffa450edef68
* Use the void *data parameter to test functions to pass in the lockrbb2004-06-091-47/+16
| | | | | | | | | mechanism. The removes a bunch of functions that didn't really do anything except dictate which lock mechanism to use, and it uses a feature that CuTest didn't have but ABTS does to solve this problem. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65175 13f79535-47bb-0310-9956-ffa450edef68
* * test/Makefile.in: Revert broken r1.161.jorton2004-06-081-4/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65174 13f79535-47bb-0310-9956-ffa450edef68
* Merge from ABTS svn repo. Don't pring success message when -l is used.rbb2004-06-081-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65173 13f79535-47bb-0310-9956-ffa450edef68
* * test/abts_tests.h: Disable tests for API combination which doesn'tjorton2004-06-071-0/+2
| | | | | | | currently work. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65172 13f79535-47bb-0310-9956-ffa450edef68
* Presently if we fail in apr_assert_success we get the line number fordreid2004-06-0722-140/+148
| | | | | | | | | | | | testutil.c reported. Not very useful. This change adds the passing of the (correct) line number and also a macro to ease said passing. I've changed all instances of apr_assert_success to use the new macro, but not all the tests build on this platform so others should check that all is well for them. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65171 13f79535-47bb-0310-9956-ffa450edef68
* Add libtool* as installed by FreeBSD ports. No 'libtool' is installed, alljerenkrantz2004-06-062-2/+2
| | | | | | | are suffixed by version number. Prefer 1.5 over 1.4, if available. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65170 13f79535-47bb-0310-9956-ffa450edef68
* jet lag bad - this might actually be right nowthommay2004-06-061-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65169 13f79535-47bb-0310-9956-ffa450edef68
* oops, I was a little too enthusiastic with removing stuff...thommay2004-06-061-0/+1
| | | | | | | Submitted by: Greg, Joe git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65168 13f79535-47bb-0310-9956-ffa450edef68
* Add back the -l option to the apr test suite. This allows the test suiterbb2004-06-051-4/+16
| | | | | | | to list all available tests. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65166 13f79535-47bb-0310-9956-ffa450edef68
* * include/arch/unix/apr_arch_proc_mutex.h, locks/unix/proc_mutex.c:jorton2004-06-052-31/+15
| | | | | | | Don't define global symbols for the _methods structures. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65165 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in, include/arch/unix/apr_arch_proc_mutex.h,jorton2004-06-053-7/+0
| | | | | | | | include/apr.h.in: Remove unimplemented "rwlock" serialization definitions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65164 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (proc_mutex_no_child_init): Use single noopjorton2004-06-051-51/+15
| | | | | | | | | _child_init function. (proc_mutex_posix_setup, proc_mutex_proc_pthread_setup, proc_mutex_flock_setup): Remove empty functions. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65163 13f79535-47bb-0310-9956-ffa450edef68
* * locks/unix/proc_mutex.c (proc_mutex_flock_child_init): If open()jorton2004-06-051-1/+0
| | | | | | | fails in a child, the lock file should not be unlink()ed. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65162 13f79535-47bb-0310-9956-ffa450edef68
* Update the comment.jorton2004-06-041-2/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65161 13f79535-47bb-0310-9956-ffa450edef68
* Move APR_INT64_STRFN to apr_private.h and remove redundantjorton2004-06-047-24/+19
| | | | | | | | | | | | | | | | | | APR_HAVE_INT64_STRFN macro. * configure.in: Define APR_HAVE_INT64 macro. * include/apr.h.in, include/apr.hw, include/apr.hnw: Remove APR_INT64_STRFN, APR_HAVE_INT64_STRFN macros. * include/arch/win32/apr_private.h, include/arch/netware/apr_private.h: Define APR_INT64_STRFN (and correctly for Win32, fix from Andr��). * strings/apr_strings.c (apr_strtoi64): Just use APR_INT64_STRFN. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65160 13f79535-47bb-0310-9956-ffa450edef68
* * test/test_apr.h: Remove now-unused file.jorton2004-06-041-88/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65159 13f79535-47bb-0310-9956-ffa450edef68
* * build/apr_threads.m4 (APR_CHECK_PTHREAD_RECURSIVE_MUTEX): Run ratherjorton2004-06-041-4/+6
| | | | | | | than just compile the test program. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65158 13f79535-47bb-0310-9956-ffa450edef68
* Drop racy/broken Unix nested mutex implementation; use SUSv3-stylejorton2004-06-044-112/+58
| | | | | | | | | | | | | | | | | | | recursive mutex support if available: * build/apr_threads.m4 (APR_CHECK_PTHREAD_RECURSIVE_MUTEX): New macro. * configure.in: Use it. * include/arch/unix/apr_arch_thread_mutex.h (struct apr_thread_mutex_t): Drop nested mutex tracking fields. * locks/unix/thread_mutex.c (apr_thread_mutex_create): Return ENOTIMPL if lacking recursive mutex support, else create a recursive mutex. (apr_thread_mutex_lock, apr_thread_mutex_unlock, apr_thread_mutex_trylock): Remove nested mutex tracking. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65157 13f79535-47bb-0310-9956-ffa450edef68