summaryrefslogtreecommitdiff
path: root/sys/arch/sun3/stand/libsa/promcons.c
blob: 34c37443aec46240ce51984289a966408b1ecbe6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

#include <stdarg.h>
#include <sys/types.h>
#include <machine/mon.h>

int
getchar()
{
	return ( (*romp->getChar)() );
}

int
peekchar()
{
	return ( (*romp->mayGet)() );
}

void
putchar(c)
	int c;
{
	if (c == '\n')
		(*romp->putChar)('\r');
	(*romp->putChar)(c);
}