| 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,40 – 1997/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; } | |
| 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; | |