summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Tagging apr-1.6.31.6.3wrowe2017-10-180-0/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/tags/1.6.3@1812527 13f79535-47bb-0310-9956-ffa450edef68
* Minor STATUS housekeeping, prepare to tagwrowe2017-10-182-3/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1812525 13f79535-47bb-0310-9956-ffa450edef68
* Also affects clang 5 (and maybe older versions too)jim2017-10-031-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1811002 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1810452wrowe2017-10-021-1/+1
| | | | | | | | | | Macro doesn't exit here Mirrors backport r1810453 to 1.7.x git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1810569 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1810450 from trunk:jim2017-10-021-0/+5
| | | | | | | | | Get maint mode working again w/ macOS Xcode 9 (clang-900) Reviewed by: jim git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1810451 13f79535-47bb-0310-9956-ffa450edef68
* Fix regex syntaxwrowe2017-09-271-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1809855 13f79535-47bb-0310-9956-ffa450edef68
* Added little but causes silly deltaswrowe2017-09-271-4/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1809852 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1809753 from trunk:ylavic2017-09-261-1/+1
| | | | | | | | | | | pipe: fix apr_file_pipe_create_ex()'s blocking parameter forwarding. Proposed by: Steven Nairn <steven.nairn gmail.com> Reviewed by: ylavic git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1809754 13f79535-47bb-0310-9956-ffa450edef68
* Update config.guess and config.sub fromrjung2017-09-252-50/+32
| | | | | | | | | | http://git.savannah.gnu.org/cgit/config.git. Backport of r1809649 from trunk resp. r1809650 from 1.7.x. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1809651 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1808836 from trunk:jorton2017-09-191-1/+1
| | | | | | | | | * test/testipsub.c (test_bad_input): Fix test in r1808832 to match failure code. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1808838 13f79535-47bb-0310-9956-ffa450edef68
* Merge 1683521 from trunk:jorton2017-09-111-11/+3
| | | | | | | | | * network_io/unix/sockaddr.c (apr_parse_addr_port): Simplify to use apr_pstrmemdup, no functional change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1808043 13f79535-47bb-0310-9956-ffa450edef68
* Merge 1808039 from trunk:jorton2017-09-113-0/+8
| | | | | | | | | | | | * network_io/unix/sockaddr.c (looks_like_ip): Fail for the empty string. * test/testipsub.c: Test that calling apr_ipsubnet_create with the empty string fails. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1808042 13f79535-47bb-0310-9956-ffa450edef68
* Merge 1805380 from trunk:jorton2017-09-119-39/+39
| | | | | | | | | | * include/arch/unix/apr_arch_poll_private.h, poll/unix/poll/*.c: Constify all apr_pollcb_provider_t and apr_pollset_provider_t structures. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1808041 13f79535-47bb-0310-9956-ffa450edef68
* Bounds-check human-readable date fields (credit: Stefan Sperling)niq2017-09-102-0/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1807976 13f79535-47bb-0310-9956-ffa450edef68
* add testsjim2017-06-301-1/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1800466 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1788929 from trunk:jim2017-06-304-4/+293
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix two issues with apr_file_trunc() for buffered files: - The Win32 implementation incorrectly flushes the buffered writes _after_ truncating a file. Such files will have unexpected data written after the position at which they should've been truncated. PR 51017. (Under Unix, this issue has been fixed in r1044440) - Both Win32 and Unix implementations incorrectly keep the data read into a buffer after the file is truncated. Thus, reading from a file after apr_file_trunc() can return invalid data from the previous file offset. * file_io/win32/seek.c (apr_file_trunc): Flush the write buffer or discard the read buffer before truncating. Propely update the internal file offset (filePtr) and the eof_hit marker. * file_io/unix/seek.c (apr_file_trunc): Discard the read buffer before truncating. * test/testfile.c (test_file_trunc): Extend the checks. Factor out part of this test... (test_file_trunc_buffered_write): ...into this new test. (test_file_trunc_buffered_write2, test_file_trunc_buffered_read): New tests. (testfile): Run the new tests. Patch by: Evgeny Kotkov <evgeny.kotkov {at} visualsvn.com> Submitted by: ivan Reviewed by: jim git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1800458 13f79535-47bb-0310-9956-ffa450edef68
* Rather than fetch-me-a-rock, report all tool check results forwrowe2017-06-091-37/+41
| | | | | | | | | | all the tools on any attempt, then fail if any of the tools are missing/old. Backports: r1798105 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1798210 13f79535-47bb-0310-9956-ffa450edef68
* Fill in the blanks...wrowe2017-06-091-0/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1798209 13f79535-47bb-0310-9956-ffa450edef68
* And we are on 1.6.3-devwrowe2017-06-092-2/+3
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1798208 13f79535-47bb-0310-9956-ffa450edef68
* Prepare for 1.6.2 tagwrowe2017-06-091-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1798205 13f79535-47bb-0310-9956-ffa450edef68
* Harmonize lock file commentary with future release planswrowe2017-06-091-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1798201 13f79535-47bb-0310-9956-ffa450edef68
* Update release statuseswrowe2017-06-091-3/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1798199 13f79535-47bb-0310-9956-ffa450edef68
* Attribution not necessarywrowe2017-06-091-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1798173 13f79535-47bb-0310-9956-ffa450edef68
* Revert to 1.5.x apr_os_proc_mutex_get() behavior on Netware with an additionalwrowe2017-06-021-8/+4
| | | | | | | | | guard against dereferencing a NULL pointer. The assignment appears to be a noop but avoiding changes in this logic from 1.5.x -> 1.6.x is the primary goal. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1797413 13f79535-47bb-0310-9956-ffa450edef68
* Typo caught by Yann, thanks!wrowe2017-06-011-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1797297 13f79535-47bb-0310-9956-ffa450edef68
* Partially revert 1738806 (r1733775, r1738791 from trunk), preservewrowe2017-06-015-17/+24
| | | | | | | | | apr_os_proc_mutex_get_ex|_put_ex, but fall back to the supported APR_LOCK_DEFAULT git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1797267 13f79535-47bb-0310-9956-ffa450edef68
* Post-tagniq2017-05-312-2/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1797056 13f79535-47bb-0310-9956-ffa450edef68
* Pre-tagniq2017-05-312-1/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1797053 13f79535-47bb-0310-9956-ffa450edef68
* Build: export build files find_apr.m4 and apr_common.m4niq2017-05-312-0/+5
| | | | | | | Patch by Jacob Champion git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1797051 13f79535-47bb-0310-9956-ffa450edef68
* Merge 1775071 from 1.5.x branch (r1775069 from trunk)wrowe2017-05-241-21/+21
| | | | | | | | | | proc_mutex_pthread: simplify (shorten) methods' names by removing the second/double proc_ (consistently with other mechanisms). Resolves earlier TODO from r1795957 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1796073 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1733684 (r930508, r1667900, r1667901, r1667903, r1667962, r1669077, ↵wrowe2017-05-2430-1312/+137
| | | | | | | | | | | | r1671292, r1732582 from trunk), was; locks: introduce apr_{thread,proc,global}_mutex_timedlock(). (and many many more commit log entries, see r1733684 for details) git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1796072 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790047 (r1790045 from trunk), waswrowe2017-05-242-9/+6
| | | | | | | | | Follow up to r1667900: don't fail test{proc,global}mutex if APR_LOCK_DEFAULT_TIMED is not implemented (e.g. MacOS). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1796071 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1792956, 1792964, 1792962 (r1792961, r1792963 on trunk), was;wrowe2017-05-242-9/+0
| | | | | | | | | | | | | | pthread_mutex_timedlock is broken on Solaris 10. It can block without timeout in case of EDEADLK. On Solaris 8 it does not exist, on Solaris 11 it is fixed. For Solaris 10 no patch is available. Silence compiler warning "defined but not used" git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1796066 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1761280 (r1761279 from trunk), was;wrowe2017-05-233-4/+4
| | | | | | | | locks/netware: follow up to r1667962 and r1667900: fix typos (compile errors). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795959 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1775072 (r1775069 from trunk), wrowe2017-05-231-26/+27
| | | | | | | | | | | | CRITICAL TODO: once unwound, apply r1775071 for the same fix sans timedlock Was; proc_mutex_pthread: simplify (shorten) methods' names by removing the second/double proc_ (consistently with other mechanisms). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795957 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1778111 (r1774973 from trunk); waswrowe2017-05-231-4/+0
| | | | | | | | | | Not all pthread implementations have mutex_timedlock(), like Solaris 8, so proc_mutex_proc_pthread_timedacquire() can return APR_ENOTIMPL. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795956 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1790105;wrowe2017-05-234-83/+70
| | | | | | | | | Add in our own pthread_mutex_timedlock impl for those OSs, like osx/macos that don't have it. Be a bit more generous in the test git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795952 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790112 (r1790111 on trunk)wrowe2017-05-231-4/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795951 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790159, 1790156, 1790155wrowe2017-05-233-193/+59
| | | | | | | | | | | | userland change... the timedacquire stuff format onlt and the rest of the timedacquires git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795949 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790301; waswrowe2017-05-231-4/+22
| | | | | | | | semtimedop() takes a delta time, so accept what is given as the "time remaining" git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795947 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790305;wrowe2017-05-231-1/+1
| | | | | | | | Make clear this is a delta timeout git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795946 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790474 (r1790296, r1790302, r1790303, r1790304, r1790330, r1790331, ↵wrowe2017-05-235-470/+301
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | r1790436, r1790439, r1790444, r1790446 from trunk), was: Follow up to r1667900: semtimedop() should be passed a relative timeout rather then absolute. semtimedop() takes a delta time, so accept what is given as the "time remaining" rr1790301 Use our "portable" versions Make clear this is a delta timeout locks: when pthread_mutex_timedlock() isn't available, fall back to an implementation based on pthread_cond_timedwait() when possible. Avoid a compiler warning by using system's errno. locks: follow up to r1790330. When no native timedlock is available, fall back to a common/generic spin sleep proc_mutex_spinsleep_timedacquire() based on the configured APR_USE_*_SERIALIZE trylock. Otherwise, choose the best timedlock mechanism in the following order: 1. PTHREAD if HAVE_PTHREAD_MUTEX_ROBUST && (HAVE_PTHREAD_MUTEX_TIMEDLOCK || HAVE_PTHREAD_CONDATTR_SETPSHARED) 2. SYSV if HAVE_SEMTIMEDOP 3. POSIX if HAVE_SEM_TIMEDWAIT 4. The one of APR_USE_*_SERIALIZE, hence possibly non-robust and/or spinning with the same robustness as the underlying apr_proc_mutex_trylock() call. apr_proc_mutex_timedlock() won't return ENOTIMPL anymore. locks: follow up to r1790330 and r1790436. unix/misc.c is not needed anymore since we use apr_proc_mutex_trylock() directly. locks: follow up to r1790330. No functional change, more helpers/macros to help identify struct proc_pthread_mutex_t members. locks: follow up to r1790330. Don't try to access proc_pthread_mutex_t's condvar if the mutex was _put[_ex]() and not _create()d, this is a real pthread_mutex_t. Submitted by: ylavic, jim, jim, jim, ylavic, ylavic, ylavic, ylavic, ylavic, ylavic git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795945 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1791719 (r1791718 from trunk), was;wrowe2017-05-231-9/+5
| | | | | | | | | | | locks: follow up to r1790446. Since proc_pthread_mutex_cond_locked() macro is also used as an lvalue, don't define it as a conditional and put the condition where needed in the code. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795942 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790490 (r1790488 from trunk), was;wrowe2017-05-2318-130/+203
| | | | | | | | | | | | | | locks: follow up to r1667900. Axe the 'absolute' argument of apr_{thread,proc,global}_mutex_timedlock() which was confusing, hence 'timeout' is always relative now. It still makes sense (to me) to handle a negative timeout as INFINITE, a nul one as IMMEDIATE, and a positive one as an upper bound timeout (like most if not all of the underlying system calls...). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795940 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790527 (r1790521, r1790523 from trunk), was;wrowe2017-05-2315-20/+20
| | | | | | | | | | | | | | locks: follow up to r1790488. Make it clear in the type that it's a relative/interval time. locks: follow up to r1790488 and r1790521: likewise for the apr_proc_mutex_unix_lock_methods_t's timedacquired method. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795939 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790570 (r1790569 from trunk), was;wrowe2017-05-232-4/+4
| | | | | | | | locks: follow up to r1790488, r1790521 and r1790523: likewise for the tests. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795938 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1790633 (r1790632 from trunk), was;wrowe2017-05-2312-64/+109
| | | | | | | | | | apr_{thread,proc,global}_timedlock() with negative timeout is now equivalent to apr_{thread,proc,global}_trylock(), i.e. immediate attempt to acquire the lock (but returning APR_TIMEUP if busy). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795937 13f79535-47bb-0310-9956-ffa450edef68
* Revert 1791729 (r1791728 from trunk): Was;wrowe2017-05-231-6/+5
| | | | | | | | | | | locks: follow up to r1790436. Fix proc_mutex_pthread_acquire_ex() for the APR_USE_PROC_PTHREAD_MUTEX_COND case which shouldn't use undefined pthread_cond_timedwait(). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795935 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1791932wrowe2017-05-238-25/+0
| | | | | | | | | | | | | Was: Make timedlocks a configuration option. After first Mac then Solaris biting us, timedlocks look high-risk, so a config option and a corresponding rlease note offer a workaround to any users who get bitten. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795934 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1794259 (r1792621, r1792622, r1792625 from trunk)wrowe2017-05-231-45/+38
| | | | | | | | | | | | | | | | | | | locks: unix: provide a macro helper for a pattern used several times. No functional change. locks: unix: timedlock: better handling of spurious wakeups that may be inherent to some native/OS condvar implementation. locks: unix: follow up to r1792622. Indent block previously preserved (for easier review), no functional change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.6.x@1795933 13f79535-47bb-0310-9956-ffa450edef68