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>2008-01-22 20:43:22 +0300
committerCorinna Vinschen <corinna@vinschen.de>2008-01-22 20:43:22 +0300
commit4a96b0aa85fe8a4cabebf17229431e76f8b3453e (patch)
tree5ed427963780aeb198c3ea593b7a00aefe88a7b7 /winsup/cygwin/path.h
parent226f5a32da9ff0311c3513f48167fce52d591632 (diff)
* 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.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index 5bf9717e3..a19f382bc 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)