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

1997/0606/port/sysfile.c (diff list | history)

1997/0603/sys/src/9/port/sysfile.c:30,401997/0606/sys/src/9/port/sysfile.c:30,43 (short | long | prev | next)
1997/0603    
	 * of fid in 9P 
	 */ 
	if(f->nfd >= 5000){ 
1997/0606    
   Exhausted: 
1997/0603    
		unlock(f); 
		exhausted("file descriptors"); 
		return -1; 
	} 
	newfd = smalloc((f->nfd+DELTAFD)*sizeof(Chan*)); 
1997/0606    
	newfd = malloc((f->nfd+DELTAFD)*sizeof(Chan*)); 
	if(newfd == 0) 
		goto Exhausted; 
1997/0603    
	oldfd = f->fd; 
	memmove(newfd, oldfd, f->nfd*sizeof(Chan*)); 
	f->fd = newfd; 


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