summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Tag for 0.9.9 tarball creation.0.9.9rooneg2006-01-300-0/+0
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/tags/0.9.9@373462 13f79535-47bb-0310-9956-ffa450edef68
* Rename 0.9.8 to 0.9.9 for new release tarball.rooneg2006-01-302-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@373457 13f79535-47bb-0310-9956-ffa450edef68
* Merge r373453 into 0.9.x, with necessary changes to tests to account forrooneg2006-01-303-2/+55
| | | | | | | | | | | | | | | | | | | | | | | | the old test framework. Original log message: Fix bug #38438, seeks are broken for files opened for append in xthread mode on win32. Submitted by: M Joonas Pihlaja <jpihlaja cc.helsinki.fi> Test by: Garrett Rooney * file_io/win32/seek.c (apr_file_seek): Fix APR_END case of APR_XTHREAD case. * test/testfile.c (test_xthread): New test. (testfile): Run new test. * CHANGES: Note change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@373455 13f79535-47bb-0310-9956-ffa450edef68
* Merge r357641 to the 0.9.x branch, as it's needed to make r355812 compile.rooneg2006-01-301-2/+2
| | | | | | | | | | Original log message: Cast away an emit (we reduced by 10 bits already) and correct a typo in the timeout-on-read patch committed last week. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@373410 13f79535-47bb-0310-9956-ffa450edef68
* Bump for 0.9.8 release.rooneg2006-01-271-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372755 13f79535-47bb-0310-9956-ffa450edef68
* * CHANGES: Prepare for release.rooneg2006-01-271-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372746 13f79535-47bb-0310-9956-ffa450edef68
* Merge r355812 to 0.9.x.rooneg2006-01-262-2/+18
| | | | | | | | | | | | Original log message: Cause apr_file_write_full on win32 to consider the timeout value set by apr_file_pipe_timeout_set. PR 30182 <eholyat olf.com> [also note the last changes are all still tracking to 1.3.0] git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372622 13f79535-47bb-0310-9956-ffa450edef68
* Merge r355792 to 0.9.x.rooneg2006-01-262-1/+5
| | | | | | | | | | | | | | | | | | Original log message: Fix passing "" as an argument to a new program on windows. * threadproc/win32/proc.c (apr_proc_create): Pass empty strings into CreateProcess instead of filtering them out. * CHANGES: Note change. Submitted by: Philip Martin <philip codematters.co.uk> Reviewed by: wrowe, rooneg git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372619 13f79535-47bb-0310-9956-ffa450edef68
* Merge r355790 to 0.9.x.rooneg2006-01-262-0/+5
| | | | | | | | | | | | | | | | | | Original log message: Fix handling of EOF for unbuffered reads on win32. * file_io/win32/readwrite.c (apr_file_read): In the unbuffered case, set thefile->eof_true if we hit EOF. * CHANGES: note Change. Submitted by: Konstantin Sharenkov <Konstantin.Sharenkov at enterra-inc.com> Reviewed by: wrowe, rooneg git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372618 13f79535-47bb-0310-9956-ffa450edef68
* Merge r314856 to 0.9.x.rooneg2006-01-261-16/+31
| | | | | | | | | Original log message: Port r76283, the vformatter logic for unix/readwrite.c to handle arbitrary length strings, to the win32 code; one less test failure. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372616 13f79535-47bb-0310-9956-ffa450edef68
* Merge r371172 to 0.9.x.rooneg2006-01-263-8/+15
| | | | | | | | | | | | | | | | | | | | | | | | Original log message: Fix an assert that occurs when you destroy a rwlock on win32 and later clear the pool it was allocated from. Submitted by: Evgueni Brevnov <evgueni.brevnov gmail.com> * locks/win32/thread_rwlock.c (apr_thread_rwlock_destroy): Use apr_pool_cleanup_run to call our cleanup function. (thread_rwlock_cleanup): Put the destruction of the rwlock here instead of in the destructor function. * test/testlock.c (test_thread_rwlocks): Destroy the rwlock explicitly so we can see this kind of problem. * CHANGES: Note change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372615 13f79535-47bb-0310-9956-ffa450edef68
* Merge r371198 to 0.9.x.rooneg2006-01-262-2/+6
| | | | | | | | | | | | | | | | | | | | Original log message: Keep testpipe.c from hanging on win32. Because of the way win32 pipes work (and I totally don't understand all the details here) we don't get all the same nonblocking semantics on win32 as we do on unix. We do correctly return an error when trying to set timeouts on these kind of pipes though, so look for that and avoid falling into an uninteruptable read later if it happens. * test/testpipe.c (test_write): Don't try to make a nonblocking read if we couldn't set the timeout, it'll just hang. * CHANGES: Note change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372614 13f79535-47bb-0310-9956-ffa450edef68
* Merge r356615 into 0.9.x.rooneg2006-01-263-4/+19
| | | | | | | | | | | | | | | | | | | | Original log message: Clean up the documentation surrounding the APR_INCOMPLETE status code, * include/apr_file_info.h (apr_stat, apr_dir_read): Note that APR_INCOMPLETE can be returned, and that if it is you can use the finfo->valid bitfield to determine which parts of the finfo are filled in. Also break some overly long lines. * include/apr_errno.h (APR_STATUS_IS_INCOMPLETE): Update docs since this is no longer specific to the xlate code. * CHANGES: Note change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372613 13f79535-47bb-0310-9956-ffa450edef68
* Merge r328355 into 0.9.x.rooneg2006-01-261-2/+9
| | | | | | | | | | | Original log message: * memory/unix/apr_pools.c (pool_clear_debug): Scribble over blocks with a poison byte before freeing them to help highlight use-after-free bugs. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372609 13f79535-47bb-0310-9956-ffa450edef68
* The OS/2 send() function returns EINVAL if the data size is > 64k so limit thebjh2006-01-051-0/+4
| | | | | | | | | | | | | send size to 64k. As any call to apr_socket_send() must handle partial sends anyway, this will be treated just like any other partial send. This was occurring when svnserve was sending a large file. Backport from trunk of r366063. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@366065 13f79535-47bb-0310-9956-ffa450edef68
* Platform fix; backport 357636 for 2.2.3 (if ever released)wrowe2005-12-191-0/+16
| | | | | | | | | | to address MS Studio 2005's absurd discard of the POSIX api. [Note, reset twice because we temporarily set, then pop, the warning overrides, and we need this override to 'stick' after it's popped.] git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@357639 13f79535-47bb-0310-9956-ffa450edef68
* Fix a warning when building on FreeBSD due to an error in the argumentsrooneg2005-11-232-2/+3
| | | | | | | | | | | | | | | | passed to sysctlbyname. The fifth argument is a size_t, not a pointer, so using NULL is incorrect. This change is being committed directly to the 0.9.x branch because the version of this code in trunk no longer uses sysctlbyname. * network_io/unix/sendrecv.c (include_hdrs_in_length): Correct 5 argument to sysctlbyname. * CHANGES: Note change. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@348360 13f79535-47bb-0310-9956-ffa450edef68
* Note Releasewrowe2005-10-281-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@328997 13f79535-47bb-0310-9956-ffa450edef68
* merge from trunk:trawick2005-10-221-1/+1
| | | | | | | | apr_tokenize_to_argv(): Stop touching storage after the end of the input string. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@327661 13f79535-47bb-0310-9956-ffa450edef68
* merge from trunk:trawick2005-10-131-0/+1
| | | | | | | | | getnameinfo() may copy the port field around, so initialize it to something to prevent unitialized memory reference warnings with Purify git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@320734 13f79535-47bb-0310-9956-ffa450edef68
* Don't pass NULL to execve() for the environment array,trawick2005-10-101-0/+8
| | | | | | | | | | | resolving a theoretical problem with standards compliance and an actual problem with Purify. Reviewed by: Joe Orton git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@312609 13f79535-47bb-0310-9956-ffa450edef68
* Pick up some fixes from testprocmutex.c; now it works consistentlytrawick2005-10-091-1/+5
| | | | | | | | | on RHAS 3. These changes are apparently not applicable to other branches. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@307438 13f79535-47bb-0310-9956-ffa450edef68
* Bump after tagwrowe2005-09-263-2/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@291730 13f79535-47bb-0310-9956-ffa450edef68
* Bump for 0.9.7 tagwrowe2005-09-262-3/+5
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@291728 13f79535-47bb-0310-9956-ffa450edef68
* Backport the 1.x change to drop awk header parsing, thiswrowe2005-09-262-31/+63
| | | | | | | | | | | ensures that (for the first time) the release dll will be given 0.9.7 revision. The version (built into httpd) used to carry an httpd ver, however it never compiled due to the dev flag bug. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@291722 13f79535-47bb-0310-9956-ffa450edef68
* Merge r291339 from trunk:jorton2005-09-243-0/+32
| | | | | | | | | | * file_io/unix/dir.c (apr_dir_make_recursive): Fix infinite recursion if mkdir fails for all path components. * test/testdir.c (test_rmkdir_nocwd): Add test case. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@291341 13f79535-47bb-0310-9956-ffa450edef68
* Backport the apr_procattr_addrspace_set() API to allow a platform to specify ↵bnicholes2005-09-217-4/+48
| | | | | | | | which address space the process should be started in. Reviewed by: jjclar, bnicholes, trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@290849 13f79535-47bb-0310-9956-ffa450edef68
* Win32: fix apr_proc_mutex_trylock() to handle WAIT_TIMEOUT,wrowe2005-09-212-0/+6
| | | | | | | | | | | | returning APR_EBUSY. Backport: 290766 Submitted by: Ronen Mizrahi <ronen tversity.com> Reviewed by: wrowe, Henry Jen git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@290769 13f79535-47bb-0310-9956-ffa450edef68
* Merge r234013, r239221 from trunk:jorton2005-09-023-2/+86
| | | | | | | | | | | | | | | * file_io/unix/readwrite.c (apr_file_write): Catch apr_file_flush() failure for buffered files. (apr_file_read): Handle the apr_file_flush() return value when flushing buffered writes. * test/testfile.c (test_fail_write_flush, test_fail_read_flush): Add test cases. Submitted by: Erik Huelsmann <ehuels gmail.com>, jorton git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@267192 13f79535-47bb-0310-9956-ffa450edef68
* Merge r219635, r219667, r239390, r239574 from trunk:jorton2005-08-244-18/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | * user/unix/userinfo.c (getpwnam_safe, apr_uid_name_get): Fix error handling; always use the getpwnam_r return value as the error code, and ignore errno, since POSIX does not require that getpwnam_r sets errno. * user/unix/groupinfo.c (apr_gid_name_get, apr_gid_get): Fix error handling as above; and check for the NULL -> "no entry" cases here too. * test/testuser.c (fail_userinfo): Add test cases for error handling (only one of them actually trips on the bugs in the old code with glibc). * user/unix/userinfo.c (getpwnam_safe, apr_uid_name_get): Fix error handling for platforms which do not set errno on non-threadsafe get{pw,gr}* failures; always return APR_ENOENT for that case. * user/unix/groupinfo.c (apr_gid_name_get, apr_gid_get): Likewise. PR: 34053 Submitted by: pquerna, jorton git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@239592 13f79535-47bb-0310-9956-ffa450edef68
* Backport from trunk:trawick2005-08-231-1/+11
| | | | | | | | APR_STATUS_IS_ENOENT(): check for EMVSCATLG on z/OS git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@239401 13f79535-47bb-0310-9956-ffa450edef68
* Refactor Win32 condition variables code to address bugs.wrowe2005-07-223-65/+22
| | | | | | | | | | PR: 27654, 34336 Submitted by: Henry Jen <henryjen ztune.net> and E Holyat <eholyat yahoo.com> Reviewed by: wrowe, stoddard Backport: 224407 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@224408 13f79535-47bb-0310-9956-ffa450edef68
* Bug #33844: OS/2: file opened with APR_CREATE would be truncated if APR_APPENDbjh2005-07-041-6/+4
| | | | | | | | | wasn't also given. Backport from trunk of r180013 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@209047 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Fix crash in apr_proc_create with non-shell type process creation wherebjh2005-07-031-1/+2
| | | | | | | | | | the .exe extension is not given. Was trying to close an apr_file_t that had failed to open, causing a segfault. Backport from trunk of r208879. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@208883 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Using apr_file_rename() to replace one file with another doesn't workbjh2005-06-291-1/+1
| | | | | | | | | | | on some types of network drive as the file system driver returns a different error code when an attempt is made to rename to an existing file name. Allow for this error code, ERROR_ALREADY_EXISTS. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@202353 13f79535-47bb-0310-9956-ffa450edef68
* Update remaining 2004 copyright notices.jorton2005-06-145-5/+10
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@190597 13f79535-47bb-0310-9956-ffa450edef68
* Support APR_SO_SNDBUF and APR_SO_RCVBUF on Windows.trawick2005-06-142-0/+15
| | | | | | | | PR: 32177 Submitted by: Sim <sgobbi datamanagement.it>, Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@190577 13f79535-47bb-0310-9956-ffa450edef68
* send and receive buffer sizes are not flags, and callertrawick2005-06-141-10/+4
| | | | | | | | | | | | | | | may pass different values on different calls; so don't try to optimize this setsockopt() SO_LINGER is an odd one; the real setsockopt provides a configurable value for the timeout; but with APR, this is a flag and the timeout is hardcoded; so the optimization stays for this one Reviewed by: Joe Orton git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@190574 13f79535-47bb-0310-9956-ffa450edef68
* Merge r179786 from trunk:jorton2005-06-031-1/+8
| | | | | | | | | | * build/apr_network.m4 (APR_CHECK_SCTP): Fix check for SCTP. PR: 35021 Submitted by: Lee Begg <llnz paradise.net.nz> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@179789 13f79535-47bb-0310-9956-ffa450edef68
* Disable poll() on all Darwin versions for now, because it is either broken ↵wsanchez2005-05-311-6/+1
| | | | | | or weak sauce. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@179279 13f79535-47bb-0310-9956-ffa450edef68
* Backport r178340 from trunk:wsanchez2005-05-282-8/+11
| | | | | | | | | | | | | | | | network_io/unix/sendrecv.c: Deal with EAGAIN after poll(). Following apr_wait_for_io_or_timeout(), we were doing I/O and not dealing with EAGAIN. It is legal for poll() to indicate that a socket is available for writing and then for write() to fail with EAGAIN if the state of the socket changed in between the poll() and write() calls. This only seems to actually happen on Mac OS 10.4 (Darwin 8). Rather than trying write() only once, if we get an EAGAIN, continue to call apr_wait_for_io_or_timeout() and try writing. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@178842 13f79535-47bb-0310-9956-ffa450edef68
* fix typojwoolley2005-05-261-1/+1
| | | | | | | Submitted by: dlr git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@178706 13f79535-47bb-0310-9956-ffa450edef68
* Backport r178650 from trunk, disable poll only on Mac OS X < 10.4.pquerna2005-05-261-2/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@178654 13f79535-47bb-0310-9956-ffa450edef68
* Merge r178386 from trunk:jorton2005-05-251-0/+2
| | | | | | | | | * build/apr_hints.m4 (APR_PRELOAD): Prevent use of poll() on Darwin. PR: 34332, 29985 git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@178389 13f79535-47bb-0310-9956-ffa450edef68
* Merge r170395 from trunk:jorton2005-05-161-19/+25
| | | | | | | | | | * threadproc/unix/proc.c (apr_procattr_child_in_set, apr_procattr_child_out_set, apr_procattr_child_err_set): Add error checking: fixes segfaults in applications when pipe() or dup2() fail (e.g. due to ulimit settings). git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@170398 13f79535-47bb-0310-9956-ffa450edef68
* Disable some default LibC debugging code when compiling optimizedbnicholes2005-04-292-2/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@165341 13f79535-47bb-0310-9956-ffa450edef68
* Update the link-time copyright statementbnicholes2005-04-151-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@161503 13f79535-47bb-0310-9956-ffa450edef68
* Merge r109326 from trunk:jorton2005-03-041-0/+6
| | | | | | | | * include/apr.h.in: Define __STDC_CONSTANT_MACROS for C++ so that stdint.h exposes the {,U}INT64_C macros. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@156146 13f79535-47bb-0310-9956-ffa450edef68
* Fix detection of rwlocks on Mac OS X.trawick2005-02-212-1/+3
| | | | | | | | Submitted by: Aaron Bannert Reviewed by: Joe Orton, Jeff Trawick git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@154587 13f79535-47bb-0310-9956-ffa450edef68
* Move on to 0.9.7-dev.jerenkrantz2005-02-042-2/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@151423 13f79535-47bb-0310-9956-ffa450edef68