| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
on AIX and Tru64.
On certain platforms, sigwait() returns EINVAL if any of various
unblockable signals are included in the mask. This was first observed
on AIX and Tru64.
On AIX (4.3.3, at least), sigwait() won't wake up if the high-order bit
of the second word of flags is turned on. sigdelset() returns an error
when trying to turn this off, so we'll turn it off manually.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61326 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) Move sendfile-disable logic to a point after we set the sendfile
shell variable. It was broken before, from Sunday when I moved the
thread configuration to a point earlier in the APR configure
procedure.
2) (!!!!!!!!!DEFINITELY FIXME!!!!!!!)
Work around a problem with APR_FLAG_HEADERS on Tru64 by adding
additional, separate invocations of APR_FLAG_HEADERS() for header
files which were not handled properly.
3) (!!!!!!WOULD BE NICE TO AUTODETECT!!!!!!!)
Work around a problem where the presence of sigwait() isn't detected.
sigwait() is renamed in a system header file, but the normal
autoconf way to detect functions has no provision for including
header files.
Also, some empty lines in the invocation of APR_FLAG_HEADERS were removed.
They had to impact on processing, but they didn't look nice.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61323 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
also cleanup s/#ifdef HAVE_FOO_H/#if APR_HAVE_FOO_H/ whrere appropriate.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61303 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
any platform like this will be able to mimic the signal thread, but for
now this fixes any machine without sigwait.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61296 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
(haven't we been here before?)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61294 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61282 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
a couple of #ifdefs, and standardize some code. This macro comes directly
from the Apache code.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61277 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
We had unresolved references for pthread_sigmask() and sigwait().
These thread support functions aren't appropriate anyway if !APR_HAS_THREADS.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61270 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
apr_sigwait()
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61267 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
thread to handle all signal processing.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61266 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
This file still doesn't compile with Cygwin's pthread.h, but that seems to be
Cygwin's fault.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61261 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61235 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61224 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
identical, but the latter is more portable.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61216 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
*) some other minor include tweaks
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61208 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
can portably get descriptions for them.
*) move signal stuff from apr.h to (new) apr_signal.h
*) os2/signals.c was collapsed into unix/signals.c
*) APR initialization will init the signal names (if needed)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61207 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61195 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
see: http://apr.apache.org/~dougm/apr_rename.pl
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61194 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
To simplify the task, I also shifted the Makefiles to include a rules.mk
(based on APRUTIL's with a few tweaks). Still needs some work to remove the
INCLUDES setup in all the Makefiles (these can be shared).
buildconf now does more work (and generates some output)
aclocal.m4 is based on a number of M4 files, rather than standalone
apr/test/ has been updated but is probably broken in a few ways.
objs/ is now gone. we link directly from the .lo files.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@61037 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
directory. This removes all temptation to include apr_private.h from
outside of APR, because it just isn't available. This also highlighted
a bunch of holes in our header file setup. Basically, just directories
that were never migrated to the curret setup.
Submitted by: Will Rowe and Ryan Bloom
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60919 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
going to change them. It is also quite possible that args are constant
strings (thus, we *definitely* better not change them).
"env" got the same treatment.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60795 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
APR include file.
Implement all exports.c symbols even if the package or function isn't
available in the current configuration.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60748 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60730 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
will not be checked into CVS, as they are added to Makefile when the
user runs "make depend." The exact mechanism for building
dependencies is moved to a script called mkdep.sh in the APR helpers
directory. Folks are free to make the mechanism more general (i.e.,
work on systems without gcc -MM), but for now it still requires gcc
-MM. The patch also removes some commented out variable definitions
and rules.
BeOS- and OS/2-specific makefiles have not been updated. I'll post a
patch to those or go ahead and commit them later, but David and Brian
will get to test them.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60727 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
the include directory. All private header files for APR are being moved.
This allows platforms that only implement some of the APR types to compile
cleanly.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60660 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60608 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
1) cleans up an annoying type that was getting in my way while I was
trying to fix things.
2) Makes some of the allocations pcalloc instead of palloc
3) The arg array passed to create_process is a const *char *, not
const *char [].
PR: 6642
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60599 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
the end of the parameters to execve() was stored in the wrong
location, overlaying the storage beyond the newargs[] array and
also passing uninitialized storage to execve(), which would
sometimes fail with EFAULT.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60532 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60523 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
pthread_key_delete (e.g. OS/390). apr_delete_thread_private is currently
unused. If/when somebody tries to use apr_delete_thread_private on such a
platform, the build will fail and we can deal with the missing OS function then.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60517 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
just the structure or the RLIMIT_* defines. Also, we should make
the API function unixd_set_rlimit() ``available'' even if it
doesn't do anything.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60512 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
see src/lib/apr/apr_compat.h for most details.
Also a few minor nits to get Win32 to build.
PR:
Obtained from:
Submitted by:
Reviewed by:
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60481 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60470 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
Most of the changes added support for PTHREAD_SETS_ERRNO; a few of the
changes fixed bugs in existing code which always used errno (which
doesn't get the right error code on most platforms).
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60460 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
The caller could get APR_ENOTIMPL when the limit was set; the
limit argument could be used for more than what the caller
specified.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60456 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
threadproc/unix. All in the name of removing the lib directory once
and for all.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60441 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60439 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60435 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60426 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
create a new header for those functions. This is the first step to
removing the apr/lib directory completely, and moving those files/functions
to descriptive directories.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60398 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60326 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60325 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60321 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
error." this removes some of the error checking that was occurring in the
"user data" functions. also saw some in the "get/set OS type" functions and
nuked those; there are still checks for pool==NULL, though, since that would
end up making us malloc() rather than segfault'ing.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60318 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60317 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60315 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
This makes APR use #if instead of #ifdef when using an APR macro. Since
APR has stated that it will be using #if always, this is at least a step
in that direction. This also fixes a problem with building MMAP that I
think I introduced yesterday.
Submitted by: Bill Stoddard
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60241 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
should also use that macro internally. This keeps us from checking for
multiple macros as we were doing in the SENDFILE case. It also means that
APR is definately building the same way that external programs expect it to.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60239 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
blocking (previously, both handles were non-blocking).
ap_set_pipe_timeout() is now the only way to manipulate the
blocking state of the pipe. Pass -1 for timeout to make it
blocking; pass 0 for timeout to make it non-blocking.
ap_block_pipe() is gone.
A few minor bugs were fixed along the way.
OS-specific notes:
non-Unix in general:
Only Unix/BeOS currently has the optimization to keep track of the blocking
state. This is used to avoid syscalls as well as to handle ap_put_os_file(),
which is a case where we don't know the blocking state of the handle we are
given.
OS/2:
ap_set_pipe_timeout() with timeout value > 0: The code didn't play with
the blocking state before and it doesn't still. I did add logic for special
timeout values 0 and -1 to play with the blocking state.
ap_create_pipe(): old logic didn't do anything with the blocking state
of the second handle; it still doesn't; hopefully it is blocking
pre-BONE BEOS:
old code to make a pipe non-blocking was a no-op; now it returns
APR_ENOTIMPL
BONE: old code to make a pipe non-blocking; it passed &zero as the
parm to FIONBIO instead of &one; this bug was fixed
Win32:
The pipe was always created blocking before; no change
previously, ap_setprocattr_io() ignored the blocking flag; now it
respects it like other platforms and calls ap_set_pipe_timeout(p,0)
on appropriate pipe handles (Bill Stoddard was just working in
ap_set_pipe_timeout(), so I presume this is golden)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60235 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
This also modifies the ap_detach function to look like unixd_detach.
Finally all calls to unixd_detach are changed to ap_detach.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@60234 13f79535-47bb-0310-9956-ffa450edef68
|