Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ getsockopt(2) — SunOS 0.3

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

socket(2)

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

socket(2)

Sun System Release 0.3  —  25 April 1983

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026