diff options
| author | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-12-03 15:26:04 -0500 |
|---|---|---|
| committer | Michael Kerrisk <mtk.manpages@gmail.com> | 2008-12-05 22:28:57 -0500 |
| commit | cb159038603c513c6805c731acfd18d4b90fb9ea (patch) | |
| tree | 6cf17995fdbd0eefa5b81fa26dbcfe7325b3af44 /man2 | |
| parent | 59682186ca6c8875276102d864f834cf514788fe (diff) | |
| download | man-pages-cb159038603c513c6805c731acfd18d4b90fb9ea.tar.gz | |
getpeername.2: Note that returned address may be truncated if buffer is too small
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man2')
| -rw-r--r-- | man2/getpeername.2 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/man2/getpeername.2 b/man2/getpeername.2 index 59cbe0af16..ed9a5fd8f4 100644 --- a/man2/getpeername.2 +++ b/man2/getpeername.2 @@ -58,6 +58,11 @@ by .IR name . On return it contains the actual size of the name returned (in bytes). The name is truncated if the buffer provided is too small. + +The returned address is truncated if the buffer provided is too small; +in this case, +.I namelen +will return a value greater than was supplied to the call. .SH "RETURN VALUE" On success, zero is returned. On error, \-1 is returned, and |
