summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrane <brane@13f79535-47bb-0310-9956-ffa450edef68>2003-05-24 10:30:40 +0000
committerbrane <brane@13f79535-47bb-0310-9956-ffa450edef68>2003-05-24 10:30:40 +0000
commit220c6e4ea2e1c9b1d02fd9e974f204d384b96e53 (patch)
tree90067c91c24065b31468e36ba1723786099d29df /include
parent2c468c984d461c5a699ad1e2c7677104bf752f72 (diff)
downloadlibapr-220c6e4ea2e1c9b1d02fd9e974f204d384b96e53.tar.gz
Added flag APR_FILE_ATTR_HIDDEN for manipulating the "hidden" file
attribute on Windows and OS/2. Also changed the apr_file_attrs_set implementations to not make any syscalls if the requested attributes are not supported on the platform. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@64510 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include')
-rw-r--r--include/apr_file_io.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/apr_file_io.h b/include/apr_file_io.h
index 3a4fcbd4b..80e67fdc7 100644
--- a/include/apr_file_io.h
+++ b/include/apr_file_io.h
@@ -129,6 +129,7 @@ extern "C" {
/* flags for apr_file_attrs_set */
#define APR_FILE_ATTR_READONLY 0x01 /**< File is read-only */
#define APR_FILE_ATTR_EXECUTABLE 0x02 /**< File is executable */
+#define APR_FILE_ATTR_HIDDEN 0x04 /**< File is hidden */
/** @} */
/** File attributes */
@@ -639,6 +640,7 @@ APR_DECLARE(apr_status_t) apr_file_perms_set(const char *fname,
* <PRE>
* APR_FILE_ATTR_READONLY - make the file readonly
* APR_FILE_ATTR_EXECUTABLE - make the file executable
+ * APR_FILE_ATTR_HIDDEN - make the file hidden
* </PRE>
* @param attr_mask Mask of valid bits in attributes.
* @param cont the pool to use.