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

1990/0312/port/devlance.c (diff list | history)

1990/03042/sys/src/9/port/devlance.c:362,3681990/0312/sys/src/9/port/devlance.c:362,368 (short | long | prev | next)
1990/0227    
	 */ 
	len = 0; 
	while(bp = getq(q)){ 
		if(sizeof(Pkt) - len >= (n = bp->wptr - bp->rptr)){ 
1990/0312    
		if(sizeof(Pkt) - len >= (n = BLEN(bp))){ 
1990/03042    
			memcpy(((uchar *)p)+len, bp->rptr, n); 
1990/0227    
			len += n; 
		} else 
1990/03042/sys/src/9/port/devlance.c:704,7101990/0312/sys/src/9/port/devlance.c:704,710
1990/0227    
long	  
lancewrite(Chan *c, void *a, long n) 
{ 
	return streamwrite(c, a, n); 
1990/0312    
	return streamwrite(c, a, n, 0); 
1990/0227    
} 
 
void	  


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