Searched refs:cwdfd (Results 1 - 5 of 5) sorted by relevance

/freebsd-current/bin/pax/
H A Dpax.c63 int cwdfd; /* starting cwd */ variable
226 cwdfd = open(".", O_RDONLY | O_CLOEXEC);
227 if (cwdfd < 0) {
H A Dextern.h205 extern int cwdfd;
H A Dftree.c298 if (fchdir(cwdfd) < 0) {
H A Dar_subs.c326 if (fchdir(cwdfd) != 0)
/freebsd-current/usr.bin/calendar/
H A Dio.c106 static int cwdfd = -1; local
125 if (!doall && cwdfd == -1) {
126 cwdfd = open(".", O_DIRECTORY | O_PATH);
127 if (cwdfd == -1)
134 if (cwdfd != -1) {
135 if ((fd = openat(cwdfd, file, O_RDONLY)) != -1) {

Completed in 121 milliseconds