| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
| |
wasn't also given.
Backport from trunk of r180013
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@209045 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/1.1.x@202350 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@190596 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@157941 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
unsigned and no negative value applies.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@157908 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@157597 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@124255 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@111574 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
writev() in the !HAVE_WRITEV case, and a large comment
explaining why we cannot use a better method without breaking writev()'s semantics.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@111571 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Contributed by: Ingo Weinhold <bonefish at cs dot tu-berlin dot de>
Reviewed by: David Reid
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@111508 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@109912 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
the function if tbytes < vec[i].iov_len, as Jeff
Trawick suggested on dev@apr.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@109892 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
data to a file.
On an exceptional error (See apr_file_write_full), we will add the bytes that did get written, and then exit.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@109865 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
completely written to the file.
* include/apr_file_io.h: Define APR_MAX_IOVEC_SIZE
Add public def for apr_file_writev_full.
* file_io/unix/readwrite.c: For systems without writev, ensure that they get
the correct number of bytes written.
* test/*: Add a new test for apr_file_writev_full.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@109843 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
* file_io/unix/readwrite.c: Try to write all iovecs out on platforms without writev.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@109832 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106483 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106404 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
function.
(apr_file_printf): Rewrite to handle arbitrary length
strings.
* test/testfile.c (test_bigfprintf): New function.
PR: 28029
Submitted by: Chris Knight <Christopher.D.Knight nasa.gov>,
Garrett Rooney <rooneg electricjellyfish.net>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76283 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Tipped-of-by: Uwe Zeisberger
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
* apr/file_io/unix/tempdir.c
(test_tempdir): Remove "const" to avoid casting it away.
Submitted by: Julian Foad <julianfoad btopenworld.com>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76118 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
* test/testfile.c (test_puts, file_contents_equal): Test
apr_file_puts.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76115 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
temp file
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65363 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65354 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
| |
to create a mutex
PR:
Obtained from:
Submitted by: Steve Hay <steve.hay uk.radan.com>
Reviewed by: stas
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65350 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
only with directories, but for files we need the READ_CONTROL open flag.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65343 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65340 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
| |
apr_file_read() on each byte if we don't have to.
(mod_negotiation requests call apr_file_gets() for each line in the map file,
which can get to be quite expensive to have repeated memcpy()'s for one byte!)
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65294 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Reviewed by (conceptually): Ryan, Greg, Fitz
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65292 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
overlapped/xthread io
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65283 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65224 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
NULL-initializers.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65121 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
the file's details to ensure the file size is correct. This matches the behaviour
of the unix implementation & make subversion happy.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65111 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
Found while porting subversion.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65109 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
Submitted by: Greg Hudson <ghudson MIT.EDU>
Reviewed by: Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65086 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
| |
apr_unix_perms2mode): Support setuid, setgid and sticky bits.
Submitted by: Andr�� Malo <nd@perlig.de>
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65074 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
* file_io/unix/open.c (apr_file_open): Map APR_LARGEFILE onto
O_LARGEFILE for non-LFS builds.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65032 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65029 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* configure.in: Check for off64_t and necessary LFS functions, define
apr_off_t as off64_t where available. Add --disable-lfs flag.
Forward-port changes from 0.9.5 to define apr_off_t as long on systems
systems with a 32-bit off_t which don't have LFS enabled.
* include/apr.h.in: Let configure define APR_HAS_LARGE_FILES.
* include/arch/netware/apr_arch_file_io.h: Redefine lseek and
ftruncate.
* include/arch/unix/apr_arch_file_io.h: Redefine stat, lstat, fstat,
lseek, ftruncate here; define struct_stat.
* file_io/unix/filestat.c: Use struct_stat.
* file_io/unix/mktemp.c: Use mkstemp64 where available.
* file_io/unix/open.c (apr_file_open): Use O_LARGEFILE by default when
LFS is enabled.
* file_io/unix/readwrite.c, file_io/unix/seek.c: Don't redefine lseek
and ftruncate here.
* mmap/unix/mmap.c (apr_mmap_create): Use mmap64 if available;
otherwise check for overflow when LFS is enabled.
* network_io/unix/sendrecv.c (apr_socket_sendfile) [Linux/HPUX]: Use
sendfile64 if available; otherwise check for overflow when LFS is
enabled. [solaris]: Use sendfilev64/sendfilevec64_t.
* test/Makefile.in, test/test_apr.h, test/testlfs.c: Add tests.
Reviewed by: Jeff Trawick
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65027 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
file locking
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65011 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
upon Python at packaging time, but not at end-user config/build time. As far
as I can tell, the build continues to function properly. (out-of-dir
config/make not tested, and apr-iconv prolly needs some work)
The buildconf scripts now generate a build-outputs.mk file which is included
by the root's Makefile (via the build/gen-build.py script). bulid-outputs.mk
specifies all of the various files present in the distribution.
The top-level Makefiles were simplified to use an $(OBJECTS) symbol rather
than 'find'ing them. Similarly, a $(HEADERS) symbol is used for the exports.
The corresponding delete-* targets were eliminated since we have a precise
set of inputs.
The subdirs' Makefiles were removed since they are no longer called/used.
The apr-util/uri Makefile was responsible for compiling a C program to
generate the uri_delims.h file. That process was replaced by a Python script
to generate the header (called by buildconf). The .c and .dsp were left for
the Windows build to continue, but that should be revamped.
build/apr_rules.mk was revamped somewhat to avoid recursion, but a lot of
cleanup is still needed. Much of the recursive/local/x- logic is no longer
needed and can be elimianated. rules.mk was created for inclusion by N
makefiles, but that isn't really true any more, so it could probably be
tossed (caveat: test/Makefile). Saved for a phase 2.
Some additional work was added to properly clean up files in */build/,
rather than relying on a makefile in there.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64891 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
| |
large file support is enabled. Also turn large file support back on for NetWare
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64838 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64800 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64798 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
it is a perfect match for the feature set needed and avoids the setup
code at object creation time currently required to use apr_pollset_poll()
instead of poll(2)
future:
select()-based function is trivial too
is any platform then left needing the support in
apr/(network_io|file_io)/unix for allocating a pollset any time we
create a file or socket just in case apr_wait_for_io_or_timeout()
will be called?
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64794 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
have sym-links we can be sure the filename isn't one. This keeps the call
to apr_stat() in apr_filepath_merge() happy instead of getting APR_INCOMPLETE.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64775 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
| |
on OS/2 so having it doesn't serve any purpose.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64774 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
on an apr_file_info_get() call. Do the same on Win32, but be
warned that this is informative, and is not a canonical representation.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64771 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
| |
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64770 13f79535-47bb-0310-9956-ffa450edef68
|
|
|
|
|
|
|
|
| |
library reserves identifiers beginning with an undercore. Callers
changed.
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64763 13f79535-47bb-0310-9956-ffa450edef68
|