Searched refs:newfd (Results 1 – 2 of 2) sorted by relevance
1015 int ret, oerrno, newfd; in fts_safe_changedir() local1018 newfd = fd; in fts_safe_changedir()1021 if (fd < 0 && (newfd = open(path, O_RDONLY|O_DIRECTORY|O_CLOEXEC, 0)) < 0) in fts_safe_changedir()1023 if (fstat(newfd, &sb)) { in fts_safe_changedir()1032 ret = fchdir(newfd); in fts_safe_changedir()1036 (void)close(newfd); in fts_safe_changedir()
52 int dup2(int oldfd, int newfd) lp32