diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-01-22 17:43:22 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-01-22 17:43:22 +0000 |
commit | 4a96b0aa85fe8a4cabebf17229431e76f8b3453e (patch) | |
tree | 5ed427963780aeb198c3ea593b7a00aefe88a7b7 /winsup/cygwin/path.h | |
parent | 226f5a32da9ff0311c3513f48167fce52d591632 (diff) | |
download | newlib-4a96b0aa85fe8a4cabebf17229431e76f8b3453e.zip newlib-4a96b0aa85fe8a4cabebf17229431e76f8b3453e.tar.gz newlib-4a96b0aa85fe8a4cabebf17229431e76f8b3453e.tar.bz2 |
* ntdll.h (struct _FILE_FS_OBJECTID_INFORMATION): Define.
* path.cc (struct smb_extended_info): Define.
(fs_info::update): Request object id info to get Samba information.
Set flags according to new implementation.
* path.h (struct fs_info): Add samba_version to status_flags.
Implement flags() and samba_version() using IMPLEMENT_STATUS_FLAG.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r-- | winsup/cygwin/path.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h index 5bf9717..a19f382 100644 --- a/winsup/cygwin/path.h +++ b/winsup/cygwin/path.h @@ -97,7 +97,8 @@ struct fs_info private: struct status_flags { - DWORD flags; /* Volume flags */ + DWORD flags; /* Volume flags */ + DWORD samba_version; /* Samba version if available */ unsigned is_remote_drive : 1; unsigned has_buggy_open : 1; unsigned has_acls : 1; @@ -110,11 +111,11 @@ struct fs_info unsigned is_cdrom : 1; } status; public: - void clear () { memset (this, 0 , sizeof *this); } + void clear () { memset (&status, 0 , sizeof status); } fs_info () { clear (); } - inline DWORD& flags () {return status.flags;}; - + IMPLEMENT_STATUS_FLAG (DWORD, flags) + IMPLEMENT_STATUS_FLAG (DWORD, samba_version) IMPLEMENT_STATUS_FLAG (bool, is_remote_drive) IMPLEMENT_STATUS_FLAG (bool, has_buggy_open) IMPLEMENT_STATUS_FLAG (bool, has_acls) |