summaryrefslogtreecommitdiff
path: root/file_io
Commit message (Collapse)AuthorAgeFilesLines
* 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/1.1.x@209045 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/1.1.x@202350 13f79535-47bb-0310-9956-ffa450edef68
* Update copyright notices for 2005.jorton2005-06-1442-42/+84
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@190596 13f79535-47bb-0310-9956-ffa450edef68
* Clean a typo - was running through emits too quickly yesterday.wrowe2005-03-171-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@157941 13f79535-47bb-0310-9956-ffa450edef68
* No reason for this index to ever be signed, the nvec is alwayswrowe2005-03-171-1/+1
| | | | | | | 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
* backport fix for writev_full from trunk.pquerna2005-03-151-20/+9
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.1.x@157597 13f79535-47bb-0310-9956-ffa450edef68
* Clean up a compiler emit.wrowe2005-01-051-2/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@124255 13f79535-47bb-0310-9956-ffa450edef68
* typo in commentfielding2004-12-111-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@111574 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/unix/readwrite.c: Revert to the original code for apr_file ↵pquerna2004-12-111-15/+16
| | | | | | | | | 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
* Fix a check.dreid2004-12-101-2/+2
| | | | | | | | 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
* Fix style nits. No fucntional changes.pquerna2004-12-052-4/+4
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@109912 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/unix/readwrite.c: Revert back to using apr_file_write, but also leavepquerna2004-12-051-2/+4
| | | | | | | | 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
* * file_io/unix/readwrite.c: use apr_file_write_full() to write all of the ↵pquerna2004-12-051-4/+4
| | | | | | | | | 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
* * file_io/unix/fullrw.c: Add apr_file_writev_full to ensure an iovec is pquerna2004-12-052-0/+36
| | | | | | | | | | | | | | | 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
* * test/testfile.c: Add a test for apr_file_writev().pquerna2004-12-041-2/+11
| | | | | | | * 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
* property cleanupnd2004-11-241-85/+85
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106483 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: Add implementation of apr_dir_make_recursive().bjh2004-11-242-8/+85
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@106404 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/unix/readwrite.c (file_printf_flush): Newjorton2004-11-181-10/+37
| | | | | | | | | | | | | | | 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
* Remove .cvsignore files.jorton2004-11-182-8/+0
| | | | | | | Tipped-of-by: Uwe Zeisberger git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@76269 13f79535-47bb-0310-9956-ffa450edef68
* Avoid casting away "const". No functional change.jorton2004-11-171-2/+2
| | | | | | | | | | * 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
* * file_io/unix/readwrite.c (apr_file_puts): Use apr_file_write_full.jorton2004-11-171-3/+1
| | | | | | | | * 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
* removed the O_EXCL bit from the passed-in flag to allow create then open on ↵clar2004-10-061-1/+1
| | | | | | temp file git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65363 13f79535-47bb-0310-9956-ffa450edef68
* replaced define for DWORD_MAX with APR_DWORD_MAXclar2004-09-281-2/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65354 13f79535-47bb-0310-9956-ffa450edef68
* fix apr_file_dup and apr_file_dup2 win32 implementationsstas2004-09-241-0/+14
| | | | | | | | | | | 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
* Fix obtaining security info on files for NT+. The current implementation worksmturk2004-09-231-0/+2
| | | | | | | 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
* WIN64: first in a series to get Windows IA64 builds clean, this serves pagesake2004-09-223-18/+41
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65340 13f79535-47bb-0310-9956-ffa450edef68
* Improve apr_file_gets() performance on buffered files by not callingjerenkrantz2004-08-021-11/+55
| | | | | | | | | | 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
* Eliminate APR_STATUS_IS_SUCCESS macro.jerenkrantz2004-07-312-4/+4
| | | | | | | Reviewed by (conceptually): Ryan, Greg, Fitz git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65292 13f79535-47bb-0310-9956-ffa450edef68
* Win32: Fix bug in tracking the file pointer in files opened for ↵stoddard2004-07-191-2/+5
| | | | | | overlapped/xthread io git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65283 13f79535-47bb-0310-9956-ffa450edef68
* Simplify excessive copies when the string isn't transformed to upper.wrowe2004-06-281-6/+7
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65224 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/unix/copy.c (apr_file_transfer_contents): Remove redundantjorton2004-05-241-1/+1
| | | | | | | NULL-initializers. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65121 13f79535-47bb-0310-9956-ffa450edef68
* OS/2: In apr_file_info_get(), flush any unwritten buffered data before queryingbjh2004-05-221-1/+10
| | | | | | | | 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
* OS/2: Fix incorrect return of APR_EOF when a 0 length read is requestedbjh2004-05-221-1/+1
| | | | | | | Found while porting subversion. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65109 13f79535-47bb-0310-9956-ffa450edef68
* Fix sign error in apr_file_seek().trawick2004-05-043-3/+3
| | | | | | | | 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
* * include/apr_file_info.h, file_io/unix/fileacc.c (apr_unix_mode2perms,jorton2004-04-211-0/+16
| | | | | | | | | 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
* * include/apr_file_io.h: Add APR_LARGEFILE flag, with warning.jorton2004-03-301-0/+4
| | | | | | | | * 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
* Remove the stat caching from the default NetWare buildbnicholes2004-03-291-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65029 13f79535-47bb-0310-9956-ffa450edef68
* Add LFS support:jorton2004-03-275-20/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Implement apr_file_mktemp() for NetWare to avoid problems with exclusive ↵bnicholes2004-03-171-0/+49
| | | | | | file locking git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@65011 13f79535-47bb-0310-9956-ffa450edef68
* Relicense APR under Apache License, Version 2.0jerenkrantz2004-02-1341-1962/+413
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64904 13f79535-47bb-0310-9956-ffa450edef68
* First whack at switching to a single top-level make. This adds a dependencygstein2004-02-052-60/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Clean up some 32 bit/64 bit type incompatibilities that cause problems when ↵bnicholes2003-12-152-2/+18
| | | | | | 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
* Need to create the pollsets for both ends of the pipebnicholes2003-11-251-0/+2
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64800 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/unix/open.c (apr_os_file_put): Create the pollset.jorton2003-11-251-0/+6
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64798 13f79535-47bb-0310-9956-ffa450edef68
* on Unix-ish platforms, apr_wait_for_io_or_timeout() can just use poll(2)trawick2003-11-243-9/+12
| | | | | | | | | | | | | | | | | 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
* OS/2: Include APR_FINFO_LINK in the valid flags by default. As OS/2 doesn'tbjh2003-11-191-1/+1
| | | | | | | | 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
* OS/2: Remove the apr_pollset_t from apr_file_t. File handles can't be polledbjh2003-11-193-19/+0
| | | | | | | 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
* Unix propagates the fname from the apr_file_t to apr_file_info_twrowe2003-11-191-0/+6
| | | | | | | | 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
* There were no 'cont'-named pool objects, simple copy-n-paste bug.wrowe2003-11-171-1/+1
| | | | git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64770 13f79535-47bb-0310-9956-ffa450edef68
* * file_io/unix/filedup.c (file_dup): Renamed from _file_dup - the Cjorton2003-11-171-5/+5
| | | | | | | | 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