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

1990/0914/port/chan.c (diff list | history)

1990/0907/sys/src/9/port/chan.c:372,3821990/0914/sys/src/9/port/chan.c:372,392 (short | long | prev | next)
1990/0227    
	if(name[0])			/* walk succeeded */ 
		c->flag &= ~CMOUNT; 
 
1990/0914    
	if(domnt){ 
		if(waserror()){ 
			print("domount error\n"); 
			if(!first) 
				close(c); 
			return 0; 
		} 
		c = domount(c); 
		poperror(); 
	} 
 
1990/0227    
	if(!first) 
		close(ac); 
 
	if(domnt) 
		return domount(c); 
1990/0914    
 
1990/0227    
	return c; 
 
    Notfound: 
1990/0907/sys/src/9/port/chan.c:425,4301990/0914/sys/src/9/port/chan.c:435,445
1990/0227    
	return nc; 
} 
 
1990/0914    
void 
saveregisters(void) 
{ 
} 
 
1990/0227    
/* 
 * Turn a name into a channel. 
 * &name[0] is known to be a valid address.  It may be a kernel address. 
1990/0907/sys/src/9/port/chan.c:542,5471990/0914/sys/src/9/port/chan.c:557,563
1990/0820    
			c = nc; 
		} 
1990/0227    
	Open: 
1990/0914    
		saveregisters();	/* else error() in open has wrong value of c saved */ 
1990/0227    
		c = (*devtab[c->type].open)(c, omode); 
1990/08141    
		if(omode & OCEXEC) 
			c->flag |= CCEXEC; 


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