summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | On 'xmllite' branch: Add initial XmlLite based XML parser implementation.Ivan Zhakov2019-05-121-15/+573
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/xmllite@1859151 13f79535-47bb-0310-9956-ffa450edef68
* | On 'xmllite' branch: Add placeholder for XmlLite support.Ivan Zhakov2019-05-113-12/+121
| | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/xmllite@1859122 13f79535-47bb-0310-9956-ffa450edef68
* | Create experimental branch to use XmlLite as library for XML parser on Windows.Ivan Zhakov2019-05-110-0/+0
|/ | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/xmllite@1859121 13f79535-47bb-0310-9956-ffa450edef68
* Add another test for apr_xml_parser.Ivan Zhakov2019-05-111-0/+74
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859117 13f79535-47bb-0310-9956-ffa450edef68
* Use documented GetFileInformationByHandleEx() instead ofIvan Zhakov2019-05-052-37/+3
| | | | | | | | | | | | | ZwQueryInformationFile() to allocated size of file. * file_io/win32/filestat.c (more_finfo): Use GetFileInformationByHandleEx(FileAllocationInfo). * include/arch/win32/apr_arch_misc.h (IOSB, FSI, apr_winapi_ZwQueryInformationFile): Remove. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858659 13f79535-47bb-0310-9956-ffa450edef68
* Fix some missing doxygen documentation (even if ready to use!)Christophe Jaillet2019-05-041-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858596 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/win32/filestat.cIvan Zhakov2019-04-281-1/+2
| | | | | | | (more_finfo): Reduce scope of local variable. No functional changes. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858338 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/win32/filestat.c: Use IsReparseTagNameSurrogate() macro to test forIvan Zhakov2019-04-281-1/+1
| | | | | | "Name surrogate bit". git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858337 13f79535-47bb-0310-9956-ffa450edef68
* Register test/testjson.c and test/testjose.c in CMake build.Ivan Zhakov2019-04-281-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858336 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1835348: Register json/*.c in CMake build.Ivan Zhakov2019-04-281-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858335 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1839819: Register jose/*.c in CMake build.Ivan Zhakov2019-04-281-0/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858334 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1834371: Register encoding/apr_encode.c and test/testencode.cIvan Zhakov2019-04-281-0/+2
| | | | | | in CMake build. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858333 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1838375: Register util-misc/apr_error.c in CMake build.Ivan Zhakov2019-04-281-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858332 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1841078: Register atomic/win32/apr_atomic64.c in CMake build.Ivan Zhakov2019-04-281-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858331 13f79535-47bb-0310-9956-ffa450edef68
* Add .vs directory to svn:ignore.Ivan Zhakov2019-04-280-0/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1858330 13f79535-47bb-0310-9956-ffa450edef68
* Address some warnings raised by MSVC-32/64.Yann Ylavic2019-04-034-46/+18
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856873 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. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856756 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/trunk@1856755 13f79535-47bb-0310-9956-ffa450edef68
* apr_dir: no need to allocate our dir entry if readdir{,64}_r() is not used.Yann Ylavic2019-03-251-9/+14
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856196 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1856189: use NAME_MAX from limits.h when available.Yann Ylavic2019-03-251-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856192 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1856189: sys/types.h possibly needed.Yann Ylavic2019-03-251-0/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856191 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1789258: configure to detect whether readdir() is thread-safe.Yann Ylavic2019-03-252-4/+24
| | | | | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856189 13f79535-47bb-0310-9956-ffa450edef68
* testencode: better fix compilation on VS.Yann Ylavic2019-03-251-256/+72
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856178 13f79535-47bb-0310-9956-ffa450edef68
* testencode: fix compilation on VS.Yann Ylavic2019-03-221-28/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856096 13f79535-47bb-0310-9956-ffa450edef68
* Pull out caller actions from AC_CACHE_CHECK in APR_CHECK_TYPES_FMT_COMPATIBLE.Yann Ylavic2019-03-221-5/+10
| | | | | | | 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/trunk@1856089 13f79535-47bb-0310-9956-ffa450edef68
* The string conversion to apr_off_t is strtoll when it's a long long.Yann Ylavic2019-03-221-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856063 13f79535-47bb-0310-9956-ffa450edef68
* Purely cosmetic change for list of features following CMake configureWilliam A. Rowe Jr2019-03-221-3/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856057 13f79535-47bb-0310-9956-ffa450edef68
* stdint.h and inttypes.h may include each other so define __STDC macros first.Yann Ylavic2019-03-221-5/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856050 13f79535-47bb-0310-9956-ffa450edef68
* Define __STDC_FORMAT_MACROS for C++'s inttypes.Yann Ylavic2019-03-221-2/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856046 13f79535-47bb-0310-9956-ffa450edef68
* Don't mangle Darwin's native [U]INT64_C macros.Yann Ylavic2019-03-221-10/+10
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856043 13f79535-47bb-0310-9956-ffa450edef68
* Use stdint/inttypes 64bit types/formats when both available.Yann Ylavic2019-03-223-14/+46
| | | | | | | Which should be the case on modern platforms, no change for others. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856042 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/unix/filepath.c (apr_filepath_merge): Fix Coverity warning;Joe Orton2019-03-221-1/+1
| | | | | | | don't copy bogus pointer after apr_filepath_get() error return. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1856030 13f79535-47bb-0310-9956-ffa450edef68
* Use proc mutex pthread by default when robust[_np]Yann Ylavic2019-03-223-7/+62
| | | | | | | | | | | | | 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/trunk@1856022 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> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855949 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/trunk@1855940 13f79535-47bb-0310-9956-ffa450edef68
* apr_thread_cond_timedwait on windows should wait on the semaphore.Yann Ylavic2019-03-201-1/+1
| | | | | | | | | | 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/trunk@1855877 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/trunk@1855867 13f79535-47bb-0310-9956-ffa450edef68
* Small corrections to if_indextoname resolution on win32, compiles cleanWilliam A. Rowe Jr2019-03-192-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855864 13f79535-47bb-0310-9956-ffa450edef68
* Replace the link-time pragma from r1839494 with APR_DECLARE_LATE_DLL_FUNC William A. Rowe Jr2019-03-193-5/+28
| | | | | | | | resolution of if_indextoname and if_nametoindex. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855855 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/trunk@1855840 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. (Defers off_t fixes for the subsequent patch.) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855839 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/trunk@1855558 13f79535-47bb-0310-9956-ffa450edef68
* Quit redundantly looking up shlibpath_varWilliam A. Rowe Jr2019-03-131-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855444 13f79535-47bb-0310-9956-ffa450edef68
* Silence some leftover noisy trace logicWilliam A. Rowe Jr2019-03-131-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855443 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/trunk@1855347 13f79535-47bb-0310-9956-ffa450edef68
* Follow up to r1854123: add a note about synchronous signals and SIGUSR2.Yann Ylavic2019-03-081-0/+7
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1855049 13f79535-47bb-0310-9956-ffa450edef68
* Signals: Allow handling of SIGUSR2 in apr_signal_thread.Yann Ylavic2019-02-222-6/+2
| | | | | | | | 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/trunk@1854123 13f79535-47bb-0310-9956-ffa450edef68
* atomic: c89/ansi can use native atomics for builtin and solarisYann Ylavic2019-01-171-4/+4
| | | | | | | No asm volatile is used there, so prefer native over mutexes. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1851542 13f79535-47bb-0310-9956-ffa450edef68
* atomics: follow up to r1841078: provide specific initializer for generic 64bitYann Ylavic2019-01-1710-14/+43
| | | | | | | | | | 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. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1851541 13f79535-47bb-0310-9956-ffa450edef68
* jose: declare local functions as static.Yann Ylavic2019-01-171-0/+13
| | | | | | | | | | | Are those oversights in "apr_jose.h" from r1839819? For now, avoid: warning: no previous prototype for ‘...’ [-Wmissing-prototypes] declaring them static. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1851530 13f79535-47bb-0310-9956-ffa450edef68