/*
 * mach_ims.c
 *
 * transputer dependencies
 *
 * Right now, the transputer doesn't let us use arg vectors
 * (mainly because it would be a pain to download them all).
 * Maybe sometime in the future we can.
 *
 */

#include <stdio.h>
#include <sys/types.h>
#include <sys/process.h>

/*ARGSUSED*/
machdep_init(argc, argv)
	int	argc;
	char	**argv;
{
	extern	struct process *pfind();
	extern	int interactive;
	extern	FILE *stdin;
	extern	FILE *stdout;
	extern	FILE *stderr;
	struct	process *p;

	p = pfind(&p);
	/*
	 * rpcinit uses longword inet addrs
	 *
	 * 0x80367001 ==> 128.54.112.1 (mangle)
	 * 0x8036a001 ==> 128.54.160.1 (amos)
	 */
	rpc_init(p, 0x80367001, 0);
	stdin = fopen("/dev/tty", "r");
	stdout = fopen("/dev/tty", "w");
	stderr = fopen("/dev/tty", "w");
	/*stdout->_flag |= _IOLBF;*/
	/*stderr->_flag |= _IOLBF;*/
	interactive++;
}
