public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: AF_UNIX: socket: set the O_RDWR flag
@ 2020-10-04 16:54 Ken Brown
  0 siblings, 0 replies; only message in thread
From: Ken Brown @ 2020-10-04 16:54 UTC (permalink / raw)
  To: cygwin-cvs

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=5930dca459bb34aad658dffc18203e05c179edc0

commit 5930dca459bb34aad658dffc18203e05c179edc0
Author: Ken Brown <kbrown@cornell.edu>
Date:   Sun Oct 4 10:18:54 2020 -0400

    Cygwin: AF_UNIX: socket: set the O_RDWR flag

Diff:
---
 winsup/cygwin/fhandler_socket_unix.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/winsup/cygwin/fhandler_socket_unix.cc b/winsup/cygwin/fhandler_socket_unix.cc
index 429aa8a90..0ae7fe125 100644
--- a/winsup/cygwin/fhandler_socket_unix.cc
+++ b/winsup/cygwin/fhandler_socket_unix.cc
@@ -1366,6 +1366,7 @@ fhandler_socket_unix::socket (int af, int type, int protocol, int flags)
   wmem (262144);
   set_addr_family (AF_UNIX);
   set_socket_type (type);
+  set_flags (O_RDWR | O_BINARY);
   if (flags & SOCK_NONBLOCK)
     set_nonblocking (true);
   if (flags & SOCK_CLOEXEC)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-10-04 16:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-04 16:54 [newlib-cygwin] Cygwin: AF_UNIX: socket: set the O_RDWR flag Ken Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).