summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/path.h
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2003-02-20 10:14:53 +0000
committerCorinna Vinschen <corinna@vinschen.de>2003-02-20 10:14:53 +0000
commit7920792369b18fd7d796a61aa7f3dda98c1957c8 (patch)
tree7d26abbdd63ae0d57a9c26f61d916412ef85aa25 /winsup/cygwin/path.h
parent3f3d479490d6b84dd23f7d150a1520e596698e54 (diff)
downloadcygnal-7920792369b18fd7d796a61aa7f3dda98c1957c8.tar.gz
cygnal-7920792369b18fd7d796a61aa7f3dda98c1957c8.tar.bz2
cygnal-7920792369b18fd7d796a61aa7f3dda98c1957c8.zip
w32api:
* include/winioctl.h (FSCTL_SET_SPARSE): Define. cygwin: * wincap.h (wincaps::supports_sparse_files): New flag. (wincapc::supports_sparse_files): New method. * wincap.cc (wincap_unknown): Define value for the new flag. (wincap_95): Ditto. (wincap_95osr2): Ditto. (wincap_98): Ditto. (wincap_98se): Ditto. (wincap_me): Ditto. (wincap_nt3): Ditto. (wincap_nt4): Ditto. (wincap_nt4sp4): Ditto. (wincap_2000): Ditto. (wincap_xp): Ditto. * path.h (path_conv::fs_flags): New method. * fhandler_disk_file.cc: Include winioctl.h for DeviceIoControl. (fhandler_disk_file::open): Set newly created and truncated files as sparse on platforms that support it.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index e41d143be..4de14bf4b 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -152,6 +152,7 @@ class path_conv
short get_unitn () {return devn == FH_BAD ? 0 : unit;}
DWORD file_attributes () {return fileattr;}
DWORD drive_type () {return fs.drive_type;}
+ DWORD fs_flags () {return fs.flags;}
BOOL fs_fast_ea () {return fs.sym_opt & PC_CHECK_EA;}
void set_path (const char *p) {strcpy (path, p);}
char *return_and_clear_normalized_path ();