You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by jo...@apache.org on 2004/05/13 22:38:22 UTC
cvs commit: apr/file_io/unix copy.c
jorton 2004/05/13 13:38:22
Modified: file_io/unix Tag: APR_0_9_BRANCH copy.c
Log:
* file_io/unix/copy.c (apr_file_transfer_contents, apr_file_copy,
apr_file_append): Pass APR_LARGEFILE when opening source and
destination files.
Revision Changes Path
No revision
No revision
1.7.2.2 +6 -3 apr/file_io/unix/copy.c
Index: copy.c
===================================================================
RCS file: /home/cvs/apr/file_io/unix/copy.c,v
retrieving revision 1.7.2.1
retrieving revision 1.7.2.2
diff -d -u -r1.7.2.1 -r1.7.2.2
--- copy.c 13 Feb 2004 09:33:43 -0000 1.7.2.1
+++ copy.c 13 May 2004 20:38:22 -0000 1.7.2.2
@@ -28,7 +28,8 @@
apr_fileperms_t perms;
/* Open source file. */
- status = apr_file_open(&s, from_path, APR_READ, APR_OS_DEFAULT, pool);
+ status = apr_file_open(&s, from_path, APR_READ | APR_LARGEFILE,
+ APR_OS_DEFAULT, pool);
if (status)
return status;
@@ -94,7 +95,8 @@
apr_pool_t *pool)
{
return apr_file_transfer_contents(from_path, to_path,
- (APR_WRITE | APR_CREATE | APR_TRUNCATE),
+ (APR_WRITE | APR_CREATE | APR_TRUNCATE
+ | APR_LARGEFILE),
perms,
pool);
}
@@ -105,7 +107,8 @@
apr_pool_t *pool)
{
return apr_file_transfer_contents(from_path, to_path,
- (APR_WRITE | APR_CREATE | APR_APPEND),
+ (APR_WRITE | APR_CREATE | APR_APPEND
+ | APR_LARGEFILE),
perms,
pool);
}