Annotation of sys/arch/mvme68k/stand/libbug/instat.c, Revision 1.1.1.1
1.1 nbrk 1: /* $OpenBSD: instat.c,v 1.2 1996/05/16 02:25:42 chuck Exp $ */
2:
3: /*
4: * bug routines -- assumes that the necessary sections of memory
5: * are preserved.
6: */
7: #include <sys/types.h>
8: #include <machine/prom.h>
9:
10: #include "libbug.h"
11:
12: /* returns 0 if no characters ready to read */
13: int
14: peekchar()
15: {
16: int ret;
17:
18: MVMEPROM_NOARG();
19: MVMEPROM_CALL(MVMEPROM_INSTAT);
20: MVMEPROM_STATRET(ret);
21: }
CVSweb