Home | History | Annotate | Download | only in import

Lines Matching defs:cwd

30 # include "save-cwd.h"
110 struct saved_cwd cwd;
111 if (save_cwd (&cwd) != 0)
113 dir = fdopendir_with_dup (fd, -1, &cwd);
115 free_cwd (&cwd);
132 If REPLACE_FCHDIR or CWD is null, use opendir ("/proc/self/fd/...",
133 falling back on fchdir metadata. Otherwise, CWD is a saved version
134 of the working directory; use fchdir/opendir(".")/restore_cwd(CWD). */
136 fdopendir_with_dup (int fd, int older_dupfd, struct saved_cwd const *cwd)
149 dir = fdopendir_with_dup (fd, dupfd, cwd);
155 dir = fd_clone_opendir (dupfd, cwd);
176 fd_clone_opendir (int fd, struct saved_cwd const *cwd)
178 if (REPLACE_FCHDIR || ! cwd)
218 if (restore_cwd (cwd) != 0)