| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
Add the apr_table_getm() call, which transparently handles the
merging of keys with multiple values.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1480071 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
fix warning: parameter 'flags' set but not used
(Linux sendfile has no flags, anyway)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1478924 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Only fill in apr_sockaddr_vars_set if we have valid data
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1478918 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
Make sure apr_sockaddr_info_get() returns an error if
- getaddrinfo() returned only useless entries
- getaddrinfo() returned EAI_SYSTEM but errno == 0
- gethostbyname() returns no error but an empty address list
Submitted by: Jan Kaluža <jkaluza redhat com>, Stefan Fritsch
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1478909 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
http://git.savannah.gnu.org/cgit/config.git.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1476535 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
Fix amd64 assembler version of apr_atomic_xchgptr()
PR: 51851
Submitted by: Mattias Engdegård <mattiase acm org>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1470349 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1470190 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
Fix PPC atomics to work with gcc 4.0
PR: 54840
Submitted by: Mattias Engdegård <mattiase acm org>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1470189 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Some folks are ignoring the Tab prohibitions
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1470188 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
spelling fix
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462819 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462769 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
hide an unused variable on Unix
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462768 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
clean up a bit of error handling just to get rid of
sockperf.c: In function 'main':
sockperf.c:206:18: warning: variable 'rv' set but not used [-Wunused-but-set-variable]
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462766 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
remove ignored rv
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462764 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
easy fixes for a few warnings about unused variables
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462758 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Backport of r1462738 from trunk.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462739 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
apr_hash_this_val() for easier access to those attributes from
a hash iterator.
PR: 49065
Submitted by: Hyrum K. Wright <hyrum_wright mail.utexas.edu>
Reviewed by: trawick, wrowe
Backport by: rjung
Backport of r931973 from trunk.
* test/testhash.c (dump_hash): Fix compiler warning due to lack of const.
Submitted by: jorton
Backport by: rjung
Backport of r951771 from trunk.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462461 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
The original test failed occasionally on a busy
FreeBSD server when accept() returned EAGAIN.
Backport of r1449568 from trunk.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1449569 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
http://git.savannah.gnu.org/cgit/config.git.
Merge of r1442903 from trunk.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1442905 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1425357 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
* network_io/unix/sockaddr.c (apr_ipsubnet_test): Fix false positive
when testing a v4 subnet against a v6 address.
* test/testipsub.c (test_interesting_subnets): Add test.
PR: 54047
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1420111 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* random/unix/: Remove unused SHA-384/SHA-512 implementations.
* random/unix/sha2.c (apr__SHA256_Final): Avoid C pointer aliasing
violation.
Submitted by: Jan Kaluza <jkaluza redhat.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1420110 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
apr_socket_accept_filter: Return success when trying to again set the filter
to the same value as before.
Use apr_cpystrn().
PR: 37863 (warning message from Apache httpd during restart)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1406693 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
add apr_socket_accept_filter() notes on the name and args parameters,
which should have been declared as const char *
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1405403 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
Fix Linux 3.x detection
Submitted by: Gilles Espinasse <g esp free fr>
PR: 54001
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1400203 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
works the same.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1390540 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
Fixes various doxygen usage warnings and minor doxygen errors.
Submitted by: Neil Conway <nrc@cs.berkeley.edu>
(These changes were committed to the 1.3.x and 1.4.x branches
long ago with r896406 and r896402.)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1373078 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
Resolve these warnings when linking test programs with the MinGW/MSYS toolchain:
libtool: link: warning: `-no-install' is ignored for i686-pc-mingw32
libtool: link: warning: assuming `-no-fast-install' instead
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372851 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372601 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
MinGW: Resolve paths to test DSOs and executables within the test
suite.
PR: 51021
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372210 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
MinGW/MSYS: Support shared builds of APR, other general improvements
to support of this toolchain.
test/Makefile.in:
* $(LT_LDFLAGS) must be placed after the driver, otherwise it will act exactly
like $(LTFLAGS). This is required, otherwise libtool will be never able to
recognize the "-no-undefined" flag.
* if mod_test.la does not specify $(LOCAL_LIBS), compilation will fail (this is
required by both static and shared builds).
include/apr.h.in:
* It is required to declare APR_DECLARE, APR_DECLARE_NONSTD and
APR_DECLARE_DATA as they are in apr.hw, otherwise the generate DLL won't export
any symbol. APR_MODULE_DECLARE_DATA is already included, but previous ones are
not.
configure.in:
* $(LT_LDFLAGS) must be placed after the driver, as described for
test/Makefile.in.
* Added "-no-undefined" flag to $(LT_LDFLAGS) if the target platform is
Windows.
* Declare APR_DECLARE_EXPORT or APR_DECLARE_STATIC, required by the macro added
in include/apr.h.in.
* Removed the "strange" libraries detection (btw, probably it was also breaking
platforms without __stdcall calling convention, like Windows CE/Mobile/Phone,
since function names were decorated), linker gave error without sense if adding
"-lkernel32", probably because it creates a conflict of library precedence and
dependency.+++
PR: 46175
Submitted by: Carlo Bramini <carlo.bramix libero.it>
(+++This small subset of r1088023 had already been merged with r1091186.)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372206 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
apr_time_exp_*() on Windows: Fix error in the tm_yday field of
apr_time_exp_t for times within leap years.
PR: 53175
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372027 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
fix print_time() to format the month properly, and adjust the tests to
accommodate
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372020 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1371193 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
http://git.savannah.gnu.org/cgit/config.git.
Backport of r1370494 from trunk.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1370498 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
* We only need the pool variable in the debug case.
Submitted by: rpluem
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1368820 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
* Prevent apr_table_mergen from aborting when APR_POOL_DEBUG is set and key or
value are static literals not stored in pool managed memory.
Submitted by: rpluem
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1368813 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1367942 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1363624 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
Add some nonnull and pure attributes
add attribute alloc_size to a few functions
This allows gcc's -D_FORTIFY_SOURCE=2 to do some overflow checks
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1343250 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
Guard against EAI_ADDRFAMILY not being defined, it seems to be glibc
specific
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1343244 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Improve handling of AI_ADDRCONFIG with getaddrinfo()
Using AI_ADDRCONFIG involves some unfortunate guesswork because it does not
consider loopback addresses when trying to determine if IPv4 or IPv6 is
configured (RFC 3493).
This is a problem if one actually wants to listen on or connect to the loopback
address of a protocol family that is not otherwise configured on the system.
Also, some implementations (glibc, cough) behave strangely if no other
addresses besides 127.0.0.1 and ::1 are configured.
A real fix would enhance apr_sockaddr_info_get's interface to allow the caller
to specify if he wants to use the address for listen() or connect(), and if he
wants to make the result dependant on the presence of non-loopback addresses.
Then apr_sockaddr_info_get could pass the right combination of AI_ADDRCONFIG
and AI_PASSIVE to getaddrinfo().
As a workaround, retry getaddrinfo() without AI_ADDRCONFIG in case of
EAI_ADDRFAMILY. This solves the most common problems but not all corner cases.
PR: 52709
Submitted by: Nirgal Vourgère <jmv_deb nirgal com>, Stefan Fritsch
Many thanks also to Aurelien Jarno for helping to debug this.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1343236 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
If we retry getaddrinfo() without AI_ADDRCONFIG, we should really only remove
AI_ADDRCONFIG and not all flags.
When the retry logic was added in r64571, this was equivalent because not
other flags were set. But this has changed since then.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1343234 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Hurd's sendfile works like Linux's
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1340471 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
Update hints for hurd
Submitted by: Pino Toscano <pino debian org>, Stefan Fritsch
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1340291 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
Make mkdir.sh save to use in parallel builds:
Don't fail if a formerly missing directory has been created by another process
in the meantime.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1340289 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
apr_file_trunc(): Don't leave the file locked if flushing fails
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1334722 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1309412 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
Use _WIN64 instead of WIN64 (compiler define vs. SDK define)
in .c/.h. WIN64 wasn't defined, resulting in crashes in
httpd.
PR: 49155
Submitted by: <anindyabaruah gmail.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1295684 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
Fix file_trunc for buffered files. Make sure the write buffer is flushed before truncate call
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1241175 13f79535-47bb-0310-9956-ffa450edef68
|