Пример #1
0
pcwrite()
{
	register int c;

	while ((c=cpass())>=0)
		pcoutput(c);
}
Пример #2
0
lpwrite()
{
	register int c;

	while ((c=cpass())>=0)
		lpcanon(c);
}
Пример #3
0
vtwrite()
{
	register int c;
	int register count;

	while ((c=cpass()) >= 0) {
	    retry:
		for (count=0; count<10; count++)
			if ((VTADDR->csr&RQINT)==0) {
				VTADDR->buf = c&0377;
				VTADDR->csr =| RQINT;
				goto contin;
			}
		spl5();
		if (VTADDR->csr&RQINT) {
			vtflag++;
			sleep(VTADDR, VTPRI);
		}
		spl0();
		goto retry;
    contin:;
	}
}