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

1991/1206/port/dev.c (diff list | history)

1991/1120/sys/src/9/port/dev.c:119,1261991/1206/sys/src/9/port/dev.c:119,127 (short | long | prev | next)
Comment edit.
rsc Fri Mar 4 12:44:25 2005
1990/0227    
		switch((*gen)(c, tab, ntab, i, &dir)){ 
		case -1: 
			/* 
			 * devices with interesting directories usually don't get 
			 * here, which is good because we've lost the name by now. 
1991/1206    
			 *  given a channel, we cannot derive the directory name 
			 *  that the channel was generated from since it was lost 
			 *  by namec. 
1990/0227    
			 */ 
1990/11211    
			if(c->qid.path & CHDIR){ 
1991/1109    
				devdir(c, c->qid, ".", 0L, eve, CHDIR|0700, &dir); 
1991/1120/sys/src/9/port/dev.c:177,1831991/1206/sys/src/9/port/dev.c:178,183
1990/0227    
	for(i=0;; i++) 
		switch((*gen)(c, tab, ntab, i, &dir)){ 
		case -1: 
			/* Deal with union directories? */ 
			goto Return; 
		case 0: 
			break; 
1991/1120/sys/src/9/port/dev.c:185,1911991/1206/sys/src/9/port/dev.c:185,191
1991/1112    
			if(eqqid(c->qid, dir.qid)) { 
				if(strcmp(u->p->user, dir.uid) == 0)	/* User */ 
					mode = dir.mode; 
				else if(strcmp(u->p->user, eve) == 0)	/* Bootes is group */ 
1991/1206    
				else if(strcmp(u->p->user, eve) == 0)	/* eve is group */ 
1991/1112    
					mode = dir.mode<<3; 
				else 
					mode = dir.mode<<6;		/* Other */ 


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