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

1991/0318/port/devsrv.c (diff list | history)

1990/11211/sys/src/9/port/devsrv.c:275,2811991/0318/sys/src/9/port/devsrv.c:275,281 (short | long | prev | next)
1990/11211    
		error(Egreg); 
1990/1110    
	if(n >= sizeof buf) 
1990/11211    
		error(Egreg); 
1990/0227    
	memcpy(buf, va, n);	/* so we can NUL-terminate */ 
1991/0318    
	memmove(buf, va, n);	/* so we can NUL-terminate */ 
1990/0227    
	buf[n] = 0; 
	fd = strtoul(buf, 0, 0); 
	fdtochan(fd, -1);	/* error check only */ 


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