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

1990/03291/gnot/sysfile.c (diff list | history)

1990/03091/sys/src/9/gnot/sysfile.c:406,4151990/03291/sys/src/9/gnot/sysfile.c:406,411 (short | long | prev | next)
1990/03091    
	c[1] = (*d->clone)(c[0], 0); 
	c[0] = (*d->open)(c[0], ORDWR); 
	c[1] = (*d->open)(c[1], ORDWR); 
	c[0]->mode = 2; 
	c[1]->mode = 2; 
	c[0]->flag |= COPEN; 
	c[1]->flag |= COPEN; 
	fd[0] = newfd(); 
	u->fd[fd[0]] = c[0]; 
	fd[1] = newfd(); 


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