Lines Matching refs:fdinuse
1220 static int *fdinuse = NULL; /* The list of files opened by csh */
1221 static int nbytesused = 0; /* no of bytes allocated to fdinuse */
1222 static int max_fd = 0; /* The maximum descriptor in fdinuse */
1233 * hold of them. And initialize fdinuse list and set
1243 * descriptors that we actually opened (as recorded in fdinuse).
1276 CSH_FD_ISSET(fd, fdinuse)) {
1316 if (fdinuse == NULL) {
1319 fdinuse = (int *)xalloc(nbytesused);
1354 CSH_FD_ZERO(fdinuse, nbytesused);
1361 * You only need to remove files in fdinuse list.
1371 if (CSH_FD_ISSET(f, fdinuse) &&
1376 CSH_FD_ZERO(fdinuse, nbytesused);
1382 * if you want the process to affect fdinuse (e.g., fork, but
1395 * are kept in "fdinuse, Fd In Use" list.
1398 * used to mark the fact in "fdinuse" list.
1404 * used to remove the fd from "fdinuse" list.
1424 CSH_FD_SET(fd, fdinuse);
1442 CSH_FD_CLR(fd, fdinuse);
1445 if (CSH_FD_ISSET(i, fdinuse)) {