|
|
1.1 ! root 1: /* setnok.c - setnok */ ! 2: ! 3: #include <conf.h> ! 4: #include <kernel.h> ! 5: #include <proc.h> ! 6: ! 7: /*------------------------------------------------------------------------ ! 8: * setnok - set next-of-kin (notified at death) for a given process ! 9: *------------------------------------------------------------------------ ! 10: */ ! 11: SYSCALL setnok(nok, pid) ! 12: int nok; ! 13: int pid; ! 14: { ! 15: PStype ps; ! 16: struct pentry *pptr; ! 17: ! 18: disable(ps); ! 19: if (isbadpid(pid)) { ! 20: restore(ps); ! 21: return(SYSERR); ! 22: } ! 23: pptr = &proctab[pid]; ! 24: pptr->pnxtkin = nok; ! 25: restore(ps); ! 26: return(OK); ! 27: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.