Searched refs:fchdir (Results 1 - 25 of 30) sorted by relevance

12

/macosx-10.9.5/gnutar-452/gnutar/lib/
H A Dsave-cwd.c36 /* On systems without the fchdir function (WOE), pretend that open
38 Since chdir_long requires fchdir, use chdir instead. */
42 # undef fchdir macro
43 # define fchdir(Fd) (abort (), -1) macro
59 So, we prefer to use the open/fchdir approach, but fall back on
62 Some systems lack fchdir altogether: e.g., OS/2, pre-2001 Cygwin,
84 Upon failure, return -1 (errno is set by chdir or fchdir).
91 return fchdir (cwd->desc);
H A Dunistd_.h95 <http://www.opengroup.org/susv3xsh/fchdir.html>. */
96 extern int fchdir (int /*fd*/);
107 # undef fchdir macro
108 # define fchdir(f) \ macro
109 (GL_LINK_WARNING ("fchdir is unportable - " \
110 "use gnulib module fchdir for portability"), \
111 fchdir (f))
H A Dat-func.c28 working directory. Otherwise, resort to using save_cwd/fchdir,
66 if (fchdir (fd) != 0)
H A Dopenat.c37 Failing that, simulate it by doing save_cwd/fchdir/open/restore_cwd.
116 err = fchdir (fd);
165 that, simulate it by doing save_cwd/fchdir/opendir(".")/restore_cwd.
201 if (fchdir (fd) != 0)
231 Failing that, simulate it via save_cwd/fchdir/(stat|lstat)/restore_cwd.
253 Failing that, simulate it via save_cwd/fchdir/(unlink|rmdir)/restore_cwd.
H A Dchdir-long.c52 return fchdir (cdb->fd);
H A Dfchdir.c0 /* fchdir replacement.
251 /* Implement fchdir() in terms of chdir(). */
254 fchdir (int fd) function
H A Dgnulib.mk264 ## begin gnulib module fchdir
281 EXTRA_DIST += dirent_.h fchdir.c
283 EXTRA_libtar_a_SOURCES += fchdir.c
285 ## end gnulib module fchdir
/macosx-10.9.5/vim-53/src/
H A Dosdef2.h.in27 extern int fchdir __ARGS((int));
H A Dos_unix.c2370 static int dont_fchdir = FALSE; /* TRUE when fchdir() doesn't work */
2415 * Use fchdir() if possible, it's said to be faster and more
2417 * doing a fchdir() right now.
2422 if (fd >= 0 && fchdir(fd) < 0)
2491 MSG("fchdir() to previous dir");
2494 l = fchdir(fd);
/macosx-10.9.5/CPANInternal-140/PathTools/
H A DCwd.xs183 if (fchdir(fd) < 0) {
202 (void)fchdir(fd);
/macosx-10.9.5/Libc-997.90.3/gen/
H A Dnftw.c238 if (fchdir(cwd_fd) < 0) {
H A Dfts.c87 #define FCHDIR(sp, fd) (!ISSET(FTS_NOCHDIR) && fchdir(fd))
333 if (fchdir(sp->fts_rfd)) {
640 if (fchdir(fd))
/macosx-10.9.5/xnu-2422.115.4/bsd/man/man2/
H A DMakefile42 fchdir.2 \
/macosx-10.9.5/libarchive-29/libarchive/contrib/shar/
H A Dtree.c43 * regular dir or via fchdir(2) for a symlink).
238 fchdir(te->fd);
537 fchdir(t->initialDirFd);
/macosx-10.9.5/libarchive-29/libarchive/examples/minitar/
H A Dtree.c38 * regular dir or via fchdir(2) for a symlink).
197 fchdir(te->fd);
382 fchdir(t->initialDirFd);
/macosx-10.9.5/libarchive-29/libarchive/tar/
H A Dtree.c44 * regular dir or via fchdir(2) for a symlink).
100 #error fchdir function required.
341 if (fchdir(te->symlink_parent_fd) != 0) {
807 int s = fchdir(t->initialDirFd);
/macosx-10.9.5/kext_tools-326.95.1/
H A Dsafecalls.c36 * fchdir(savedir)
206 if ((bsderr = fchdir(dirfd))) goto finish;
276 cherr = fchdir(savedir);
/macosx-10.9.5/Libc-997.90.3/include/
H A Dunistd.h621 int fchdir(int);
/macosx-10.9.5/zsh-60/zsh/Src/
H A Dcompat.c241 * whether the fchdir() system call is available; if it is, it is assumed
501 if (fchdir(currdir) < 0) {
/macosx-10.9.5/libarchive-29/libarchive/
H A DCMakeLists.txt374 CHECK_FUNCTION_EXISTS_GLIBC(fchdir HAVE_FCHDIR)
/macosx-10.9.5/file_cmds-230/pax/
H A Dar_subs.c97 if (fchdir(fcwd) == -1) {
/macosx-10.9.5/shell_cmds-175/find/
H A Dfunction.c708 if (!(plan->flags & F_EXECDIR) && fchdir(dotfd)) {
/macosx-10.9.5/libarchive-29/libarchive/libarchive/
H A Darchive_write_disk.c457 r = fchdir(a->restore_pwd);
/macosx-10.9.5/launchd-842.92.1/support/
H A Dlaunchctl.c4275 (void)posix_assumes_zero(fchdir(currend_dir_fd));
/macosx-10.9.5/xnu-2422.115.4/tools/tests/xnu_quick_test/
H A Dtests.c764 * Test chdir and fchdir system calls.
829 /* now change our current directory to "/" and use fchdir to get back to our test directory */
843 /* get a file descriptor to the test directory for use with fchdir */
851 my_err = fchdir( my_fd );
853 printf( "fchdir call failed. got errno %d - %s. \n", errno, strerror( errno ) );

Completed in 283 milliseconds

12