X-Git-Url: https://git.saurik.com/apple/xnu.git/blobdiff_plain/b0d623f7f2ae71ed96e60569f61f9a9a27016e80..bca245acd4c03fd752d1a45f011ad495e60fe53d:/bsd/man/man2/getsockname.2 diff --git a/bsd/man/man2/getsockname.2 b/bsd/man/man2/getsockname.2 index 4ca0f72e0..fd2bd1d3b 100644 --- a/bsd/man/man2/getsockname.2 +++ b/bsd/man/man2/getsockname.2 @@ -50,7 +50,7 @@ .Sh DESCRIPTION The .Fn getsockname -fynction returns the current +function returns the current .Fa address for the specified socket. .Pp @@ -63,6 +63,17 @@ On return it contains the actual size of the address returned (in bytes). .Pp The address is truncated if the buffer provided is too small. +.Pp +Note: For the UNIX domain, the address length returned is the +.Fa address_len +parameter passed to the previous +.Xr bind 2 +system call and not the +.Va sa_len +field of the +.Fa address +parameter passed to +.Xr bind 2 . .Sh RETURN VALUES .Rv -std getsockname .Sh ERRORS