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

1990/0731/gnot/devincon.c (diff list | history)

1990/0725/sys/src/9/gnot/devincon.c:683,6961990/0731/sys/src/9/gnot/devincon.c:683,696 (short | long | prev | next)
1990/0315    
	bp->base[1] = ip->chan>>8; 
	bp->base[2] = c; 
1990/0629    
	if(incondebug) 
		print("<-(%d)%uo %d\n", ip->chan, c, bp->wptr-bp->rptr)-3; 
1990/0731    
		print("<-(%d)%uo %d\n", ip->chan, c, bp->wptr-bp->rptr); 
1990/0315    
 
1990/0321    
	next = (ip->wi+3)%Nin; 
1990/0731    
	next = (ip->wi+1)%Nin; 
1990/0321    
	if(next == ip->ri){ 
		bp->wptr = bp->base+3; 
		return bp; 
	} 
	ip->wi = (ip->wi+1)%Nin; 
1990/0731    
	ip->wi = next; 
1990/0321    
 
1990/0315    
	return ip->inb[ip->wi]; 
} 


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