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);
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)