| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1863215 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
[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
|
|
|
|
|
|
| |
(r1858596 in trunk)
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1858604 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856762 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856759 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856758 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856750 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856251 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1856249 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855962 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855941 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855868 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
Backports: r1855864
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855865 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
__APPLE__
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855559 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/1.7.x@1855348 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|