wd 1707 maint/gnulib/lib/fts.c char *wd = getcwdat (fd, NULL, 0); wd 1708 maint/gnulib/lib/fts.c fprintf (stream, "%d: %d: %s\n", i, fd, wd); wd 1709 maint/gnulib/lib/fts.c free (wd); wd 65 maint/gnulib/lib/mkancesdirs.c mkancesdirs (char *file, struct savewd *wd, wd 122 maint/gnulib/lib/mkancesdirs.c savewd_chdir (wd, component, savewd_chdir_options, NULL); wd 86 maint/gnulib/lib/mkdir-p.c struct savewd *wd, wd 96 maint/gnulib/lib/mkdir-p.c int mkdir_errno = (IS_ABSOLUTE_FILE_NAME (dir) ? 0 : savewd_errno (wd)); wd 105 maint/gnulib/lib/mkdir-p.c prefix_len = mkancesdirs (dir, wd, make_ancestor, options); wd 171 maint/gnulib/lib/mkdir-p.c savewd_chdir (wd, dir + prefix_len, wd 26 maint/gnulib/lib/mkdir-p.h struct savewd *wd, wd 44 maint/gnulib/lib/savewd.c savewd_save (struct savewd *wd) wd 46 maint/gnulib/lib/savewd.c switch (wd->state) wd 54 maint/gnulib/lib/savewd.c wd->state = FD_STATE; wd 55 maint/gnulib/lib/savewd.c wd->val.fd = fd; wd 60 maint/gnulib/lib/savewd.c wd->state = ERROR_STATE; wd 61 maint/gnulib/lib/savewd.c wd->val.errnum = errno; wd 65 maint/gnulib/lib/savewd.c wd->state = FORKING_STATE; wd 66 maint/gnulib/lib/savewd.c wd->val.child = -1; wd 69 maint/gnulib/lib/savewd.c if (wd->val.child < 0) wd 74 maint/gnulib/lib/savewd.c wd->val.child = fork (); wd 75 maint/gnulib/lib/savewd.c if (wd->val.child != 0) wd 77 maint/gnulib/lib/savewd.c if (0 < wd->val.child) wd 79 maint/gnulib/lib/savewd.c wd->state = ERROR_STATE; wd 80 maint/gnulib/lib/savewd.c wd->val.errnum = errno; wd 99 maint/gnulib/lib/savewd.c savewd_chdir (struct savewd *wd, char const *dir, int options, wd 126 maint/gnulib/lib/savewd.c if (savewd_save (wd)) wd 136 maint/gnulib/lib/savewd.c switch (wd->state) wd 139 maint/gnulib/lib/savewd.c wd->state = FD_POST_CHDIR_STATE; wd 148 maint/gnulib/lib/savewd.c assure (wd->val.child == 0); wd 168 maint/gnulib/lib/savewd.c savewd_restore (struct savewd *wd, int status) wd 170 maint/gnulib/lib/savewd.c switch (wd->state) wd 180 maint/gnulib/lib/savewd.c if (fchdir (wd->val.fd) == 0) wd 182 maint/gnulib/lib/savewd.c wd->state = FD_STATE; wd 188 maint/gnulib/lib/savewd.c close (wd->val.fd); wd 189 maint/gnulib/lib/savewd.c wd->state = ERROR_STATE; wd 190 maint/gnulib/lib/savewd.c wd->val.errnum = chdir_errno; wd 195 maint/gnulib/lib/savewd.c errno = wd->val.errnum; wd 202 maint/gnulib/lib/savewd.c pid_t child = wd->val.child; wd 210 maint/gnulib/lib/savewd.c wd->val.child = -1; wd 226 maint/gnulib/lib/savewd.c savewd_finish (struct savewd *wd) wd 228 maint/gnulib/lib/savewd.c switch (wd->state) wd 236 maint/gnulib/lib/savewd.c close (wd->val.fd); wd 240 maint/gnulib/lib/savewd.c assure (wd->val.child < 0); wd 247 maint/gnulib/lib/savewd.c wd->state = FINAL_STATE; wd 261 maint/gnulib/lib/savewd.c savewd_delegating (struct savewd const *wd) wd 263 maint/gnulib/lib/savewd.c return wd->state == FORKING_STATE && 0 < wd->val.child; wd 274 maint/gnulib/lib/savewd.c struct savewd wd; wd 275 maint/gnulib/lib/savewd.c savewd_init (&wd); wd 283 maint/gnulib/lib/savewd.c if (! savewd_delegating (&wd)) wd 285 maint/gnulib/lib/savewd.c int s = act (file[i], &wd, options); wd 292 maint/gnulib/lib/savewd.c int r = savewd_restore (&wd, exit_status); wd 298 maint/gnulib/lib/savewd.c savewd_finish (&wd); wd 302 maint/gnulib/lib/savewd.c int s = act (file[i], &wd, options); wd 79 maint/gnulib/lib/savewd.h savewd_init (struct savewd *wd) wd 81 maint/gnulib/lib/savewd.h wd->state = INITIAL_STATE; wd 111 maint/gnulib/lib/savewd.h int savewd_chdir (struct savewd *wd, char const *dir, int options, wd 120 maint/gnulib/lib/savewd.h int savewd_restore (struct savewd *wd, int status); wd 124 maint/gnulib/lib/savewd.h savewd_errno (struct savewd const *wd) wd 126 maint/gnulib/lib/savewd.h return (wd->state == ERROR_STATE ? wd->val.errnum : 0); wd 131 maint/gnulib/lib/savewd.h void savewd_finish (struct savewd *wd); wd 299 maint/gnulib/tests/test-poll.c test_pair (int rd, int wd) wd 302 maint/gnulib/tests/test-poll.c if (poll1_wait (wd, POLLIN | POLLRDNORM | POLLOUT | POLLWRNORM | POLLRDBAND) wd 305 maint/gnulib/tests/test-poll.c if (poll1_nowait (wd, POLLIN | POLLRDNORM | POLLOUT | POLLRDBAND) != POLLOUT) wd 307 maint/gnulib/tests/test-poll.c if (poll1_nowait (wd, POLLIN | POLLRDNORM | POLLWRNORM | POLLRDBAND) wd 311 maint/gnulib/tests/test-poll.c ASSERT (write (wd, "foo", 3) == 3); wd 393 maint/gnulib/tests/test-select.h test_pair (int rd, int wd, select_fn my_select) wd 396 maint/gnulib/tests/test-select.h if (do_select_wait (wd, SEL_IN | SEL_OUT | SEL_EXC, my_select) != SEL_OUT) wd 398 maint/gnulib/tests/test-select.h if (do_select_nowait (wd, SEL_IN | SEL_OUT | SEL_EXC, my_select) != SEL_OUT) wd 401 maint/gnulib/tests/test-select.h ASSERT (write (wd, "foo", 3) == 3);