getsockopt.2: Minor fixes to Konstantim Shemyak's patch

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
Michael Kerrisk 2015-02-26 09:04:55 +01:00
parent eb048645b6
commit f8b553ce14
1 changed files with 5 additions and 3 deletions

View File

@ -129,12 +129,14 @@ For a description of the available socket options see
.BR socket (7)
and the appropriate protocol man pages.
.SH RETURN VALUE
On success, zero is returned for the standard options. Netfilter allows
to define custom socket options with associated handlers; for such
options, the return value is the one returned from the handler.
On success, zero is returned for the standard options.
On error, \-1 is returned, and
.I errno
is set appropriately.
Netfilter allows the programmer
to define custom socket options with associated handlers; for such
options, the return value on success is the value returned by the handler.
.SH ERRORS
.TP 10
.B EBADF