From e94fa4ebf39384446f89a44b3769756fb51cb4f9 Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Wed, 7 Mar 2018 15:43:26 +0100 Subject: [PATCH] Cygwin: AF_UNIX: fix comments and move a macro Signed-off-by: Corinna Vinschen --- winsup/cygwin/fhandler_socket_unix.cc | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/winsup/cygwin/fhandler_socket_unix.cc b/winsup/cygwin/fhandler_socket_unix.cc index ae422dda4..d5f617d92 100644 --- a/winsup/cygwin/fhandler_socket_unix.cc +++ b/winsup/cygwin/fhandler_socket_unix.cc @@ -67,12 +67,12 @@ for the entire packet, as well as for all three data blocks. The combined maximum size of a packet is 64K, including the header. - A connecting, bound STREAM socket send it's local sun_path once after + A connecting, bound STREAM socket sends it's local sun_path once after a successful connect. An already connected socket also sends its local sun_path after a successful bind (border case, but still...). These packages don't contain any other data (cmsg_len == 0, data_len == 0). - A bound DGRAM socket send its sun_path with each sendmsg/sendto. + A bound DGRAM socket sends its sun_path with each sendmsg/sendto. */ class af_unix_pkt_hdr_t { @@ -124,9 +124,6 @@ class af_unix_pkt_hdr_t (void *)(((PBYTE)(_p)) + AF_UNIX_PKT_OFFSETOF_DATA (_p)); \ }) -/* Character length of pipe name, excluding trailing NUL. */ -#define CYGWIN_PIPE_SOCKET_NAME_LEN 47 - GUID __cygwin_socket_guid = { .Data1 = 0xefc1714d, .Data2 = 0x7b19, @@ -973,7 +970,7 @@ fhandler_socket_unix::dup (fhandler_base *child, int flags) things to do: - Set the peer pipe handle if successful - - Send own sun_path to peer if successful TODO + - Send own sun_path to peer if successful - Set connect_state - Set so_error for later call to select */