| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/tags/0.9.9@373462 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@373457 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372755 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@372746 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@328997 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@291730 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@291728 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@190597 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
| |
or weak sauce.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@179279 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
|
| |
Submitted by: dlr
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@178706 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@178654 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@165341 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@161503 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
* 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
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x@151423 13f79535-47bb-0310-9956-ffa450edef68
|