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

/* getmid.c - getmid */

#include <conf.h>
#include <kernel.h>
#include <frame.h>

#define	MACHID	1		/* temporary value for testing		*/
#ifndef	NNETS
#define	NNETS	0
#endif

/*------------------------------------------------------------------------
 *  getmid  --  get the machine id for this machine on a given net
 *------------------------------------------------------------------------
 */
SYSCALL	getmid(netid)
	int	netid;
{
	int	id;
	char	ch;

	if (netid < 0 || netid > NNETS)
		return(SYSERR);

	return(MACHID); /* replace by value from ROM if feasible */
}

unix.superglobalmegacorp.com

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