Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ close(hdlc,lapb,llc2) — DECnet WAN Support 3.0A

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

socket(2h)

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

SEE ALSO

socket(2h)

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