Searched refs:cwdfd (Results 1 – 5 of 5) sorted by relevance
63 int cwdfd; /* starting cwd */ variable226 cwdfd = open(".", O_RDONLY | O_CLOEXEC); in main()227 if (cwdfd < 0) { in main()
205 extern int cwdfd;
298 if (fchdir(cwdfd) < 0) { in ftree_arg()
326 if (fchdir(cwdfd) != 0) in extract()
106 static int cwdfd = -1; in cal_fopen() local125 if (!doall && cwdfd == -1) { in cal_fopen()126 cwdfd = open(".", O_DIRECTORY | O_PATH); in cal_fopen()127 if (cwdfd == -1) in cal_fopen()134 if (cwdfd != -1) { in cal_fopen()135 if ((fd = openat(cwdfd, file, O_RDONLY)) != -1) { in cal_fopen()