4
0
mirror of git://sourceware.org/git/newlib-cygwin.git synced 2025-02-15 13:39:26 +08:00

Cygwin: AF_UNIX: add some FIXME comments

This commit is contained in:
Ken Brown 2021-04-01 10:52:03 -04:00
parent 0bfca3c802
commit d2fb5bc045

View File

@ -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