Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2000-11-28 21:45:42 +0300
committerCorinna Vinschen <corinna@vinschen.de>2000-11-28 21:45:42 +0300
commite1a993d549f9f3047d31de7aeeaa0f49efdb738b (patch)
tree3335f8ca3aa14f96ec1c1e01c10d1723b5ed1736 /winsup/cygwin/path.h
parent91797c6d8e6b2fbb4bb652aab2087ea6d7b09c00 (diff)
* fhandler.cc (fhandler_disk_file::open): Check for buggy CreateFile
condition. * path.cc (path_conv::check): Get file system type in call to GetVolumeInformation to check for file systems with buggy CreateFile. * path.h (enum path_types): Add PATH_HASBUGGYOPEN. (class path_conv): Add methods `has_buggy_open' and `set_has_buggy_open'.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 89eaad72c..ca039e200 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -37,8 +37,9 @@ enum path_types
PATH_EXEC = MOUNT_EXEC,
PATH_CYGWIN_EXEC = MOUNT_CYGWIN_EXEC,
PATH_ALL_EXEC = PATH_CYGWIN_EXEC | PATH_EXEC,
- PATH_SOCKET = 0x40000000,
- PATH_HASACLS = 0x80000000
+ PATH_HASBUGGYOPEN = 0x20000000,
+ PATH_SOCKET = 0x40000000,
+ PATH_HASACLS = 0x80000000
};
class path_conv
@@ -50,6 +51,7 @@ class path_conv
int has_acls () {return path_flags & PATH_HASACLS;}
int hasgood_inode () {return path_flags & PATH_HASACLS;} // Not strictly correct
+ int has_buggy_open () {return path_flags & PATH_HASBUGGYOPEN;}
int isbinary () {return path_flags & PATH_BINARY;}
int issymlink () {return path_flags & PATH_SYMLINK;}
int issocket () {return path_flags & PATH_SOCKET;}
@@ -60,6 +62,7 @@ class path_conv
void set_symlink () {path_flags |= PATH_SYMLINK;}
void set_exec (int x = 1) {path_flags |= x ? PATH_EXEC : PATH_NOTHING;}
void set_has_acls (int x = 1) {path_flags |= x ? PATH_HASACLS : PATH_NOTHING;}
+ void set_has_buggy_open (int x = 1) {path_flags |= x ? PATH_HASBUGGYOPEN : PATH_NOTHING;}
char *known_suffix;