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

1999/0709/port/sysfile.c (diff list | history)

1999/0629/sys/src/9/port/sysfile.c:111,1331999/0709/sys/src/9/port/sysfile.c:111,123 (short | long | prev | next)
1993/1004    
 
1999/0528    
	validaddr(arg[1], arg[2], 1); 
1993/1004    
 
1997/1205    
	/* 
	 * Undomount below may cclose the chan so bump the 
	 * reference count to guard against it going to zero 
	 * and being freed. 
	 */ 
	c = fdtochan(arg[0], -1, 0, 1); 
	if(waserror()) { 
		cclose(c); 
		nexterror(); 
	} 
 
1999/0629    
	if(c->name == nil) 
		snprint((char*)arg[1], arg[2], "<null>"); 
	else 
		snprint((char*)arg[1], arg[2], "%s", c->name->s); 
                 
	poperror(); 
1999/0709    
	cclose(c); 
1993/1004    
	return 0; 
} 
 


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