summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Add a test for a timeout, but with a socket recently read from inside the ↵pollcb-devPaul Querna2006-03-311-0/+28
| | | | | | pollcb. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/pollcb-dev@390332 13f79535-47bb-0310-9956-ffa450edef68
* Add a new timeout testcase, which makes sure that with no sockets inside the ↵Paul Querna2006-03-311-0/+13
| | | | | | 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
* Add a simple Callback testcase, to make sure it kind-of-works. YMMV :)Paul Querna2006-03-311-0/+41
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/pollcb-dev@390328 13f79535-47bb-0310-9956-ffa450edef68
* Add a first revision of the Pollset Callback API.Paul Querna2006-03-313-0/+155
| | | | | | | 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
* Create a development branch for the new apr_pollcb API.Paul Querna2006-03-310-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/pollcb-dev@390325 13f79535-47bb-0310-9956-ffa450edef68
* Part three of the read_with_timeout refactoring.William A. Rowe Jr2006-03-231-29/+35
| | | | | | | | | | | | | | 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
* Fix with additional notes for older PSDK winbase.h headers.William A. Rowe Jr2006-03-231-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388287 13f79535-47bb-0310-9956-ffa450edef68
* Minor typo fix to previous commit.William A. Rowe Jr2006-03-231-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@388285 13f79535-47bb-0310-9956-ffa450edef68
* Part 2 of the necessary read_with_timeout() fixes. Catch theWilliam A. Rowe Jr2006-03-231-1/+1
| | | | | | | 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
* Part 1 of many read_with_timeout logic fixes. Stop polluting oneWilliam A. Rowe Jr2006-03-231-12/+12
| | | | | | | | | | | | | | | | 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
* The original value before seek() certainly could be at the upper boundsWilliam A. Rowe Jr2006-03-231-2/+9
| | | | | | | | 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
* * test/testsockets.cGarrett Rooney2006-03-221-0/+5
| | | | | | | | (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
* Note one of interest to several reporters.William A. Rowe Jr2006-03-221-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@387777 13f79535-47bb-0310-9956-ffa450edef68
* A few more useful things to avoid cr/lf'ingWilliam A. Rowe Jr2006-03-221-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@387769 13f79535-47bb-0310-9956-ffa450edef68
* Mac OS X, why do you hate kqueue so much?Garrett Rooney2006-03-211-11/+4
| | | | | | | | * 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
* Close a kernel layer segfault when the user attempts to lockWilliam A. Rowe Jr2006-03-181-1/+2
| | | | | | | | | | | 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
* * build/apr_hints.m4: Reenable kqueue on current versions of Mac OS X,Garrett Rooney2006-03-151-2/+12
| | | | | | | 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
* Fix a longstanding missunderstanding in our kqueue pollset code. It turnsGarrett Rooney2006-03-153-6/+25
| | | | | | | | | | | | | | | | | | | 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
* Refactor the win32 apr_file_gets logic to close a newly William A. Rowe Jr2006-03-131-8/+7
| | | | | | | | | 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
* Distinguish rc from rv (DWORD v.s. apr_status_t) - a 64bit-ism.William A. Rowe Jr2006-03-131-6/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@385631 13f79535-47bb-0310-9956-ffa450edef68
* Similar to the patches for unix/netware/os - percolate theWilliam A. Rowe Jr2006-03-134-2/+12
| | | | | | | | 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
* There are -so- many reasons this code -could- fail, and anyWilliam A. Rowe Jr2006-03-131-3/+2
| | | | | | | 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
* * locks/unix/proc_mutex.c (proc_mutex_no_tryacquire): RemovedJoe Orton2006-03-132-12/+102
| | | | | | | | | | | | | 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
* fix compile break on systems like AIX 4.3.3 whichJeff Trawick2006-03-111-1/+1
| | | | | | | | | | 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
* Identify a mutex unprotected flush on netwareWilliam A. Rowe Jr2006-03-101-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384943 13f79535-47bb-0310-9956-ffa450edef68
* Identify several mutex-unprotected flushesWilliam A. Rowe Jr2006-03-103-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384942 13f79535-47bb-0310-9956-ffa450edef68
* Identify - one 2Xtransformed error result, several missing mutex sectionsWilliam A. Rowe Jr2006-03-104-2/+8
| | | | | | | | 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
* One more evolution of the uuid header detection code.William A. Rowe Jr2006-03-102-17/+17
| | | | | | | | | | | | 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
* Restyle this code, slightly, to avoid code-not-reached warnings fromWilliam A. Rowe Jr2006-03-101-4/+4
| | | | | | | 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
* * configure.in: Set LT_NO_INSTALL to -no-install on all platforms butJoe Orton2006-03-102-3/+13
| | | | | | | | | | 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
* * memory/unix/apr_pools.c (apr_pool_create_ex): Revert previousJoe Orton2006-03-101-1/+5
| | | | | | | change; add comment. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@384722 13f79535-47bb-0310-9956-ffa450edef68
* Throw away a horrible change; each time we layer on more garbage to libtoolWilliam A. Rowe Jr2006-03-101-3/+3
| | | | | | | | | | | | 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
* * memory/unix/apr_pools.c (apr_pool_create_ex): Remove a redundantJoe Orton2006-03-091-1/+1
| | | | | | | | 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
* On trunk, move CHANGES items that have been backported to 1.2.x down intoMax Oliver Bowsher2006-03-071-33/+33
| | | | | | | | | | | | 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
* Copy CHANGES entries present in 1.2.x but not in trunk into trunk.Max Oliver Bowsher2006-03-071-0/+8
| | | | | | | | | | * 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
* * build/MakeEtags: Convert to be useful for APR and APR-util as well as HTTPD.Max Oliver Bowsher2006-03-031-5/+7
| | | | | | | | | | 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
* Fix a typo caught by maxbWilliam A. Rowe Jr2006-03-021-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382552 13f79535-47bb-0310-9956-ffa450edef68
* The second half of the last commit. Follow the only API we foundWilliam A. Rowe Jr2006-03-021-1/+5
| | | | | | | | | 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
* Address bug 37999 and other exceptions to the existing uuid detection code;William A. Rowe Jr2006-03-022-5/+57
| | | | | | | | | | | | | 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
* After a bit of discussion on list, it seems this flag's behaviorWilliam A. Rowe Jr2006-03-021-1/+5
| | | | | | 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
* Revert 239927 and simplify a much more basic optimizationWilliam A. Rowe Jr2006-03-011-12/+11
| | | | | | | | | | | | | | | 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
* Close bug 38801; add optimization but test the slash delimit forWilliam A. Rowe Jr2006-03-011-9/+10
| | | | | | | 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
* * test/testnames.c (root_from_cwd_and_back): Fix segfault onJoe Orton2006-03-011-1/+1
| | | | | | | non-Win32. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382033 13f79535-47bb-0310-9956-ffa450edef68
* Usse a future-proof configure check for the robust mutex support:Joe Orton2006-03-013-11/+41
| | | | | | | | | | | | | | * 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
* Proveup: Bug 38801 reported by <kevin_wise motorola.com>William A. Rowe Jr2006-03-011-0/+33
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@382029 13f79535-47bb-0310-9956-ffa450edef68
* This patch needs additional pairs of eyeballs before consideringWilliam A. Rowe Jr2006-03-011-5/+10
| | | | | | | | | 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
* Quiet the only warning in apr build on Studio 2005, /GX deprecated.William A. Rowe Jr2006-03-017-12/+24
| | | | | | | | /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
* Undo dangerous, potentially lethal casts.William A. Rowe Jr2006-03-011-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@381874 13f79535-47bb-0310-9956-ffa450edef68
* Several readwrite fixes require this code to become legible,William A. Rowe Jr2006-02-281-14/+19
| | | | | | | | | 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
* * configure.in: Remove bogus check to test whether definingJoe Orton2006-02-232-19/+10
| | | | | | | | | | | | | | | | _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