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

1992/1217/port/dev.c (diff list | history)

1992/1217/sys/src/9/port/dev.c:124,1311993/0321/sys/src/9/port/dev.c:124,133 (short | long | prev | next)
Format edit.
rsc Fri Mar 4 12:44:25 2005
1990/0227    
	int i; 
	Dir dir; 
 
	for(i=0;; i++) 
1993/0321    
	for(i=0;; i++) { 
1990/0227    
		switch((*gen)(c, tab, ntab, i, &dir)){ 
1993/0321    
		case 0: 
			break; 
1990/0227    
		case -1: 
			/* 
1991/1206    
			 *  given a channel, we cannot derive the directory name 
1992/1217/sys/src/9/port/dev.c:138,1541993/0321/sys/src/9/port/dev.c:140,155
1990/0227    
				return; 
			} 
1992/1217    
			print("%s %s: devstat %C %lux\n", u->p->text, u->p->user, 
1991/1120    
							devchar[c->type], c->qid.path); 
1993/0321    
						devchar[c->type], c->qid.path); 
1991/0626    
			error(Enonexist); 
1990/0227    
		case 0: 
			break; 
		case 1: 
1990/11211    
			if(eqqid(c->qid, dir.qid)){ 
1993/0321    
			if(eqqid(c->qid, dir.qid)) { 
1990/0227    
				convD2M(&dir, db); 
				return; 
			} 
			break; 
		} 
1993/0321    
	} 
1990/0227    
} 
 
long 


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