summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Backport r1480067 to v1.5 branch.minfrin2013-05-074-0/+91
| | | | | | | | 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
* Merge r1460179:sf2013-05-031-3/+0
| | | | | | | | | | 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
* Merge r1438958:sf2013-05-031-1/+8
| | | | | | | 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
* Merge r1478905:sf2013-05-031-1/+15
| | | | | | | | | | | | 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
* Update config.guess and config.sub fromrjung2013-04-272-6/+22
| | | | | | | 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
* Merge r1470348:sf2013-04-213-3/+7
| | | | | | | | | | 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
* remove CHANGES entry mistakenly added with r1470189sf2013-04-201-3/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1470190 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1470186:sf2013-04-202-24/+30
| | | | | | | | | | 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
* Merge r925965:sf2013-04-202-84/+84
| | | | | | | 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
* merge r 1462813 from trunktrawick2013-03-302-2/+2
| | | | | | | spelling fix git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462819 13f79535-47bb-0310-9956-ffa450edef68
* Copy the data folder too for testing on NetWare.fuankg2013-03-301-0/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462769 13f79535-47bb-0310-9956-ffa450edef68
* merge r1460405 from trunktrawick2013-03-301-0/+4
| | | | | | | 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
* merge r1460399 from trunktrawick2013-03-301-6/+19
| | | | | | | | | | 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
* merge r1456418 from trunktrawick2013-03-301-2/+1
| | | | | | | remove ignored rv git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1462764 13f79535-47bb-0310-9956-ffa450edef68
* merge r1389077 (minus the apr-util bits) from trunktrawick2013-03-303-5/+5
| | | | | | | 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
* Fix comment in Windows Makefile.rjung2013-03-301-1/+1
| | | | | | | 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
* * Add apr_hash_this_key(), apr_hash_this_key_len(), andrjung2013-03-294-3/+52
| | | | | | | | | | | | | | | | | | | | | | 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
* Fix detection of O_NONBLOCK inheritance.rjung2013-02-251-0/+31
| | | | | | | | | | 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
* Update config.guess and config.sub fromrjung2013-02-062-54/+50
| | | | | | | | | 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
* doc fixsf2012-12-221-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1425357 13f79535-47bb-0310-9956-ffa450edef68
* Merge 1405985 from trunk:jorton2012-12-112-2/+3
| | | | | | | | | | | | * 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
* Merge 1420106,1420109 from trunk:jorton2012-12-112-509/+10
| | | | | | | | | | | | | * 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
* merge r1406690 from trunk:trawick2012-11-071-2/+19
| | | | | | | | | | | | 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
* corresponding roughly to trunk r1405402:trawick2012-11-032-2/+8
| | | | | | | | | 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
* Merge r1400200 from trunk:sf2012-10-191-9/+1
| | | | | | | | | | | 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
* Longer term Darwin/OSX solution... Assume Darwin 1?.*jim2012-09-261-1/+1
| | | | | | | works the same. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1390540 13f79535-47bb-0310-9956-ffa450edef68
* Merge parts of r896382 applicable to apr 1.5.x from trunk:trawick2012-08-144-10/+12
| | | | | | | | | | | 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
* Merge r1372849 from trunk:trawick2012-08-141-6/+13
| | | | | | | | | | 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
* Follow-up to r1372206: EXTRA_CPPFLAGS was duplicatedtrawick2012-08-131-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1372601 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1089129 from trunk:trawick2012-08-122-2/+8
| | | | | | | | | | 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
* Merge r1088023 from trunk:trawick2012-08-125-5/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* merge r1372022 from trunk:trawick2012-08-111-1/+1
| | | | | | | | | | 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
* merge r1372018 from trunk:trawick2012-08-111-3/+3
| | | | | | | | 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
* Note userland change for OSX 10.8jim2012-08-091-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1371193 13f79535-47bb-0310-9956-ffa450edef68
* Update config.guess and config.sub fromrjung2012-08-073-50/+96
| | | | | | | | | 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
* Merge r1368819 from trunk:rpluem2012-08-031-1/+1
| | | | | | | | | * 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
* Merge r1367050 from trunk:rpluem2012-08-031-2/+5
| | | | | | | | | | * 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
* Update for Mountain Lion / OSX 10.8 / Darwin 12.xjim2012-08-011-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1367942 13f79535-47bb-0310-9956-ffa450edef68
* mwccnlm: search directory of referencing file first for #includes.fuankg2012-07-201-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1363624 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1103310, r1341193:sf2012-05-283-55/+95
| | | | | | | | | | | 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
* Merge r1343243:sf2012-05-281-1/+4
| | | | | | | | | 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
* Merge r1343233:sf2012-05-281-2/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Merge r1341196:sf2012-05-281-2/+2
| | | | | | | | | | | | 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
* Merge r1340470:sf2012-05-191-1/+1
| | | | | | | 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
* Merge r1340288:sf2012-05-181-3/+3
| | | | | | | | | 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
* Merge r1340286:sf2012-05-181-1/+7
| | | | | | | | | 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
* Merge r1044447:sf2012-05-061-1/+1
| | | | | | | 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
* Backport fix for apr_mcast_hops returning EINVAL from trunkmturk2012-04-042-10/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.5.x@1309412 13f79535-47bb-0310-9956-ffa450edef68
* Merge r1295535 from trunk:trawick2012-03-012-3/+3
| | | | | | | | | | | | 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
* Backport r1044440 from trunk to 1.5.x.bojan2012-02-061-1/+25
| | | | | | 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