.\"close a socket
.DT
socket_close
Discworld driver help
socket_close

Name
.SI 5
socket_close() - close a socket

.EI
Synopsis
.SI 5
.EI
#include <socket.h>
#include <socket_errors.h>

int socket_close(int s)

Description
.SP 5 5
socket_close() closes socket s. This frees a socket efun slot for use.
.EP
Return values
.SI 5
socket_close() returns:
.EI
.TP
EESUCCESS on success.
.TP
a negative value indicated below on error.
Errors
.SI 5
.EI
.TP 15
EEFDRANGE
Descriptor out of range.
.TP
EEBADF
Descriptor is invalid.
.TP
EESECURITY
Security violation attempted.
See also
.SI 5
socket_accept(3), socket_create(3)
.EI
