|
|
1.1 root 1: /* setdev.c - setdev */
2:
3: #include <conf.h>
4: #include <kernel.h>
5: #include <proc.h>
6:
7: /*------------------------------------------------------------------------
8: * setdev - set the two device entries in the process table entry
9: *------------------------------------------------------------------------
10: */
11: SYSCALL setdev(pid, dev1, dev2)
12: int pid; /* process to change */
13: int dev1, dev2; /* device descriptors to set */
14: {
15: short *nxtdev;
16:
17: if (isbadpid(pid))
18: return(SYSERR);
19: nxtdev = (short *)proctab[pid].pdevs;
20: *nxtdev++ = dev1;
21: *nxtdev = dev2;
22: return(OK);
23: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.