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:
authorChristopher Faylor <me@cgf.cx>2001-04-23 20:46:30 +0400
committerChristopher Faylor <me@cgf.cx>2001-04-23 20:46:30 +0400
commitf940c5b1aa1a06097df8fffcc4c409c1f0702d4c (patch)
treeed43de512e56e0d82af44f07f856c9f6ddb0a23d /winsup/cygwin/syscalls.cc
parent4ba81bbab20d1d68a89b8d983dfa5ae0129f22d7 (diff)
* net.cc [errmap]: Add '0' condition.
(find_winsock_errno): Don't translate no error to EPERM.
Diffstat (limited to 'winsup/cygwin/syscalls.cc')
-rw-r--r--winsup/cygwin/syscalls.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc
index 25dc93c16..4e862a21f 100644
--- a/winsup/cygwin/syscalls.cc
+++ b/winsup/cygwin/syscalls.cc
@@ -1630,7 +1630,7 @@ setmode (int fd, int mode)
set_errno (EBADF);
return -1;
}
- if (mode != O_BINARY && mode != O_TEXT)
+ if (mode != O_BINARY && mode != O_TEXT && mode != 0)
{
set_errno (EINVAL);
return -1;