From df9731f421df4af8b8d92c77099f07aa5d23e36f Mon Sep 17 00:00:00 2001 From: sussman Date: Mon, 7 Jul 2003 22:44:11 +0000 Subject: New apr_file_mtime_set() API, implemented in unix and win32. Patches from Branko Cibej (brane) and Matt Kraai . * include/apr_file_io.h (apr_file_mtime_set): declare. * include/arch/win32/apr_arch_file_io.h: expand apr_file_open internal flags; add new APR_WRITEATTRS value. * file_io/win32/open.c (apr_file_open): honor APR_WRITEATTRS flag. * file_io/win32/filestat.c (apr_file_mtime_set): implement in win32. * file_io/unix/filestat.c (apr_file_mtime_set): implement in unix. * test/testfileinfo.c (test_mtime_set): new API test. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64563 13f79535-47bb-0310-9956-ffa450edef68 --- include/arch/win32/apr_arch_file_io.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'include/arch/win32') diff --git a/include/arch/win32/apr_arch_file_io.h b/include/arch/win32/apr_arch_file_io.h index 06e6e091c..30e863a83 100644 --- a/include/arch/win32/apr_arch_file_io.h +++ b/include/arch/win32/apr_arch_file_io.h @@ -133,10 +133,11 @@ void *res_name_from_filename(const char *file, int global, apr_pool_t *pool); #endif /* Internal Flags for apr_file_open */ -#define APR_OPENINFO 0x4000 /* Open without READ or WRITE access */ -#define APR_OPENLINK 0x2000 /* Open a link itself, if supported */ -#define APR_READCONTROL 0x1000 /* Read the file's owner/perms */ -#define APR_WRITECONTROL 0x0800 /* Modifythe file's owner/perms */ +#define APR_OPENINFO 0x00100000 /* Open without READ or WRITE access */ +#define APR_OPENLINK 0x00200000 /* Open a link itself, if supported */ +#define APR_READCONTROL 0x00400000 /* Read the file's owner/perms */ +#define APR_WRITECONTROL 0x00800000 /* Modifythe file's owner/perms */ +#define APR_WRITEATTRS 0x01000000 /* Modify the file's attributes */ /* Entries missing from the MSVC 5.0 Win32 SDK: */ -- cgit v1.2.1