|
|
Xinu for 68000/68010
/* sendf.c - sendf */
#include <conf.h>
#include <kernel.h>
#include <proc.h>
/*------------------------------------------------------------------------
* sendf -- sendf a message to another process, forcing delivery
*------------------------------------------------------------------------
*/
SYSCALL sendf(pid, msg)
int pid;
WORD msg;
{
struct pentry *pptr;
disable();
if (isbadpid(pid)||((pptr= &proctab[pid])->pstate == PRFREE)) {
restore();
return(SYSERR);
}
pptr->pmsg = msg;
pptr->phasmsg++;
if (pptr->pstate == PRRECV)
ready(pid, RESCHYES);
return(OK);
}
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.