plan 9 kernel history: overview | file list | diff list

1990/0617/port/devcons.c (diff list | history)

1990/0614/sys/src/9/port/devcons.c:425,4301990/0617/sys/src/9/port/devcons.c:425,434 (short | long | prev | next)
1990/0227    
 
	case Qcons: 
		qlock(&kbdq); 
1990/0617    
		if(waserror()){ 
			qunlock(&kbdq); 
			nexterror(); 
		} 
1990/0227    
		while(!cangetc(&lineq)){ 
			sleep(&kbdq.r, (int(*)(void*))isbrkc, &kbdq); 
			do{ 
1990/0614/sys/src/9/port/devcons.c:486,4921990/0617/sys/src/9/port/devcons.c:490,496
1990/0227    
		return readnum(c->offset, buf, n, u->p->parentpid, NUMSIZE); 
 
	case Qtime: 
1990/0614    
		return readnum(c->offset, buf, n, boottime+TK2MS(MACHP(0)->ticks), 12); 
1990/0617    
		return readnum(c->offset, buf, n, boottime+TK2SEC(MACHP(0)->ticks), 12); 
1990/0227    
 
	case Quser: 
		return readstr(c->offset, buf, n, u->p->pgrp->user); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)