mirror of https://github.com/mkerrisk/man-pages
getsockopt.2: EINVAL can also occur if 'optval' is invalid
In some cases, EINVAL can occur if 'optval' is invalid. Note this, and point reader to an example in ip(7). In response to: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=216092 Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com> Reported-by: Christian Grigis <glove@earthling.net>
This commit is contained in:
parent
6dd5c68a3d
commit
71b2fb380d
|
@ -39,7 +39,7 @@
|
|||
.\" Modified 1999 by Andi Kleen <ak@muc.de>.
|
||||
.\" Removed most stuff because it is in socket.7 now.
|
||||
.\"
|
||||
.TH GETSOCKOPT 2 1999-05-24 "Linux" "Linux Programmer's Manual"
|
||||
.TH GETSOCKOPT 2 2008-10-28 "Linux" "Linux Programmer's Manual"
|
||||
.SH NAME
|
||||
getsockopt, setsockopt \- get and set options on sockets
|
||||
.SH SYNOPSIS
|
||||
|
@ -154,6 +154,12 @@ is not in a valid part of the process address space.
|
|||
.I optlen
|
||||
invalid in
|
||||
.BR setsockopt ().
|
||||
In some cases this error can also occur for an invalid value in
|
||||
.IR optval
|
||||
(e.g., for the
|
||||
.B IP_ADD_MEMBERSHIP
|
||||
option described in
|
||||
.BR ip (7)).
|
||||
.TP
|
||||
.B ENOPROTOOPT
|
||||
The option is unknown at the level indicated.
|
||||
|
|
Loading…
Reference in New Issue