File:  [XINU] / xinu / sys / fsend.c
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Tue Apr 24 17:40:00 2018 UTC (8 years, 2 months ago) by root
Branches: xinu, MAIN
CVS tags: xinu-19910600, HEAD
Xinu for 68000/68010

/* fsend.c - fsend */

#include <conf.h>
#include <kernel.h>
#include <frame.h>
#ifndef	NNETS
#define	NNETS	0
#endif

/*------------------------------------------------------------------------
 *  fsend  --  enqueue a message for transmission to another machine
 *------------------------------------------------------------------------
 */
SYSCALL	fsend(netid, toaddr, fptr)
	int	netid;
	int	toaddr;
	struct frame *fptr;
{
	struct	fglob	*fgptr;

	if (netid < 0 || netid >= NNETS)
		return(SYSERR);
	fgptr = &fdata[netid];
	setfa(fptr, toaddr, fgptr->fmachid);
	psend(fgptr->foport, fptr);
	signal(fgptr->fosem);
	return(OK);
}

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.