.\"close a socket .TH socket_close 3 .SH NAME socket_close() - close a socket .SH SYNOPSIS .nf #include #include int socket_close(int s) .SH DESCRIPTION socket_close() closes socket s. This frees a socket efun slot for use. .SH RETURN VALUES socket_close() returns: .IP EESUCCESS on success. .IP a negative value indicated below on error. .SH ERRORS .TP 15 EEFDRANGE Descriptor out of range. .TP EEBADF Descriptor is invalid. .TP EESECURITY Security violation attempted. .SH SEE ALSO socket_accept(3), socket_create(3)