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
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