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

1994/0611/port/sysfile.c (diff list | history)

1994/0406/sys/src/9/port/sysfile.c:94,1001994/0611/sys/src/9/port/sysfile.c:94,105 (short | long | prev | next)
1993/1004    
		error(Ebadarg); 
 
	c = fdtochan(arg[0], -1, 0, 0); 
                 
1994/0611    
	/* If we used open the chan will be at the first element 
	 * of a union rather than the mhead of the union. undomount 
	 * will make it look like we used Atodir rather than Aopen. 
	 */ 
	if(c->qid.path & CHDIR) 
		c = undomount(c); 
1993/1004    
	ptpath(c->path, (char*)arg[1], arg[2]); 
	return 0; 
} 


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