Home | History | Annotate | Download | only in openbsd-compat

Lines Matching refs:fd

71     long fd, maxfd;
78 /* Check for a /proc/$$/fd directory. */
79 len = snprintf(fdpath, sizeof(fdpath), "/proc/%ld/fd", (long)getpid());
82 fd = strtol(dent->d_name, &endp, 10);
84 fd >= 0 && fd < INT_MAX && fd >= lowfd && fd != dirfd(dirp))
85 (void) close((int) fd);
94 * and then drop the rlimit such that it is below the open fd.
104 for (fd = lowfd; fd < maxfd; fd++)
105 (void) close((int) fd);