| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/tags/APR_1_0_RC1@65208 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65205 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65204 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65203 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65202 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
damn it's hot again.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65201 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
platforms without flock.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65200 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65197 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
strcmp calls.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65191 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
fd on mmap failure.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65188 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
child program
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65184 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65180 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65177 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65174 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65173 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
currently work.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65172 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65169 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Submitted by: Greg, Joe
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65168 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
to list all available tests.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65166 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
_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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65161 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65159 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
than just compile the test program.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65158 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|