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

1990/0329/gnot/dev.c (diff list | history)

1990/03091/sys/src/9/gnot/dev.c:67,721990/0329/sys/src/9/gnot/dev.c:67,74 (short | long | prev | next)
1990/03091    
Chan * 
devclone(Chan *c, Chan *nc) 
{ 
1990/0329    
	if(c->flag & COPEN) 
		panic("clone of open file type %c\n", devchar[c->type]); 
1990/03091    
	if(nc == 0) 
		nc = newchan(); 
	nc->type = c->type; 


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