close(hdlc,lapb,llc2)
NAME
close − Delete a socket
SYNTAX
#include <sys/types.h>
#include <socket.h>
close (s)
int s;
DESCRIPTION
Use this system call when the HDLC, LAPB, or LLC2 services are no longer required. The close() system call terminates the connection and deactivates the socket descriptor.
ARGUMENTS
Input Arguments
s specifies a descriptor for a socket that has been returned by the socket() system call
RETURN VALUE
If the call succeeds, a value of 0 is returned. If an error occurs, a value of -1 is returned. Additional error detail is specified in the external variable errno.
DIAGNOSTICS
[EBADF] The s argument is not a valid socket descriptor