Open System Services System Calls Reference Manual (G06.25+, H06.03+)
System Functions (s and S) setsockopt(2)
[EFAULT] A user-supplied memory buffer cannot be
accessed.
[EINVAL] One of the following conditions exists:
• The specified option is not valid at the specified socket level.
• The socket has been shut down.
[ENOBUFS] There was not enough buffer space available to complete the call. A retry at a
later time might succeed.
[ENOMEM] Required memory resources were not available. A retry at a later time might
succeed.
[ENOPROTOOPT]
The specified option is not supported by the protocol used by the socket.
[ENOTSOCK] The socket parameter does not refer to a socket.
RELATED INFORMATION
Functions: bind(2), endprotoent(3), getprotobynumber(3), getprotoent(3), getsockopt(2), set-
protoent(3), socket(2) socketpair(2).
STANDARDS CONFORMANCE
The HP implementation does not return the errno value [ENOSR].
The following are HP extensions to the XPG4 specification:
• Nonzero values other than 1 can be used to set Boolean options.
• The SO_DONTROUTE and SO_REUSEPORT options are supported.
• The errno value [ECONNRESET] can be returned when the transport-provider process
is unavailable.
• Some of the documented uses of the errno value [ENOPROTOOPT] are not described in
the specification.
527186-003 Hewlett-Packard Company 7−43