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

1991/1116/port/devcons.c (diff list | history)

1991/1115/sys/src/9/port/devcons.c:679,6851991/1116/sys/src/9/port/devcons.c:679,685 (short | long | prev | next)
1990/0227    
{ 
	char cbuf[64]; 
	char buf[256]; 
	long l, m; 
1991/1116    
	long l, bp; 
1990/0227    
	char *a = va; 
1991/0425    
	Mach *mp; 
1991/0705    
	int id, fd; 
1991/1115/sys/src/9/port/devcons.c:693,7051991/1116/sys/src/9/port/devcons.c:693,705
1990/0227    
		 */ 
		l = n; 
		while(l > 0){ 
			m = l; 
			if(m > sizeof buf) 
				m = sizeof buf; 
1991/0318    
			memmove(buf, a, m); 
1990/0227    
			putstrn(a, m); 
			a += m; 
			l -= m; 
1991/1116    
			bp = l; 
			if(bp > sizeof buf) 
				bp = sizeof buf; 
			memmove(buf, a, bp); 
			putstrn(a, bp); 
			a += bp; 
			l -= bp; 
1990/0227    
		} 
		break; 
 


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