Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ close(2) — Purdue Xinu

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

control(2)

getc(2)

open(2)

putc(2)

read(2)

seek(2)

write(2)

CLOSE(2)

NAME

close − device independent close routine

SYNOPSIS

int close(dev)

int dev;

DESCRIPTION

Close will disconnect I/O from the device given by dev.  It returns SYSERR if dev is incorrect, or is not opened for I/O.  Otherwise, close returns OK. 

Normally tty devices like the console do not have to be opened and closed. 

SEE ALSO

control(2), getc(2), open(2), putc(2), read(2), seek(2), write(2)

December 01, 1986  —  Xinu Programmer’s Manual

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