diff options
author | Christopher Faylor <me@cgf.cx> | 2005-08-12 02:39:13 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2005-08-12 02:39:13 +0000 |
commit | 1cd065837c6698b0e3dba6977b47061f8419dfba (patch) | |
tree | a7ff66c35914ad5285d42712669d75ee6c3af394 /winsup/cygwin/fhandler_mailslot.cc | |
parent | b4ec1841997ed8ddfba41818e4806513d8da433d (diff) | |
download | cygnal-1cd065837c6698b0e3dba6977b47061f8419dfba.tar.gz cygnal-1cd065837c6698b0e3dba6977b47061f8419dfba.tar.bz2 cygnal-1cd065837c6698b0e3dba6977b47061f8419dfba.zip |
white space
Diffstat (limited to 'winsup/cygwin/fhandler_mailslot.cc')
-rw-r--r-- | winsup/cygwin/fhandler_mailslot.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/winsup/cygwin/fhandler_mailslot.cc b/winsup/cygwin/fhandler_mailslot.cc index cf2106da8..07babd2fd 100644 --- a/winsup/cygwin/fhandler_mailslot.cc +++ b/winsup/cygwin/fhandler_mailslot.cc @@ -59,11 +59,11 @@ fhandler_mailslot::open (int flags, mode_t mode) { case O_RDONLY: /* Server */ x = CreateMailslot (get_win32_name (), - 0, /* Any message size */ - (flags & O_NONBLOCK) ? 0 : MAILSLOT_WAIT_FOREVER, - &sec_none); + 0, /* Any message size */ + (flags & O_NONBLOCK) ? 0 : MAILSLOT_WAIT_FOREVER, + &sec_none); if (x == INVALID_HANDLE_VALUE) - { + { /* FIXME: It's not possible to open the read side of an existing mailslot using CreateFile. You'll get a handle, but using it in ReadFile returns ERROR_INVALID_PARAMETER. On the other @@ -95,10 +95,10 @@ fhandler_mailslot::open (int flags, mode_t mode) break; case O_WRONLY: /* Client */ /* The client is the DLL exclusively. Don't allow opening from - application code. */ + application code. */ extern fhandler_mailslot *dev_kmsg; if (this != dev_kmsg) - { + { set_errno (EPERM); /* As on Linux. */ break; } |