summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* win32: Use INIT_ONCE to prevent loading delayed libraries multiple times.Ivan Zhakov2019-05-181-16/+29
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859477 13f79535-47bb-0310-9956-ffa450edef68
* Follow-up to r1859473: Fix stupid typo: use *OFFSET instead of OFFSET inIvan Zhakov2019-05-181-1/+1
| | | | | | apr_file_seek() on Windows. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859476 13f79535-47bb-0310-9956-ffa450edef68
* win32: Do not use delay load for GetCompressedFileSize() and SetDllDirectoryW()Ivan Zhakov2019-05-181-29/+0
| | | | | | since there always available on all supported platforms. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859475 13f79535-47bb-0310-9956-ffa450edef68
* The minimum supported Windows OS versions are now Windows 7 / Windows ServerIvan Zhakov2019-05-181-0/+3
| | | | | | | | | 2008 R2. See also: https://lists.apache.org/thread.html/de5af5247324db3e0636a654f2c23d3ff3a94a91f9d35adf5402b927@%3Cdev.apr.apache.org%3E git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859474 13f79535-47bb-0310-9956-ffa450edef68
* win32: Use SetFilePointerEx() instead of SetFilePointer().Ivan Zhakov2019-05-181-26/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859473 13f79535-47bb-0310-9956-ffa450edef68
* win32: Use LoadLibraryW() instead of LoadLibraryA() to late load libraries.Ivan Zhakov2019-05-161-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859405 13f79535-47bb-0310-9956-ffa450edef68
* Refactoring: Combine lateDllName and lateDllHandle arrays to one array ofIvan Zhakov2019-05-161-15/+23
| | | | | | structures. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859404 13f79535-47bb-0310-9956-ffa450edef68
* Fix issue 61109: Use LocalFree() instead of GlobalFree() to free result ofIvan Zhakov2019-05-161-1/+1
| | | | | | CommandLineToArgvW(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859402 13f79535-47bb-0310-9956-ffa450edef68
* * test/testbuckest.c (flatten_match): Fix error message (thanks to gcc warning).Joe Orton2019-05-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859391 13f79535-47bb-0310-9956-ffa450edef68
* win32: Check return value from apr_generate_random_bytes() inIvan Zhakov2019-05-161-2/+8
| | | | | | file_pipe_create(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859356 13f79535-47bb-0310-9956-ffa450edef68
* win32: Fix handle leak apr_shm_create() implementation.Ivan Zhakov2019-05-151-2/+6
| | | | | | | | | * shmem/win32/shm.c (can_create_global_maps): Close thread/process token after checking for privilege. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859270 13f79535-47bb-0310-9956-ffa450edef68
* win32: Use LOAD_LIBRARY_SEARCH_DLL_LOAD_DIR flag for LoadLibraryExW inIvan Zhakov2019-05-151-10/+4
| | | | | | | apr_dso() instead of calling SetDllDirectory(). SetDllDirectory() changes global state and using it may lead to security issues on race conditions. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859265 13f79535-47bb-0310-9956-ffa450edef68
* apr_dir_read: Do not request short file names on Windows 7 and later. ThisIvan Zhakov2019-05-131-1/+15
| | | | | | | significantly improves directory listing performance on volumes with 8.3 filenames enabled (default for system volume). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859174 13f79535-47bb-0310-9956-ffa450edef68
* Use API constant instead of magic number.Ivan Zhakov2019-05-131-1/+1
| | | | | | | | * threadproc/win32/threadpriv.c (apr_threadkey_private_create): Use TLS_OUT_OF_INDEXES instead of hardcoded 0xFFFFFFFF. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859171 13f79535-47bb-0310-9956-ffa450edef68
* Add simple tests for apr_xml_parser_geterror().Ivan Zhakov2019-05-121-0/+51
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859154 13f79535-47bb-0310-9956-ffa450edef68
* Add more XML tests.Ivan Zhakov2019-05-121-0/+34
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859153 13f79535-47bb-0310-9956-ffa450edef68
* Call apr_xml_quote_elem() before apr_xml_to_text() in round-trip XML tests.Ivan Zhakov2019-05-121-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1859152 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