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-02-22 14:17:01 +0300
committerCorinna Vinschen <corinna@vinschen.de>2007-02-22 14:17:01 +0300
commitbd8f891e8ac6ec88bc72cd8c446b6ccba5750821 (patch)
tree723b2939e16ac792c2e59725551868561a79680d /winsup/cygwin/fhandler_mailslot.cc
parent570858c30fa6add591bf74907de4a7fb93312f20 (diff)
Throughout replace all usage of wincap.shared with the constant
FILE_SHARE_VALID_FLAGS. * fhandler.cc (fhandler_base::open_9x): Drop local variable shared. * wincap.cc: Remove shared member throughout. * wincap.h: Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler_mailslot.cc')
-rw-r--r--winsup/cygwin/fhandler_mailslot.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler_mailslot.cc b/winsup/cygwin/fhandler_mailslot.cc
index 133df0414..0748a4807 100644
--- a/winsup/cygwin/fhandler_mailslot.cc
+++ b/winsup/cygwin/fhandler_mailslot.cc
@@ -79,7 +79,8 @@ fhandler_mailslot::open (int flags, mode_t mode)
__seterrno ();
break;
}
- x = CreateFile (get_win32_name (), GENERIC_READ, wincap.shared (),
+ x = CreateFile (get_win32_name (), GENERIC_READ,
+ FILE_SHARE_VALID_FLAGS,
&sec_none, OPEN_EXISTING, 0, 0);
#endif
if (x == INVALID_HANDLE_VALUE)
@@ -102,7 +103,7 @@ fhandler_mailslot::open (int flags, mode_t mode)
set_errno (EPERM); /* As on Linux. */
break;
}
- x = CreateFile (get_win32_name (), GENERIC_WRITE, wincap.shared (),
+ x = CreateFile (get_win32_name (), GENERIC_WRITE, FILE_SHARE_VALID_FLAGS,
&sec_none, OPEN_EXISTING, 0, 0);
if (x == INVALID_HANDLE_VALUE)
{