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>2007-08-19 19:55:06 +0400
committerCorinna Vinschen <corinna@vinschen.de>2007-08-19 19:55:06 +0400
commitdecbb5d3873df73f9a7e93f2be1edd248d329d3f (patch)
tree654dcd4a3ae74443be019f21a0cb6c556e35277f /winsup/cygwin/path.h
parentfcc5fef0b048ebfa14126a3949190fa174423507 (diff)
* path.cc (fillout_mntent): Append backslash to drive-only paths before
calling fs_info::update. * path.h (fs_info::clear): Simplify. (fs_info::fs_info): Add constructor.
Diffstat (limited to 'winsup/cygwin/path.h')
-rw-r--r--winsup/cygwin/path.h17
1 files changed, 3 insertions, 14 deletions
diff --git a/winsup/cygwin/path.h b/winsup/cygwin/path.h
index eb3fb5d74..fb654d0f9 100644
--- a/winsup/cygwin/path.h
+++ b/winsup/cygwin/path.h
@@ -110,20 +110,9 @@ struct fs_info
unsigned is_cdrom : 1;
} status;
public:
- void clear ()
- {
- flags () = 0;
- is_remote_drive (false);
- has_buggy_open (false);
- has_acls (false);
- hasgood_inode (false);
- is_fat (false);
- is_ntfs (false);
- is_samba (false);
- is_nfs (false);
- is_netapp (false);
- is_cdrom (false);
- }
+ void clear () { memset (this, 0 , sizeof *this); }
+ fs_info () { clear (); }
+
inline DWORD& flags () {return status.flags;};
IMPLEMENT_STATUS_FLAG (bool, is_remote_drive)