| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62764 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62671 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
This handles v4-mapped IPv6 addresses.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62669 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62662 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62550 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62549 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
string length
Obtained from: Brain Pane
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62543 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62504 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62448 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62423 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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
|
|
|
|
|
|
|
| |
process locks.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62348 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@62343 13f79535-47bb-0310-9956-ffa450edef68
|