summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* Backport r1871980.Graham Leggett2019-12-263-44/+10
| | | | | | | Use AC_CHECK_SIZEOF, so as to support cross compiling. PR 56053. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1871981 13f79535-47bb-0310-9956-ffa450edef68
* Backport 1865343Graham Leggett2019-08-234-7/+9
| | | | | | | Add --tag=CC to libtool invocations. PR 62640. [Michael Osipov] git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1865793 13f79535-47bb-0310-9956-ffa450edef68
* Add empty stubs for APR pool functions, that areRainer Jung2019-07-172-17/+27
| | | | | | | | | | | | | | only needed when APR_POOL_DEBUG is defined, but can be aor should be called from app code. Providing stubs allows the app code to stay the same when running with or without debugging APR lib (no need for app recompilation). Backport of r1863217 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863234 13f79535-47bb-0310-9956-ffa450edef68
* No functional change, only formatting.Rainer Jung2019-07-171-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863215 13f79535-47bb-0310-9956-ffa450edef68
* Update config.guess and config.sub fromRainer Jung2019-07-172-62/+233
| | | | | | | | | https://git.savannah.gnu.org/cgit/config.git. Backport of r1863205 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863206 13f79535-47bb-0310-9956-ffa450edef68
* Register the pool debug log cleanup handler after emitting theRainer Jung2019-07-171-7/+7
| | | | | | | | | | global pool creation event. This ensures that the allocation event from the cleanup registration written after the creation event. Backport of r1675982 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863204 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1675967 (trunk) resp. r1863202 (1.7.x):Rainer Jung2019-07-171-0/+13
| | | | | | | | | | | When pool debugging is enabled, make sure we don't try to emit any debug events after the debug log file handle has been closed. Backport of r1675970 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863203 13f79535-47bb-0310-9956-ffa450edef68
* Fix pool debugging output so that creation events areRainer Jung2019-07-172-14/+17
| | | | | | | | | | always emitted before allocation events and subpool destruction events are emitted on pool clear/destroy for proper accounting. Backport of r1675967 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863202 13f79535-47bb-0310-9956-ffa450edef68
* Expand apr pools debug output with parent information.Rainer Jung2019-07-171-1/+3
| | | | | | | | | | | * memory/unix/apr_pools.c (apr_pool_initialize): Add parent to debug header. (apr_pool_log_event): Add parent to debug output. Backport of r1674566 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863201 13f79535-47bb-0310-9956-ffa450edef68
* Pool debugging fixesRainer Jung2019-07-171-1/+6
| | | | | | | | | | - avoid using a destroyed mutex in apr_pool_clear() - if we create a sub-pool, we don't need to own the pool. Backport of r1481186 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863200 13f79535-47bb-0310-9956-ffa450edef68
* Split apr_pool_check_integrity() into two partsRainer Jung2019-07-171-3/+17
| | | | | | | | | | | Run the pool owner check part only after pre-cleanups have been run, in order to give them a chance to kill of any threads that may still be accessing the pool. Backport of r1460184 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863199 13f79535-47bb-0310-9956-ffa450edef68
* * memory/unix/apr_pools.c (apr_pool_cleanup_register):Rainer Jung2019-07-171-0/+4
| | | | | | | | | | [APR_POOL_DEBUG]: Catch NULL arguments which would lead to strange segfaults later. Backport of r1082177 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863198 13f79535-47bb-0310-9956-ffa450edef68
* Fix some missing doxygen documentation (even if ready to use!)Christophe Jaillet2019-05-041-2/+4
| | | | | | (r1858596 in trunk) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1858604 13f79535-47bb-0310-9956-ffa450edef68
* And branch is at 1.7.1-devWilliam A. Rowe Jr2019-04-013-1/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856762 13f79535-47bb-0310-9956-ffa450edef68
* Prepare to tag 1.7.0William A. Rowe Jr2019-04-012-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856759 13f79535-47bb-0310-9956-ffa450edef68
* Footnote dirread() changeWilliam A. Rowe Jr2019-04-011-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856758 13f79535-47bb-0310-9956-ffa450edef68
* Simplify avoiding the dirread_r deprecated and unwise invocations, by alwaysWilliam A. Rowe Jr2019-04-011-4/+2
| | | | | | | | | | | presuming READDIR_IS_THREAD_SAFE for our purposes. Users can force-override this to gain dirread_r detection again, but it would not be advised in 1.7.0 and later releases. Backport r1856756 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856757 13f79535-47bb-0310-9956-ffa450edef68
* Revert r1789258, r1856189, r1856191 following discussion on list, in favorWilliam A. Rowe Jr2019-04-012-28/+4
| | | | | | | | | | | | | | | | | of a simpler path of avoiding dirread_r always, by default. This saves us various additional detection logic, and follows advice of library maintainers and our library's behavior, any apparent "thread safety" offered by the _r() flavors of this function were not truly supported by APR's allocation or dirread_r reentrancy of parallel threads attemping to access the same open directory descriptor. Retains r1856192, r1856196 to avoid wasteful allocation in the dirread() case. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856754 13f79535-47bb-0310-9956-ffa450edef68
* Housekeeping of old newsWilliam A. Rowe Jr2019-04-011-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856750 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1789258, r1856189, r1856191, r1856192, r1856196 from trunk:Yann Ylavic2019-03-262-13/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | apr_dir_read: Since readdir() is now thread safe on most (if not all) unixes and readdir_r() is defective and deprecated, use the former by default unless APR_USE_READDIR_R is defined (no use case currently hence not autoconfigured). Follow up to r1789258: configure to detect whether readdir() is thread-safe. On platforms where readdir_r() is available but deprecated, readdir() is to be used although it's not in libc_r (e.g. Linux has no libc_r). In this case we can APR_TRY_COMPILE_NO_WARNING readdir_r() and, if it's deprecated, define READDIR_IS_THREAD_SAFE. With this we don't need user-defined APR_USE_READDIR{,64}_R from r1789258. Follow up to r1856189: sys/types.h possibly needed. Follow up to r1856189: use NAME_MAX from limits.h when available. apr_dir: no need to allocate our dir entry if readdir{,64}_r() is not used. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856274 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1856096, r1856178 from trunk:Yann Ylavic2019-03-261-273/+72
| | | | | | | | | | testencode: fix compilation on VS. testencode: better fix compilation on VS. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856271 13f79535-47bb-0310-9956-ffa450edef68
* remove my temporary checkall bypassGregg Lewis Smith2019-03-261-2/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856251 13f79535-47bb-0310-9956-ffa450edef68
* freshen up for 1.7.0Gregg Lewis Smith2019-03-268-375/+232
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856249 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1856089 from trunk:Yann Ylavic2019-03-221-5/+10
| | | | | | | | | Pull out caller actions from AC_CACHE_CHECK in APR_CHECK_TYPES_FMT_COMPATIBLE. This allows to print results in the correct order when the function is chained. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856091 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1856063 from trunk:Yann Ylavic2019-03-221-1/+1
| | | | | | | The string conversion to apr_off_t is strtoll when it's a long long. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856064 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1856042, r1856043, r1856046, r1856050 from trunk:Yann Ylavic2019-03-223-25/+62
| | | | | | | | | | | | | | | | | | Use stdint/inttypes 64bit types/formats when both available. Which should be the case on modern platforms, no change for others. Don't mangle Darwin's native [U]INT64_C macros. Define __STDC_FORMAT_MACROS for C++'s inttypes. stdint.h and inttypes.h may include each other so define __STDC macros first. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856052 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1856022 from trunk:Yann Ylavic2019-03-223-7/+62
| | | | | | | | | | | | | | | Use proc mutex pthread by default when robust[_np] On platforms that support pshared and robust pthread mutex, this is usually the best interprocess mutex mechanism because it's efficient, posix, not limited and not persistent on the system when the program exits (i.e. no need to delete it explicitely before leaving, like IPC SysV or files for instance). Note that on older POSIX systems pthread_mutex_{setrobust,consistent}() funcs existed with the non-posix _np() suffix, and we consider them equivalent. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856051 13f79535-47bb-0310-9956-ffa450edef68
* Windows and Netware have a timedlocks implementation.Yann Ylavic2019-03-213-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855962 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1855877 from trunk:Yann Ylavic2019-03-211-1/+1
| | | | | | | | | | | | apr_thread_cond_timedwait on windows should wait on the semaphore. Fix r1792620's bad copy/paste from mutex code. Submitted by: fedormsv gmail.com Reviewed by: ylavic git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855961 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1792620 from trunk:Yann Ylavic2019-03-213-10/+67
| | | | | | | | | locks: Windows: work around 64bit usecs to native 32bit msecs timeouts for apr_{proc,thread}_{mutex,cond}_timed{lock,wait}(), such that the given timeout interval value is not truncated or switched from/to signed/unsigned. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855960 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1794266 from trunk:Yann Ylavic2019-03-212-36/+30
| | | | | | | | locks: thread: timedlock: better handling of spurious wakeups that may be inherent to some native/OS condvar implementation. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855959 13f79535-47bb-0310-9956-ffa450edef68
* Narrow symbolic link detection on NTFSWilliam A. Rowe Jr2019-03-204-15/+97
| | | | | | | | | | | | | | | | | | | Read the WIN32_FIND_DATA::dwReserved0 field to determine whether reparse point is a "name surrogate". It's probably more safe to bind to specifig tags. If provided structure (wininfo) was not resulted from FindFile* call, then additional FindFirstFile call is performed. However this may be unnecessary, because the alternate GetFileInformation call is used in the case of an open file handle, and APR_FINFO_LINK has no meaning when it comes to open files. Submitted by: Oleg Liatte <olegliatte gmail.com> PR: 47630 Backports: r1855949 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855950 13f79535-47bb-0310-9956-ffa450edef68
* User-facing behavior changesWilliam A. Rowe Jr2019-03-201-0/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855941 13f79535-47bb-0310-9956-ffa450edef68
* Fix IPv4-only parsing tests, proposed as git pull req #15 by manusfreedom.William A. Rowe Jr2019-03-191-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855868 13f79535-47bb-0310-9956-ffa450edef68
* Small corrections to if_indextoname resolution on win32, compiles clean. ↵William A. Rowe Jr2019-03-192-3/+3
| | | | | | Backports: r1855864 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855865 13f79535-47bb-0310-9956-ffa450edef68
* Replace the link-time pragma from r1839494 with APR_DECLARE_LATE_DLL_FUNCWilliam A. Rowe Jr2019-03-193-5/+28
| | | | | | | | | | resolution of if_indextoname and if_nametoindex. Backports: r1855855 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855857 13f79535-47bb-0310-9956-ffa450edef68
* Replace generic off_t logic with APR_CHECK_TYPES_FMT_COMPATIBLE,William A. Rowe Jr2019-03-191-11/+18
| | | | | | | | | confirming that the best int type is elected for off_t, even where the bytewidth of multiple int types is identical. Resolves issues around APR_OFF_T_FMT reported on modern BSD compilers. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855844 13f79535-47bb-0310-9956-ffa450edef68
* Deprecate APR_CHECK_TYPES_COMPATIBLE for new APR_CHECK_TYPES_FMT_COMPATIBLEWilliam A. Rowe Jr2019-03-192-7/+36
| | | | | | | | | | macro, testing both type compatibility in a more portable way, and verifying the printf format token for these types. Order of preference of long over int is preserved. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855843 13f79535-47bb-0310-9956-ffa450edef68
* Support canon pre-defined macro (gcc, cc and clang) for macOS which is now ↵Jim Jagielski2019-03-141-0/+7
| | | | | | __APPLE__ git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855559 13f79535-47bb-0310-9956-ffa450edef68
* Silence some leftover noisy trace logicWilliam A. Rowe Jr2019-03-132-2/+4
| | | | | | | | | | Quit redundantly looking up shlibpath_var Backports: 1855443,1855444 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855445 13f79535-47bb-0310-9956-ffa450edef68
* Silence WARNING 'Makefile.in' seems to ignore the --datarootdir settingWilliam A. Rowe Jr2019-03-121-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855348 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1855049 from trunk:Yann Ylavic2019-03-081-0/+7
| | | | | | | | | Follow up to r1854123: add a note about synchronous signals and SIGUSR2. [Follow up to r1854995 in 1.7] git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855050 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1854123 from trunk:Yann Ylavic2019-03-072-6/+2
| | | | | | | | | | Signals: Allow handling of SIGUSR2 in apr_signal_thread. It's not like users have so many free signals to play with, let's increase this number by 100% here, not so bad :) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1854995 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1851542 from trunk:Yann Ylavic2019-03-071-4/+4
| | | | | | | | | atomic: c89/ansi can use native atomics for builtin and solaris No asm volatile is used there, so prefer native over mutexes. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1854994 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1851541 from trunk:Yann Ylavic2019-03-0710-14/+43
| | | | | | | | | | | | | | atomics: follow up to r1841078: provide specific initializer for generic 64bit The can't be two apr_atomic_init(), atomic/mutex64.c shouldn't implement one since generic/mutex implementation may be used by several platforms. So introduce private apr__atomic_generic64_init() and use it where needed. [Follow up to r1841109 in 1.7.x] git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1854993 13f79535-47bb-0310-9956-ffa450edef68
* Update config.guess and config.sub fromRainer Jung2019-01-012-1547/+1517
| | | | | | | | | https://git.savannah.gnu.org/cgit/config.git. Backport of r1850095 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1850096 13f79535-47bb-0310-9956-ffa450edef68
* Happy New Year 2019Rainer Jung2019-01-012-2/+2
| | | | | | | Backport of r1850087 from trunk. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1850089 13f79535-47bb-0310-9956-ffa450edef68
* Fix Python3 compatibility.Branko Čibej2018-11-171-1/+2
| | | | | | | | | | | * build/gen-build.py (extract_deps): Do not assume that source files are only ASCII. This fixes an APR-Util build failure on macOS High Sierra. Backports: r1846806 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1846807 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1534882 from trunk:Joe Orton2018-10-051-1/+0
| | | | | | | | | | | fix some minor bugs and useless assignments so that clang scan-build is a little quieter Submitted by: trawick Reviewed by: jorton git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1842864 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1841078 from trunk:Jim Jagielski2018-09-178-0/+799
| | | | | | | | | Add in Atomics for 64bit ints Reviewed by: jim git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1841109 13f79535-47bb-0310-9956-ffa450edef68