summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* CHANGES: Fix typo.Ivan Zhakov2023-02-061-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1907467 13f79535-47bb-0310-9956-ffa450edef68
* Call apr__atomic_generic64_init() if neededStefan Fritsch2023-02-051-0/+4
| | | | | | | | | | | | | | | | | | | Otherwise we get a segfault. Seen on Debian on powerpc with /* Define if compiler provides 32bit atomic builtins */ #define HAVE_ATOMIC_BUILTINS 1 /* Define if compiler provides 64bit atomic builtins */ /* #undef HAVE_ATOMIC_BUILTINS64 */ /* Define if compiler provides 32bit __atomic builtins */ #define HAVE__ATOMIC_BUILTINS 1 /* Define if compiler provides 64bit __atomic builtins */ /* #undef HAVE__ATOMIC_BUILTINS64 */ /* Define if use of generic atomics is requested */ /* #undef USE_ATOMICS_GENERIC */ git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1907442 13f79535-47bb-0310-9956-ffa450edef68
* Try to use 64 bit __atomic builtins only when they are available.Stefan Fritsch2023-02-051-8/+8
| | | | | | | | | | | | | | | | | | | | Otherwise we get link errors. Seen on Debian on armel and this configure result: /* Define if compiler provides 32bit atomic builtins */ #define HAVE_ATOMIC_BUILTINS 1 /* Define if compiler provides 64bit atomic builtins */ #define HAVE_ATOMIC_BUILTINS64 1 /* Define if compiler provides 32bit __atomic builtins */ #define HAVE__ATOMIC_BUILTINS 1 /* Define if compiler provides 64bit __atomic builtins */ /* #undef HAVE__ATOMIC_BUILTINS64 */ /* Define if use of generic atomics is requested */ /* #undef USE_ATOMICS_GENERIC */ git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1907441 13f79535-47bb-0310-9956-ffa450edef68
* Disable Travis since ASF support/sponsorship is ending. [skip ci]Joe Orton2023-02-031-87/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1907243 13f79535-47bb-0310-9956-ffa450edef68
* * memcache/apr_memcache.c (conn_connect): Allow use of IPv6Joe Orton2023-02-031-4/+4
| | | | | | | | | | rather than forcing name resolution to IPv4 only. Submitted by: Lubos Uhliarik <luhliari redhat.com> Github: closes #39 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1907242 13f79535-47bb-0310-9956-ffa450edef68
* * shmem/unix/shm.c (apr_shm_open):Joe Orton2023-01-231-14/+11
| | | | | | | | | | | | Use ftruncate() directly for the shm_open() path avoiding unnecessary complexity - and lseek() - of using apr_file_t wrapper. Also catch mmap() errors. PR: 66435 Github: closes #38 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906947 13f79535-47bb-0310-9956-ffa450edef68
* * configure.in: Fix variable-length-array detection for recent gccJoe Orton2023-01-231-1/+2
| | | | | | | | | | | with -Wall in CFLAGS, avoiding the "set but not used" warning: conftest.c: In function 'main': conftest.c:197:9: error: variable 'foo' set but not used [-Werror=unused-but-set-variable] 197 | int foo[argc]; git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906946 13f79535-47bb-0310-9956-ffa450edef68
* Improve comment.Ivan Zhakov2023-01-231-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906943 13f79535-47bb-0310-9956-ffa450edef68
* Merge thread-name branch (PR 60587) [1]:Ivan Zhakov2023-01-2110-0/+256
|\ | | | | | | | | | | | | | | | | * Introduce apr_thread_name_set() and apr_thread_name_get(). [1] https://bz.apache.org/bugzilla/show_bug.cgi?id=60587 [2] https://lists.apache.org/thread/z24logzc6v8tc0p2q3375cc10qo9y5yw git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906889 13f79535-47bb-0310-9956-ffa450edef68
| * On 'thread-name' branch: Merge changes from trunk.thread-nameIvan Zhakov2022-06-298-111/+134
| |\ | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/thread-name@1902353 13f79535-47bb-0310-9956-ffa450edef68
| * | On 'thread-name' branch: Check pthread_setname_np()/pthread_getname_np()Ivan Zhakov2022-06-291-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | support. * threadproc/unix/thread.c (apr_thread_name_set, apr_thread_name_get): Return APR_ENOTIMPL if not HAVE_PTHREAD_SETNAME_NP. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/thread-name@1902352 13f79535-47bb-0310-9956-ffa450edef68
| * | crude check for pthread_setname_npEric Covener2022-06-282-0/+25
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/thread-name@1902326 13f79535-47bb-0310-9956-ffa450edef68
| * | On 'thread-name' branch: Add apr_thread_name_get() and apr_thread_name_set()Ivan Zhakov2022-06-278-0/+223
| | | | | | | | | | | | | | | | | | API to get/set thread name. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/thread-name@1902297 13f79535-47bb-0310-9956-ffa450edef68
| * | Branch to added API to get/set thread name. See issue PR 60587.Ivan Zhakov2022-06-270-0/+0
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/branches/thread-name@1902296 13f79535-47bb-0310-9956-ffa450edef68
* | | Follow-up to r1906885.Ivan Zhakov2023-01-211-12/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | * threadproc/win32/proc.c (apr_proc_create): Close redirect pipes only on success to match pre-r1906885 behavior. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906888 13f79535-47bb-0310-9956-ffa450edef68
* | | Simplify code.Ivan Zhakov2023-01-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | * threadproc/win32/proc.c (apr_proc_create): Use apr_wchar_t for pEnvBlock local variable and avoid unnecessary casts. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906887 13f79535-47bb-0310-9956-ffa450edef68
* | | Use sizeof(apr_wchar_t) instead of magic 2.Ivan Zhakov2023-01-211-1/+1
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906886 13f79535-47bb-0310-9956-ffa450edef68
* | | Fix potential handle leak when apr_proc_create() is used from from multipleIvan Zhakov2023-01-212-9/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | threads on Windows. * threadproc/win32/proc.c (apr_proc_create): Close our side of pipes before releasing lock: otherwise they could like to other process when apr_proc_create() is used from from multiple threads. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906885 13f79535-47bb-0310-9956-ffa450edef68
* | | .github/workflows: Enable CI builds for tags.Ivan Zhakov2023-01-213-0/+3
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906864 13f79535-47bb-0310-9956-ffa450edef68
* | | apr_proc_create(): Fix incorrect error handling when pipes are redirectedIvan Zhakov2023-01-212-6/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | on Windows. * threadproc/win32/proc.c (apr_proc_create): Save last error immediately after CreateProcessAsUserW()/ CreateProcessW() call, otherwise it can be lost by later calls. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906863 13f79535-47bb-0310-9956-ffa450edef68
* | | force USE_SHMEM_SHMGET on AIXEric Covener2023-01-191-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | prior to r1901037 on trunk, USE_SHMEM_SHMGET is used. APR_USE_SHMEM_MMAP_SHM does not currently work on AIX. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906825 13f79535-47bb-0310-9956-ffa450edef68
* | | bump copyright for 2023Eric Covener2023-01-192-2/+2
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906809 13f79535-47bb-0310-9956-ffa450edef68
* | | Further strict C99 configure fix:Joe Orton2023-01-171-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Avoid an implicit int in the definition of the main function. Avoids build problems with future C compilers which will not support them by default. Submitted by: Florian Weimer <fweimer redhat.com> PR: 66426 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906723 13f79535-47bb-0310-9956-ffa450edef68
* | | testdbd is failing on MacOS, don't fail the job for this.Joe Orton2023-01-111-1/+1
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906597 13f79535-47bb-0310-9956-ffa450edef68
* | | Fix further strict C99 compliance issue. (fixes #37)Joe Orton2023-01-114-5/+28
| | | | | | | | | | | | | | | | | | | | | | | | PR: 66408 Submitted by: Sam James <sam gentoo.org> git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906594 13f79535-47bb-0310-9956-ffa450edef68
* | | Fix configure for compilers which don't accept implicitJoe Orton2023-01-033-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | int (no longer part of C since C99). Submitted by: Florian Weimer <fweimer redhat.com> PR: 66396 git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1906347 13f79535-47bb-0310-9956-ffa450edef68
* | | By default use XmlLite on Windows.Ivan Zhakov2022-11-241-13/+3
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905502 13f79535-47bb-0310-9956-ffa450edef68
* | | * CMakeLists.txt: Make CMAKE_MINIMUM_REQUIRED the first directive asIvan Zhakov2022-11-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | required by CMake documentation [1] [1] https://cmake.org/cmake/help/latest/command/cmake_minimum_required.html git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905493 13f79535-47bb-0310-9956-ffa450edef68
* | | CMakeLists.txt: Enable support for MSVC runtime library selection byIvan Zhakov2022-11-201-0/+6
| | | | | | | | | | | | | | | | | | | | | abstraction if supported by CMake. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905416 13f79535-47bb-0310-9956-ffa450edef68
* | | .editorconfig: Configure C codestyle.Ivan Zhakov2022-11-201-0/+7
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905415 13f79535-47bb-0310-9956-ffa450edef68
* | | Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-20235-2111/+2111
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* | | * .editorconfig: Configure trim_trailing_whitespace = true for all files.Ivan Zhakov2022-11-191-0/+1
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905408 13f79535-47bb-0310-9956-ffa450edef68
* | | Remove trailing whitespaces.Ivan Zhakov2022-11-1980-816/+816
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905407 13f79535-47bb-0310-9956-ffa450edef68
* | | * .editorconfig: Configure insert_final_newline = true for all files.Ivan Zhakov2022-11-191-0/+1
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905393 13f79535-47bb-0310-9956-ffa450edef68
* | | * poll/unix/wakeup.c: Add final newline.Ivan Zhakov2022-11-191-1/+1
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905392 13f79535-47bb-0310-9956-ffa450edef68
* | | Remove a useless variable that is shadowing another already existing one.Christophe Jaillet2022-11-181-1/+0
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905386 13f79535-47bb-0310-9956-ffa450edef68
* | | Revert r1904726: EXTRA_LIBS takes care of -lcrypt already in trunk.Yann Ylavic2022-10-201-2/+1
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1904739 13f79535-47bb-0310-9956-ffa450edef68
* | | Following up on r1904715, rework the check to properly handle anEvgeny Kotkov2022-10-201-7/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | overflow when apr_size_t is 32-bit long. * network_io/win32/sendrecv.c (apr_socket_sendv): As above. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1904734 13f79535-47bb-0310-9956-ffa450edef68
* | | configure: Link to libcrypt (when available) for apr_password_validate.Yann Ylavic2022-10-201-1/+2
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1904726 13f79535-47bb-0310-9956-ffa450edef68
* | | Win32: Stop apr_socket_sendv() from splitting iovecs into multiple possibleEvgeny Kotkov2022-10-201-31/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WSABUFs and error out on theoretical cases that cannot be handled with a single WSASend(). WSASend() returns the NumberOfBytesSent as DWORD, so the previous code that splitted overflowing iovecs never worked, as the total number of sent bytes cannot be properly represented by the API. So let's maintain a 1:1 relationship between the iovecs and WSABUFs, and error out on all inputs that exceed MAXDWORD. * network_io/win32/sendrecv.c (apr_socket_sendv): Remove the code that splits iovecs into WSABUFs. Check the sizes of all iovecs and the total size. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1904715 13f79535-47bb-0310-9956-ffa450edef68
* | | Revert r1902312, r1904699 in preparation for a slightly different change.Evgeny Kotkov2022-10-202-68/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Shortlog: - r1902312: apr_socket_sendv: WIN32: Limit the number of WSABUFs allocated for a single call. - r1904699: apr_socket_sendv: WIN32: Follow up to r1902312: Avoid short writes. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1904714 13f79535-47bb-0310-9956-ffa450edef68
* | | apr_socket_sendv: WIN32: Follow up to r1902312: Avoid short writes.Yann Ylavic2022-10-192-30/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We possibly (edge cases) can't send an entire iovec array in a single WSASend() call because structs WSABUF and iovec are ABI incompatible. To avoid breaking users that rely on full-write by apr_socket_sendv(), which supposedly is guaranteed by WSASend(), repeat the call until the given iovec array is exhausted. There is no way to provide both full-write and atomicity guarantees for apr_socket_sendv() on Windows, so we choose the former.. * include/apr_network_io.h: Document apr_socket_sendv() full-write/atomicity (non-)guarantees above the system ones. * network_io/win32/sendrecv.c(apr_socket_sendv): Change to a loop on WSASend() when needed, taking care of its API limits w.r.t. the given struct iovec. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1904699 13f79535-47bb-0310-9956-ffa450edef68
* | | apr_base64: Follow up to r1902206: Cap to APR_BASE64_ENCODE_MAX in ↵Yann Ylavic2022-10-171-2/+2
| | | | | | | | | | | | | | | | | | apr_pbase64_encode(). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1904666 13f79535-47bb-0310-9956-ffa450edef68
* | | * CMakeLists.txt: Add APR_BUILD_SHARED and APR_BUILD_STATIC options to controlIvan Zhakov2022-09-071-19/+39
| | | | | | | | | | | | | | | | | | | | | which configurations to build. Both are enabled by default. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1903912 13f79535-47bb-0310-9956-ffa450edef68
* | | apr_thread: Provide apr_threadattr_max_free_set().Yann Ylavic2022-07-1411-50/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When creating a thread, this allows to specify the "max_free" of its pool allocator (i.e. apr_allocator_max_free_set), so that one can create thread local subpools and have their memory usage regulated on cleanup/destroy. One could achieve that already with: apr_allocator_max_free_set(apr_thread_pool_get(thread), max_free); in the thread startup function, but it's more convenient, simpler and race free to handle that in the thread attribute itself at creation time. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902715 13f79535-47bb-0310-9956-ffa450edef68
* | | * CMakeLists.txt: Define _CRT_NONSTDC_NO_WARNINGS instead of ignoringIvan Zhakov2022-07-101-2/+1
| | | | | | | | | | | | | | | | | | all deprecations warnings (C4996). git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902629 13f79535-47bb-0310-9956-ffa450edef68
* | | win32: Move warning settings to CMakeLists.txt compile options instead ofIvan Zhakov2022-07-102-13/+7
| | | | | | | | | | | | | | | | | | | | | changing them in include/apr.h: otherwise any application the uses APR gets warning settings from APR. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902628 13f79535-47bb-0310-9956-ffa450edef68
* | | Remove declaration on removed function (status_from_res_error).Ivan Zhakov2022-07-091-2/+0
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902613 13f79535-47bb-0310-9956-ffa450edef68
* | | .editorconfig: Use ident_size = 2 for *.json.Ivan Zhakov2022-07-091-0/+3
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902610 13f79535-47bb-0310-9956-ffa450edef68
* | | * file_io/win32/pipe.c: Use unsigned char instead of char for random buffer.Ivan Zhakov2022-07-091-1/+1
| | | | | | | | | | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902600 13f79535-47bb-0310-9956-ffa450edef68