cwd 215 maint/gnulib/lib/at-func2.c char *cwd = getcwd (NULL, 0); cwd 216 maint/gnulib/lib/at-func2.c if (!cwd) cwd 223 maint/gnulib/lib/at-func2.c file1_alt = mfile_name_concat (cwd, file1, NULL); cwd 227 maint/gnulib/lib/at-func2.c free (cwd); cwd 232 maint/gnulib/lib/at-func2.c free (cwd); /* Reduced to case 3. */ cwd 236 maint/gnulib/lib/at-func2.c char *cwd = getcwd (NULL, 0); cwd 237 maint/gnulib/lib/at-func2.c if (!cwd) cwd 244 maint/gnulib/lib/at-func2.c file2_alt = mfile_name_concat (cwd, file2, NULL); cwd 248 maint/gnulib/lib/at-func2.c free (cwd); cwd 253 maint/gnulib/lib/at-func2.c free (cwd); /* Reduced to case 12. */ cwd 92 maint/gnulib/lib/fchdir.c char *cwd; cwd 99 maint/gnulib/lib/fchdir.c cwd = getcwd (NULL, 0); cwd 100 maint/gnulib/lib/fchdir.c if (!cwd || (dir[0] == '.' && dir[1] == '\0')) cwd 101 maint/gnulib/lib/fchdir.c return cwd; cwd 103 maint/gnulib/lib/fchdir.c result = mfile_name_concat (cwd, dir, NULL); cwd 104 maint/gnulib/lib/fchdir.c free (cwd); cwd 110 maint/gnulib/lib/fdopendir.c struct saved_cwd cwd; cwd 111 maint/gnulib/lib/fdopendir.c if (save_cwd (&cwd) != 0) cwd 113 maint/gnulib/lib/fdopendir.c dir = fdopendir_with_dup (fd, -1, &cwd); cwd 115 maint/gnulib/lib/fdopendir.c free_cwd (&cwd); cwd 136 maint/gnulib/lib/fdopendir.c fdopendir_with_dup (int fd, int older_dupfd, struct saved_cwd const *cwd) cwd 149 maint/gnulib/lib/fdopendir.c dir = fdopendir_with_dup (fd, dupfd, cwd); cwd 155 maint/gnulib/lib/fdopendir.c dir = fd_clone_opendir (dupfd, cwd); cwd 176 maint/gnulib/lib/fdopendir.c fd_clone_opendir (int fd, struct saved_cwd const *cwd) cwd 178 maint/gnulib/lib/fdopendir.c if (REPLACE_FCHDIR || ! cwd) cwd 218 maint/gnulib/lib/fdopendir.c if (restore_cwd (cwd) != 0) cwd 1694 maint/gnulib/lib/fts.c char *cwd = getcwdat (sp->fts_cwd_fd, NULL, 0); cwd 1695 maint/gnulib/lib/fts.c fprintf (stream, "=== %s ========== %s\n", msg, cwd); cwd 1696 maint/gnulib/lib/fts.c free (cwd); cwd 1747 maint/gnulib/lib/fts.c char *cwd = getcwdat (fd, NULL, 0); cwd 1748 maint/gnulib/lib/fts.c error (0, errno, "ring : %s", cwd); cwd 1751 maint/gnulib/lib/fts.c free (cwd); cwd 125 maint/gnulib/lib/rename.c char *cwd = getcwd (NULL, 0); cwd 128 maint/gnulib/lib/rename.c if (!cwd || chdir (cwd)) cwd 138 maint/gnulib/lib/rename.c if (!IS_ABSOLUTE_FILE_NAME (dst) && chdir (cwd)) cwd 142 maint/gnulib/lib/rename.c if (chdir (cwd)) cwd 144 maint/gnulib/lib/rename.c free (cwd); cwd 62 maint/gnulib/lib/save-cwd.c save_cwd (struct saved_cwd *cwd) cwd 64 maint/gnulib/lib/save-cwd.c cwd->name = NULL; cwd 66 maint/gnulib/lib/save-cwd.c cwd->desc = open (".", O_SEARCH | O_CLOEXEC); cwd 68 maint/gnulib/lib/save-cwd.c cwd->desc = fd_safer_flag (cwd->desc, O_CLOEXEC); cwd 69 maint/gnulib/lib/save-cwd.c if (cwd->desc < 0) cwd 71 maint/gnulib/lib/save-cwd.c cwd->name = getcwd (NULL, 0); cwd 72 maint/gnulib/lib/save-cwd.c return cwd->name ? 0 : -1; cwd 83 maint/gnulib/lib/save-cwd.c restore_cwd (const struct saved_cwd *cwd) cwd 85 maint/gnulib/lib/save-cwd.c if (0 <= cwd->desc) cwd 86 maint/gnulib/lib/save-cwd.c return fchdir (cwd->desc); cwd 88 maint/gnulib/lib/save-cwd.c return chdir_long (cwd->name); cwd 92 maint/gnulib/lib/save-cwd.c free_cwd (struct saved_cwd *cwd) cwd 94 maint/gnulib/lib/save-cwd.c if (cwd->desc >= 0) cwd 95 maint/gnulib/lib/save-cwd.c close (cwd->desc); cwd 96 maint/gnulib/lib/save-cwd.c free (cwd->name); cwd 30 maint/gnulib/lib/save-cwd.h int save_cwd (struct saved_cwd *cwd); cwd 31 maint/gnulib/lib/save-cwd.h int restore_cwd (const struct saved_cwd *cwd); cwd 32 maint/gnulib/lib/save-cwd.h void free_cwd (struct saved_cwd *cwd); cwd 37 maint/gnulib/lib/xgetcwd.c char *cwd = getcwd (NULL, 0); cwd 38 maint/gnulib/lib/xgetcwd.c if (! cwd && errno == ENOMEM) cwd 40 maint/gnulib/lib/xgetcwd.c return cwd; cwd 229 maint/gnulib/tests/test-execute-child.c char cwd[1024]; cwd 233 maint/gnulib/tests/test-execute-child.c if (_getcwd (cwd, sizeof (cwd)) == NULL) cwd 238 maint/gnulib/tests/test-execute-child.c if (getcwd (cwd, sizeof (cwd)) == NULL) cwd 241 maint/gnulib/tests/test-execute-child.c return (argc == 3 && strcmp (argv[2], cwd) == 0 ? 0 : 3); cwd 466 maint/gnulib/tests/test-execute-main.c char cwd[1024]; cwd 468 maint/gnulib/tests/test-execute-main.c ASSERT (_getcwd (cwd, sizeof (cwd)) != NULL); cwd 470 maint/gnulib/tests/test-execute-main.c ASSERT (getcwd (cwd, sizeof (cwd)) != NULL); cwd 473 maint/gnulib/tests/test-execute-main.c const char *prog_argv[4] = { prog_path, "21", cwd, NULL }; cwd 37 maint/gnulib/tests/test-fchdir.c char *cwd; cwd 41 maint/gnulib/tests/test-fchdir.c cwd = getcwd (NULL, 0); cwd 42 maint/gnulib/tests/test-fchdir.c ASSERT (cwd); cwd 76 maint/gnulib/tests/test-fchdir.c size_t len = strlen (cwd) + 1; cwd 80 maint/gnulib/tests/test-fchdir.c ASSERT (strcmp (cwd, new_dir) == 0); cwd 108 maint/gnulib/tests/test-fchdir.c free (cwd); cwd 52 maint/gnulib/tests/test-getcwd.c char *cwd; cwd 66 maint/gnulib/tests/test-getcwd.c cwd = getcwd (NULL, 0); cwd 67 maint/gnulib/tests/test-getcwd.c if (cwd == NULL) cwd 70 maint/gnulib/tests/test-getcwd.c initial_cwd_len = strlen (cwd); cwd 71 maint/gnulib/tests/test-getcwd.c free (cwd); cwd 92 maint/gnulib/tests/test-getcwd.c cwd = getcwd (NULL, 0); cwd 93 maint/gnulib/tests/test-getcwd.c if (cwd == NULL) cwd 96 maint/gnulib/tests/test-getcwd.c free (cwd); cwd 151 maint/gnulib/tests/test-getcwd.c char *cwd = getcwd (buf, PATH_MAX); cwd 157 maint/gnulib/tests/test-getcwd.c if (cwd == NULL) cwd 160 maint/gnulib/tests/test-getcwd.c cwd_len = initial_cwd_len = strlen (cwd); cwd 92 maint/gnulib/tests/test-linkat.c char *cwd; cwd 146 maint/gnulib/tests/test-linkat.c cwd = getcwd (NULL, 0); cwd 147 maint/gnulib/tests/test-linkat.c ASSERT (cwd); cwd 168 maint/gnulib/tests/test-linkat.c char *file1 = mfile_name_concat ((i & 4) ? ".." : cwd, BASE "xx", NULL); cwd 170 maint/gnulib/tests/test-linkat.c char *file2 = mfile_name_concat ((i & 1) ? ".." : cwd, BASE "xx", NULL); cwd 200 maint/gnulib/tests/test-linkat.c free (cwd); cwd 351 maint/gnulib/tests/test-linkat.c ASSERT (symlink (cwd, BASE "sub1/link") == 0); cwd 381 maint/gnulib/tests/test-linkat.c free (cwd); cwd 58 maint/gnulib/tests/test-renameat.c char *cwd; cwd 106 maint/gnulib/tests/test-renameat.c cwd = getcwd (NULL, 0); cwd 107 maint/gnulib/tests/test-renameat.c ASSERT (cwd); cwd 127 maint/gnulib/tests/test-renameat.c char *file1 = file_name_concat ((i & 4) ? ".." : cwd, BASE "xx", NULL); cwd 129 maint/gnulib/tests/test-renameat.c char *file2 = file_name_concat ((i & 1) ? ".." : cwd, BASE "xx", NULL); cwd 202 maint/gnulib/tests/test-renameat.c free (cwd); cwd 61 maint/gnulib/tests/test-renameatu.c char *cwd; cwd 109 maint/gnulib/tests/test-renameatu.c cwd = getcwd (NULL, 0); cwd 110 maint/gnulib/tests/test-renameatu.c ASSERT (cwd); cwd 130 maint/gnulib/tests/test-renameatu.c char *file1 = file_name_concat ((i & 4) ? ".." : cwd, BASE "xx", NULL); cwd 132 maint/gnulib/tests/test-renameatu.c char *file2 = file_name_concat ((i & 1) ? ".." : cwd, BASE "xx", NULL); cwd 215 maint/gnulib/tests/test-renameatu.c free (cwd); cwd 30 maint/gnulib/tests/test-stat.h char *cwd = getcwd (NULL, 0); cwd 32 maint/gnulib/tests/test-stat.h ASSERT (cwd); cwd 38 maint/gnulib/tests/test-stat.h ASSERT (func (cwd, &st2) == 0); cwd 104 maint/gnulib/tests/test-stat.h free (cwd);