12.07.2015 Views

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

INTRO (9) NetBSD Kernel Developer's Manual INTRO (9) NAME ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

CONS (9) <strong>NetBSD</strong> <strong>Kernel</strong> Developer’s <strong>Manual</strong> CONS (9)cnputc()Console kernel output character routine. Commonly, kernel code uses printf(9) rather thanusing this low-level interface.EXAMPLESThis waits until a key is pressed:int c;cnpollc(1);for(;;) {c = cngetc();if ((c == ’\r’ || (c == ’\n’)) {printf("\n");break;}}cnpollc(0);SEE ALSOpckbd(4), pcppi(4), tty(4), wscons(4), wskbd(4), printf(9), spl(9), wscons(9)<strong>NetBSD</strong> 3.0 April 1, 2003 2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!