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

1992/0226/port/devsrv.c (diff list | history)

1992/0114/sys/src/9/port/devsrv.c:199,2071992/0226/sys/src/9/port/devsrv.c:199,212 (short | long | prev | next)
1990/0227    
	fd = strtoul(buf, 0, 0); 
1991/1127    
	f = u->p->fgrp; 
	lock(f); 
1992/0226    
	if(waserror()){ 
		unlock(f); 
		nexterror(); 
	} 
1991/1011    
	fdtochan(fd, -1, 0);	/* error check only */ 
1991/1219    
	srv[i].chan = f->fd[fd]; 
	incref(srv[i].chan); 
1991/1127    
	unlock(f); 
1992/0226    
	poperror(); 
1990/0227    
	return n; 
} 


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