|
|
1.1 root 1: /*
2: * SUN-3 console driver
3: */
4: #include "../machine/sunromvec.h"
5:
6: /*
7: * Print a character on console.
8: */
9: cnputc(c)
10: register int c;
11: {
12: register int s;
13:
14: s = spl7();
15: if (c == '\n')
16: (*romp->v_putchar)('\r');
17: (*romp->v_putchar)(c);
18: (void) splx(s);
19: }
20:
21: cngetc()
22: {
23: register int c;
24:
25: while ((c = (*romp->v_mayget)()) == -1)
26: ;
27: return (c);
28: }
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.