diff options
author | Ken Brown <kbrown@cornell.edu> | 2021-04-01 17:52:03 +0300 |
---|---|---|
committer | Ken Brown <kbrown@cornell.edu> | 2021-04-01 17:52:03 +0300 |
commit | d2fb5bc045deec354aa523a9a99389d6a7250dff (patch) | |
tree | c95ce223123b1dcf4211a2293179603b7a556930 | |
parent | 0bfca3c802e71fc91fcfb69b28ffa60922dfc8c7 (diff) |
Cygwin: AF_UNIX: add some FIXME comments
-rw-r--r-- | winsup/cygwin/fhandler_socket_unix.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/winsup/cygwin/fhandler_socket_unix.cc b/winsup/cygwin/fhandler_socket_unix.cc index 80f01aee2..d283a7ede 100644 --- a/winsup/cygwin/fhandler_socket_unix.cc +++ b/winsup/cygwin/fhandler_socket_unix.cc @@ -1790,6 +1790,7 @@ create_shmem_failed: return -1; } +/* FIXME: Implement using AF_UNSPEC to reset a connected datagram socket. */ int fhandler_socket_unix::connect (const struct sockaddr *name, int namelen) { @@ -2385,6 +2386,7 @@ fhandler_socket_unix::recvmsg (struct msghdr *msg, int flags) } else { + /* FIXME: Make sure sender really is peer? */ if (connect_state () == connected) { /* FIXME: We're tacitly assuming that the peer is bound. @@ -2413,6 +2415,7 @@ fhandler_socket_unix::recvmsg (struct msghdr *msg, int flags) /* We've created the pipe and we need to wait for a sender to connect to it. */ { + /* FIXME: What about nonblocking case? */ if (listen_pipe () < 0) __leave; /* We'll need to disconnect at the end so that we can |