diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2009-07-16 09:56:25 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2009-07-16 09:56:25 +0000 |
commit | fc261e53f0d8a5743d7b2f8de9608cefecf36edb (patch) | |
tree | 39b3ac7c968e6aecb669effe80b4e76d5bd4a2c5 /winsup/cygwin/winsup.h | |
parent | 5e5a84371166bdee1cd35c6692b09b989e62ce61 (diff) | |
download | cygnal-fc261e53f0d8a5743d7b2f8de9608cefecf36edb.tar.gz cygnal-fc261e53f0d8a5743d7b2f8de9608cefecf36edb.tar.bz2 cygnal-fc261e53f0d8a5743d7b2f8de9608cefecf36edb.zip |
* 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.
Diffstat (limited to 'winsup/cygwin/winsup.h')
-rw-r--r-- | winsup/cygwin/winsup.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/winsup.h b/winsup/cygwin/winsup.h index 91634dc13..7f0377ef8 100644 --- a/winsup/cygwin/winsup.h +++ b/winsup/cygwin/winsup.h @@ -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. */ |