mirror of https://github.com/mkerrisk/man-pages
recv.2: RETURN VALUE: mention that 'errno' is set on error
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
47a979088f
commit
eb20a4fb40
|
@ -38,7 +38,7 @@
|
|||
.\" Modified 1998,1999 by Andi Kleen
|
||||
.\" 2001-06-19 corrected SO_EE_OFFENDER, bug report by James Hawtin
|
||||
.\"
|
||||
.TH RECV 2 2012-12-21 "Linux" "Linux Programmer's Manual"
|
||||
.TH RECV 2 2013-04-19 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
recv, recvfrom, recvmsg \- receive a message from a socket
|
||||
.SH SYNOPSIS
|
||||
|
@ -388,6 +388,9 @@ error queue.
|
|||
.SH RETURN VALUE
|
||||
These calls return the number of bytes received, or \-1
|
||||
if an error occurred.
|
||||
In the event of an error,
|
||||
.I errno
|
||||
is set to indicate the error.
|
||||
The return value will be 0 when the
|
||||
peer has performed an orderly shutdown.
|
||||
.SH ERRORS
|
||||
|
|
Loading…
Reference in New Issue