Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ setdev(2) — Purdue Xinu

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

close(2)

kill(2)

SETDEV(2)

NAME

setdev − set the standard input and output device ids for a process

SYNOPSIS

int setdev(pid, dev1, dev2)
int pid;
int dev1;
int dev2;

DESCRIPTION

Setdev records the device ids dev1 and dev2 in the process table entry for process pid so the system will automatically close the devices when the process exits.  It is used primarily by the shell to record the process’ standard input and standard output device ids. 

SEE ALSO

close(2), kill(2)

BUGS

The limit of two device ids per process is fixed, and both must be set in a single call. 

December 01, 1986  —  Xinu Programmer’s Manual

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