GETSOCKOPT(2) — System Interface Manual — System Calls
NAME
getsockopt, setsockopt − get and set options on sockets
SYNOPSIS
#include <sys/socket.h>
getsockopt(s, level, optname, optval, optlen)
int s, level, optname;
char ∗optval;
int ∗optlen;
setsockopt(s, level, optname, optval, optlen)
int s, level, optname;
char ∗optval;
int optlen;
DESCRIPTION
To be supplied.
DIAGNOSTICS
A 0 is returned if the call succeeds, −1 if it fails.
ERRORS
The call succeeds unless:
[EBADF] The argument s is not a valid descriptor.
[ENOTSOCK] The argument s is not a socket.
???
[EFAULT] The options are not in a valid part of the process address space.
SEE ALSO
Sun System Release 0.3 — 25 April 1983