From f8b553ce14eac751d8756cf1a84193db58260d98 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Thu, 26 Feb 2015 09:04:55 +0100 Subject: [PATCH] getsockopt.2: Minor fixes to Konstantim Shemyak's patch Signed-off-by: Michael Kerrisk --- man2/getsockopt.2 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/man2/getsockopt.2 b/man2/getsockopt.2 index d030cc4f6..f4f1542fd 100644 --- a/man2/getsockopt.2 +++ b/man2/getsockopt.2 @@ -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