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

1999/1230/pc/devlpt.c (diff list | history)

1999/0819/sys/src/9/pc/devlpt.c:59,641999/1230/sys/src/9/pc/devlpt.c:59,69 (short | long | prev | next)
Handle DEVDOTDOT. (Big bug fix.)
rsc Fri Mar 4 12:44:25 2005
1991/1204    
	Qid qid; 
	char name[NAMELEN]; 
 
1999/1230    
	if(i == DEVDOTDOT){ 
		sprint(name, "#L%lud", c->dev+1); 
		devdir(c, (Qid){CHDIR, 0}, name, 0, eve, 0555, dp); 
		return 1; 
	} 
1991/1204    
	if(tab==0 || i>=ntab) 
		return -1; 
	tab += i; 


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