| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
pollcb.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/pollcb-dev@390332 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
pollset, we should trigger a timeout.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/pollcb-dev@390330 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/pollcb-dev@390328 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Currently it only has an EPoll implementation, and the most basic test case possible.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/pollcb-dev@390326 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/pollcb-dev@390325 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Loop on the WaitForSingleObject if it indicated WAIT_ABANDONED,
which occurs when the thread/proc which created the event exits,
and ownership of the event has been transfered.
Always try to CancelIo if the wait has failed.
Ignore the Wait/Cancel results and then always check the completion
status of the original Read. Indicate TIMEUP when appropriate.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388292 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388287 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388285 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
condition where our broken pipe occurs durring the deferred
i/o completion phase.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388282 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
occurance of rv with the boolean result of ReadFile() to increase
the legibility of the success/failure of ReadFile. This requires
us to defer *nbytes assignment to the function's end.
This fix catches additional cases of APR_EOF, as we had not
tested this case from the error handling path. So any deferred
read of zero bytes previously returned 0 bytes APR_SUCCESS
rather than APR_EOF. (This occurs when we wait to discover the
owner of the write end closes it without additional data)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388281 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
of 2^32-1. Protect against this by trusting the error result.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388241 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
(sendto_receivefrom): Bail out if apr_socket_bind fails, as has been
known to happen on solaris if you turn on ipv6.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@387950 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@387777 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@387769 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
* build/apr_hints.m4: Disable kqueue again, it's causing problems with the
socket tests.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@387603 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
a critical section after DeleteCriticalSection() has been
invoked. There is no protection in the lock/unlock kernel
code, so ensure we don't enter the critical section path at
all with deleted mutex, and fail instead by attempting to
wait on a bad handle, resulting in a less drastic failure.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@386780 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
as it seems to work now that we've fixed the bug in our kqueue code.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@386202 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
out that the kqueue filter types are not bitfields, so checking for them
via & EVFILT_READ or & EVFILT_WRITE is inappropriate.
Test Fixes By: Joe Orton
* poll/unix/kqueue.c
(get_kqueue_revent): Use == instead of & when testing for filter types.
* test/testpoll.c
(multi_event_pollset): Handle the fact that we can sometimes get multiple
events for a single socket.
* CHANGES: Note fix.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@386154 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
uncovered bug following the fix to the flush logic.
Man this code is suboptimal...
Forward-port 385640 [whoops, ment to apply this in opposite order]
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@385641 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@385631 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
flush response code upwards to the caller, and note some
mutex-unprotected flushes on win32
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@385626 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
of them will hang the remainder of the test. Better to simply
fail them all, with an extra notice when the error is unusual.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@385594 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
function.
(proc_mutex_posix_tryacquire, proc_mutex_sysv_tryacquire,
proc_mutex_proc_pthread_tryacquire, proc_mutex_fcntl_tryacquire,
proc_mutex_flock_tryacquire): Added functions.
PR: 38758
Submitted by: Chris Darroch <chrisd pearsoncmg.com>
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@385523 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
have most multicast definitions but are missing
IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP
PR: 38922
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@385180 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384943 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384942 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
and fix one last apr_file_flush result ignored (close the file, but return
the failure to flush error.)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384941 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
On Solaris, uuid/uuid.h defined uuid_generate, and itself
includes sys/uuid.h which only defined the uuid_t.
Therefore prefer the broadest uuid.h, followed by uuid/uuid.h,
and only if those fail, fall back on sys/uuid.h which may
contain nothing beyond the sys types of uuid_t entities.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384930 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
the optimizer (detected on Solaris cc 5.8)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384926 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
Darwin.
* test/Makefile.in: Revert r384715 and use LT_NO_INSTALL instead of
hard-coding -no-install.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384750 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
change; add comment.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384722 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
et al we've caused apr to fail in more peculiar ways on more platforms.
In this case, let libtool do exactly what we want, which is to resolve the
build-path flavor of libapr-1.la and test exactly what we've most recently
changed (and, for that matter, to have make check function whatsoever before
the library has been installed.)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384715 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
test; global_pool is guaranteed to be non-NULL, so parent is
guaranteed to be non-NULL here.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384465 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
the appropriate 1.2.x sections.
This commit only moves entries around. It does not add or remove any.
* apr/CHANGES
* apr-util/CHANGES
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@383858 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
* apr/CHANGES: Mention apr_dir_make_recursive() fix in r291339.
Mention apr_file_seek() fix in r326593, r326597.
* apr-util/CHANGES: Mention addition of BDB 4.4 support in r368482.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@383854 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
Do not hardcode a specific path to etags, use ETAGS envvar, or search PATH.
Update URL to "Exuberant ctags" project home.
PR: 22615
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382752 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382552 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
for uuid_create and test the result value for uuid_s_ok. This matches
the configure.in tests, and is therefore safe to assume it -does- build
correctly.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382543 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
favor uuid_create or uuid_generate if they live in the clib, and perform
a true compile/link test on our suspected success case, disabling the
code if this fails.
More sets of eyes and feedback to dev@apr requested before we backport this
patch to APR 1.2.x
Authored by: wrowe, maxb
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382541 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
should be documented, not changed, until APR 2.0 is released.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382540 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
to address if a basepath existed to compare the results to.
Also reverts my attempt 382043 to fix the flaw.
Any further 'features' to support alternate constructs of
NOTABOVEROOT tested base and add paths must be brought up
on list for discussion.
PR: 38801
Reported by: <kevin_wise motorola.com>
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382095 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
both test cases. Passes the testnames suite.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382043 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
non-Win32.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382033 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.in: Use APR_CHECK_PTHREAD_ROBUST_SHARED_MUTEX instead of
just checking for pthread_mutexattr_setrobust_np.
* build/apr_threads.m4 (APR_CHECK_PTHREAD_ROBUST_SHARED_MUTEX): Add
macro.
* unix/proc_mutex.c (proc_mutex_proc_pthread_create): Use
HAVE_PTHREAD_MUTEX_ROBUST instead of the heuristic test.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382030 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382029 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
for backport. We bucket the bytecount results from ReadFile and
GetOverlappedResult into a true DWORD buffer, and then pass that
value across to the apr_size_t *nbytes argument, which on Win64
is a quadword. Please vote for correctness.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@381936 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
/EHsc has always meant the same thing. However, I'm reverting this
to /GX for VC 5.0 (if anyone still uses it) when invoking the
build/cvtdsp.pl -5 command to convert these projects to Visual 5.0.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@381915 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@381874 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
so pre-prettify the code to match conventional style.
No effective change.
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@381788 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_POSIX_THREAD_PRIO_INHERIT makes pthread_mutexattr_setrobust_np
available; the former is a POSIX feature test macro and is defined (or
not) by unistd.h, not the application.
* locks/unix/proc_mutex.c (proc_mutex_proc_pthread_create): Make
explicit the assumption that robust mutexes are only used if priority
inheritance is supported; this prevents use of robust mutexes with
glibc 2.3, which aren't supported for cross-process use.
PR: 38442
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@380120 13f79535-47bb-0310-9956-ffa450edef68
|