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

1992/0114/pc/devlpt.c (diff list | history)

1992/0111/sys/src/9/pc/devlpt.c:88,941992/0114/sys/src/9/pc/devlpt.c:88,94 (short | long | prev | next)
1991/1204    
	int i  = (spec && *spec) ? strtol(spec, 0, 0) : 1; 
 
	if(i < 1 || i > NDEV) 
		errors("spec out of range"); 
1992/0114    
		error(Ebadarg); 
1991/1204    
	c = devattach('L', spec); 
	c->dev = i-1; 
	return c; 


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