diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2018-03-07 15:43:26 +0100 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2018-03-07 15:43:26 +0100 |
commit | e94fa4ebf39384446f89a44b3769756fb51cb4f9 (patch) | |
tree | 42fc349da17284b8f445a177b5a6c0ac4da27848 | |
parent | 4cd57934be32395107960625c207854db949d7b7 (diff) | |
download | cygnal-e94fa4ebf39384446f89a44b3769756fb51cb4f9.tar.gz cygnal-e94fa4ebf39384446f89a44b3769756fb51cb4f9.tar.bz2 cygnal-e94fa4ebf39384446f89a44b3769756fb51cb4f9.zip |
Cygwin: AF_UNIX: fix comments and move a macro
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
-rw-r--r-- | winsup/cygwin/fhandler_socket_unix.cc | 9 |
1 files 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 */ |