Lines Matching refs:fd
86 #define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd))
544 int fd, rc, serrno;
597 if ((fd = open(".", O_RDONLY | O_CLOEXEC, 0)) < 0)
601 rc = fchdir(fd);
604 (void)close(fd);
912 * the saved fd; if one of fts_open()'s arguments is a relative path
1185 * Change to dir specified by fd or p->fts_accpath without getting
1190 fts_safe_changedir(FTS *sp, FTSENT *p, int fd, char *path)
1195 newfd = fd;
1198 if (fd < 0 && (newfd = open(path, O_RDONLY | O_DIRECTORY |
1213 if (fd < 0)