Home
last modified time | relevance | path

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

/freebsd/bin/pax/
H A Dpax.c63 int cwdfd; /* starting cwd */ variable
226 cwdfd = open(".", O_RDONLY | O_CLOEXEC); in main()
227 if (cwdfd < 0) { in main()
H A Dextern.h205 extern int cwdfd;
H A Dftree.c298 if (fchdir(cwdfd) < 0) { in ftree_arg()
H A Dar_subs.c326 if (fchdir(cwdfd) != 0) in extract()
/freebsd/usr.bin/calendar/
H A Dio.c106 static int cwdfd = -1; in cal_fopen() local
125 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()