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

1992/0825/port/chan.c (diff list | history)

1992/0811/sys/src/9/port/chan.c:306,3171992/0825/sys/src/9/port/chan.c:306,318 (short | long | prev | next)
1991/1011    
	he = &pg->mnthash[MNTHASH]; 
	for(h = pg->mnthash; h < he; h++) { 
		for(f = *h; f; f = f->hash) { 
			for(t = f->mount; t; t = t->next) 
1992/0825    
			for(t = f->mount; t; t = t->next) { 
1991/1011    
				if(eqchan(c, t->to, 1)) { 
					close(c); 
					c = clone(t->head->from, 0); 
					break; 
				} 
1992/0825    
			} 
1991/0427    
		} 
1990/0914    
	} 
1991/1011    
	poperror(); 
1992/0811/sys/src/9/port/chan.c:452,4641992/0825/sys/src/9/port/chan.c:453,467
1990/0821    
	elem = u->elem; 
1990/0227    
	mntok = 1; 
1990/0820    
	isdot = 0; 
1990/0227    
	if(name[0] == '/'){ 
1992/0825    
	if(name[0] == '/') { 
1991/0427    
		c = clone(u->slash, 0); 
1990/0227    
		/* 
		 * Skip leading slashes. 
		 */ 
		name = skipslash(name); 
	}else if(name[0] == '#'){ 
1992/0825    
	} 
	else 
	if(name[0] == '#') { 
1990/0227    
		mntok = 0; 
1990/1009    
		if(name[1]=='M') 
1990/11211    
			error(Enonexist); 
1992/0811/sys/src/9/port/chan.c:472,4781992/0825/sys/src/9/port/chan.c:475,482
1990/0227    
		}else 
			name = nextelem(name, elem); 
1991/0427    
		c = (*devtab[t].attach)(elem); 
1990/0820    
	}else{ 
1992/0825    
	} 
	else { 
1991/0427    
		c = clone(u->dot, 0); 
1990/0820    
		name = skipslash(name);	/* eat leading ./ */ 
		if(*name == 0) 


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