summaryrefslogtreecommitdiff
path: root/include/arch/win32
diff options
context:
space:
mode:
authorsussman <sussman@13f79535-47bb-0310-9956-ffa450edef68>2003-07-07 22:44:11 +0000
committersussman <sussman@13f79535-47bb-0310-9956-ffa450edef68>2003-07-07 22:44:11 +0000
commitdf9731f421df4af8b8d92c77099f07aa5d23e36f (patch)
tree0d3235b1a02a9f4302a6dadb0295b2fbad504658 /include/arch/win32
parent8a3a3508e97ae81cb07a9d8b943ca7aafedb5a85 (diff)
downloadlibapr-df9731f421df4af8b8d92c77099f07aa5d23e36f.tar.gz
New apr_file_mtime_set() API, implemented in unix and win32.
Patches from Branko Cibej (brane) and Matt Kraai <kraai@alumni.cmu.edu>. * 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
Diffstat (limited to 'include/arch/win32')
-rw-r--r--include/arch/win32/apr_arch_file_io.h9
1 files changed, 5 insertions, 4 deletions
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:
*/