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

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

1991/0626/sys/src/9/port/dev.c:24,301991/1109/sys/src/9/port/dev.c:24,30 (short | long | prev | next)
Add user to devdir parameters.
rsc Fri Mar 4 12:44:25 2005
1990/0227    
} 
 
void 
1990/11211    
devdir(Chan *c, Qid qid, char *n, long length, long perm, Dir *db) 
1991/1109    
devdir(Chan *c, Qid qid, char *n, long length, char *user, long perm, Dir *db) 
1990/0227    
{ 
	strcpy(db->name, n); 
	db->qid = qid; 
1991/0626/sys/src/9/port/dev.c:48,541991/1109/sys/src/9/port/dev.c:48,54
1990/0227    
	if(tab==0 || i>=ntab) 
		return -1; 
	tab += i; 
	devdir(c, tab->qid, tab->name, tab->length, tab->perm, dp); 
1991/1109    
	devdir(c, tab->qid, tab->name, tab->length, eve, tab->perm, dp); 
1990/0227    
	return 1; 
} 
 
1991/0626/sys/src/9/port/dev.c:123,1291991/1109/sys/src/9/port/dev.c:123,129
1990/0227    
			 * here, which is good because we've lost the name by now. 
			 */ 
1990/11211    
			if(c->qid.path & CHDIR){ 
1990/0227    
				devdir(c, c->qid, ".", 0L, CHDIR|0700, &dir); 
1991/1109    
				devdir(c, c->qid, ".", 0L, eve, CHDIR|0700, &dir); 
1990/0227    
				convD2M(&dir, db); 
				return; 
			} 


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