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

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

1991/0411/sys/src/9/port/dev.c:107,1161991/0414/sys/src/9/port/dev.c:107,127 (short | long | prev | next)
Bug fix: close nc if walk errors out.
rsc Fri Mar 4 12:44:25 2005
1990/0227    
		} 
} 
 
1991/0411    
int devclwalk(Chan *c, Chan *nc, char *name, Dirtab *tab, int ntab, Devgen *gen) 
1991/0414    
Chan* 
devclwalk(Chan *c, char *name) 
1991/0411    
{ 
	c = devclone(c, nc); 
	return devwalk(c, name, tab, ntab, gen); 
1991/0414    
	Chan *nc; 
 
	nc = 0; 
	if(waserror()){ 
		if(nc) 
			close(nc); 
		return 0; 
	} 
	nc = (*devtab[c->type].clone)(c, 0); 
	(*devtab[nc->type].walk)(nc, name); 
	poperror(); 
	return nc; 
1991/0411    
} 
 
1990/0227    
void 


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