* globals.cc: Reorder constant UNICODE_STRINGs for clarity.

* mount.h (fs_info::sttaus): Move filesystem type flags into
	substructure.  Add union to allow simple test for having set any
	one filesystem type flag.  Replace has_buggy_open flag with is_sunwnfs
	flag.  Replace has_buggy_fileid_dirinfo with is_unixfs flag.
	(fs_info::got_fs): New private method.
	(fs_info::has_buggy_open): New explicit implementation.
	(fs_info::has_buggy_fileid_dirinfo): Ditto.
	* mount.cc (fs_info::update): Optimize filesystem checks for speed.
	* winsup.h (IMPLEMENT_STATUS_FLAG): Change write accessor to return
	value just set.
This commit is contained in:
Corinna Vinschen
2009-07-16 09:56:25 +00:00
parent 5e5a843711
commit fc261e53f0
5 changed files with 84 additions and 71 deletions

View File

@@ -124,7 +124,7 @@ extern int cygserver_running;
/* Used to define status flag accessor methods */
#define IMPLEMENT_STATUS_FLAG(type,flag) \
void flag (type val) { status.flag = (val); } \
type flag (type val) { return (type) (status.flag = (val)); } \
type flag () const { return (type) status.flag; }
/* Used when treating / and \ as equivalent. */