close(wdd)
NAME
close − Delete a WDD socket
SYNTAX
#include <sys/types.h>
#include <sys/socket.h>
close (s)
int s;
DESCRIPTION
This system call terminates a connection by releasing the device line and closing the socket created in the socket() system call.
This system call:
∗ Disables the line for data transfer.
∗ Deallocates the socket descriptors.
The device line is then available for use by another client.
ARGUMENTS
Input Arguments
s Value returned by the socket() system call.
RETURN VALUE
The return value is 0 if the call is successful. Otherwise, a -1 is returned and the global variable errno is set to indicate the error.
DIANOSTICS
[EBADF] Invalid socket descriptor.