dir 187 daemons/based/based_io.c readCibXmlFile(const char *dir, const char *file, gboolean discard_status) dir 204 daemons/based/based_io.c if (pcmk__daemon_can_write(dir, file) == FALSE dir 205 daemons/based/based_io.c || pcmk__daemon_can_write(dir, sigfile) == FALSE) { dir 210 daemons/based/based_io.c filename = crm_strdup_printf("%s/%s", dir, file); dir 211 daemons/based/based_io.c sigfilepath = crm_strdup_printf("%s/%s", dir, sigfile); dir 84 daemons/based/pacemaker-based.h xmlNode *readCibXmlFile(const char *dir, const char *file, dir 30 include/crm/common/io_internal.h bool pcmk__daemon_can_write(const char *dir, const char *file); dir 35 include/pcmki/pcmki_simulate.h void pcmk__profile_dir(const char *dir, long long repeat, dir 492 lib/cib/cib_client.c const char *dir = getenv("CIB_shadow_dir"); dir 494 lib/cib/cib_client.c if (dir == NULL) { dir 509 lib/cib/cib_client.c dir = CRM_CONFIG_DIR; dir 520 lib/cib/cib_client.c dir = pcmk__get_tmpdir(); dir 533 lib/cib/cib_client.c dir = cib_home; dir 539 lib/cib/cib_client.c fullname = crm_strdup_printf("%s/%s", dir, name); dir 328 lib/common/io.c pcmk__daemon_can_write(const char *dir, const char *file) dir 336 lib/common/io.c CRM_ASSERT(dir != NULL); dir 340 lib/common/io.c full_file = crm_strdup_printf("%s/%s", dir, file); dir 360 lib/common/io.c target = dir; dir 361 lib/common/io.c s_res = stat(dir, &buf); dir 363 lib/common/io.c crm_err("%s not found: %s", dir, pcmk_rc_str(errno)); dir 368 lib/common/io.c dir, (unsigned long) buf.st_mode); dir 549 lib/common/io.c const char *dir = getenv("TMPDIR"); dir 551 lib/common/io.c return (dir && (*dir == '/'))? dir : "/tmp"; dir 567 lib/common/io.c DIR *dir; dir 589 lib/common/io.c dir = opendir("/proc/self/fd"); dir 590 lib/common/io.c if (dir == NULL) { dir 591 lib/common/io.c dir = opendir("/dev/fd"); dir 594 lib/common/io.c dir = opendir("/dev/fd"); dir 596 lib/common/io.c if (dir != NULL) { dir 598 lib/common/io.c int dir_fd = dirfd(dir); dir 600 lib/common/io.c while ((entry = readdir(dir)) != NULL) { dir 613 lib/common/io.c closedir(dir); dir 378 lib/pacemaker/pcmk_simulate.c pcmk__profile_dir(const char *dir, long long repeat, dir 384 lib/pacemaker/pcmk_simulate.c int file_num = scandir(dir, &namelist, 0, alphasort); dir 405 lib/pacemaker/pcmk_simulate.c dir, namelist[file_num]->d_name); dir 1420 lib/services/services_linux.c char *dir = NULL; dir 1427 lib/services/services_linux.c for (dir = strtok(dirs, ":"); dir != NULL; dir = strtok(NULL, ":")) { dir 1428 lib/services/services_linux.c GList *tmp = services_os_get_single_directory_list(dir, files, executable); dir 35 lib/services/services_ocf.c char *dir = NULL; dir 43 lib/services/services_ocf.c for (dir = strtok(dirs, ":"); dir != NULL; dir = strtok(NULL, ":")) { dir 46 lib/services/services_ocf.c sprintf(buffer, "%s/%s", dir, provider); dir 90 lib/services/services_ocf.c char *dir = NULL; dir 98 lib/services/services_ocf.c for (dir = strtok(dirs, ":"); dir != NULL; dir = strtok(NULL, ":")) { dir 99 lib/services/services_ocf.c buf = crm_strdup_printf("%s/%s/%s", dir, provider, agent); dir 133 lib/services/services_ocf.c for (char *dir = strtok(dirs, ":"); dir != NULL; dir = strtok(NULL, ":")) { dir 134 lib/services/services_ocf.c char *buf = crm_strdup_printf("%s/%s/%s", dir, op->provider, op->agent); dir 126 libltdl/ltdl.c static int find_module (lt_dlhandle *handle, const char *dir, dir 148 libltdl/ltdl.c const char *dir); dir 542 libltdl/ltdl.c find_module (lt_dlhandle *handle, const char *dir, const char *libdir, dir 569 libltdl/ltdl.c if (tryall_dlopen_module (handle, dir, objdir, dir 576 libltdl/ltdl.c if (dir && (tryall_dlopen_module (handle, (const char *) 0, dir 577 libltdl/ltdl.c dir, dlname, advise) == 0)) dir 1166 libltdl/ltdl.c char * dir = 0; dir 1236 libltdl/ltdl.c dir = MALLOC (char, 1+ dirlen); dir 1237 libltdl/ltdl.c if (!dir) dir 1243 libltdl/ltdl.c strlcpy (dir, canonical, dirlen); dir 1244 libltdl/ltdl.c dir[dirlen] = LT_EOS_CHAR; dir 1286 libltdl/ltdl.c if (!dir) dir 1352 libltdl/ltdl.c if (!dir) dir 1357 libltdl/ltdl.c file = find_file (user_search_path, base_name, &dir); dir 1363 libltdl/ltdl.c file = find_file (search_path, base_name, &dir); dir 1371 libltdl/ltdl.c file = find_file (search_path, base_name, &dir); dir 1377 libltdl/ltdl.c file = find_file (sys_dlsearch_path, base_name, &dir); dir 1423 libltdl/ltdl.c if (find_module (&newhandle, dir, libdir, dlname, old_name, dir 1467 libltdl/ltdl.c if ((dir || (!find_handle (user_search_path, base_name, dir 1510 libltdl/ltdl.c FREE (dir); dir 2119 libltdl/ltdl.c lt_dlpath_insertdir (char **ppath, char *before, const char *dir) dir 2127 libltdl/ltdl.c assert (dir && *dir); dir 2129 libltdl/ltdl.c if (canonicalize_path (dir, &canonical) != 0) dir 2141 libltdl/ltdl.c assert (dir); /* Without DIR, don't call this function! */ dir 2143 libltdl/ltdl.c *ppath = lt__strdup (dir); dir 2171 libltdl/ltdl.c if (lt_argz_insert (&argz, &argz_len, before, dir) != 0) dir 91 maint/gnulib/lib/alloca.c int dir, dummy = 0; dir 95 maint/gnulib/lib/alloca.c dir = depth ? find_stack_direction (addr, depth - 1) : 0; dir 96 maint/gnulib/lib/alloca.c return dir + dummy; dir 159 maint/gnulib/lib/canonicalize-lgpl.c dir_check (char *dir, char *dirend) dir 162 maint/gnulib/lib/canonicalize-lgpl.c return file_accessible (dir); dir 116 maint/gnulib/lib/canonicalize.c dir_check (char *dir, char *dirend) dir 119 maint/gnulib/lib/canonicalize.c return file_accessible (dir); dir 73 maint/gnulib/lib/chdir-long.c cdb_advance_fd (struct cd_buf *cdb, char const *dir) dir 75 maint/gnulib/lib/chdir-long.c int new_fd = openat (cdb->fd, dir, dir 110 maint/gnulib/lib/chdir-long.c chdir_long (char *dir) dir 112 maint/gnulib/lib/chdir-long.c int e = chdir (dir); dir 117 maint/gnulib/lib/chdir-long.c size_t len = strlen (dir); dir 118 maint/gnulib/lib/chdir-long.c char *dir_end = dir + len; dir 130 maint/gnulib/lib/chdir-long.c n_leading_slash = strspn (dir, "/"); dir 142 maint/gnulib/lib/chdir-long.c char *slash = memchr (dir + 3, '/', dir_end - (dir + 3)); dir 149 maint/gnulib/lib/chdir-long.c err = cdb_advance_fd (&cdb, dir); dir 153 maint/gnulib/lib/chdir-long.c dir = find_non_slash (slash + 1); dir 159 maint/gnulib/lib/chdir-long.c dir += n_leading_slash; dir 162 maint/gnulib/lib/chdir-long.c assure (*dir != '/'); dir 163 maint/gnulib/lib/chdir-long.c assure (dir <= dir_end); dir 165 maint/gnulib/lib/chdir-long.c while (PATH_MAX <= dir_end - dir) dir 171 maint/gnulib/lib/chdir-long.c char *slash = memrchr (dir, '/', PATH_MAX); dir 179 maint/gnulib/lib/chdir-long.c assure (slash - dir < PATH_MAX); dir 180 maint/gnulib/lib/chdir-long.c err = cdb_advance_fd (&cdb, dir); dir 185 maint/gnulib/lib/chdir-long.c dir = find_non_slash (slash + 1); dir 188 maint/gnulib/lib/chdir-long.c if (dir < dir_end) dir 190 maint/gnulib/lib/chdir-long.c if (cdb_advance_fd (&cdb, dir) != 0) dir 29 maint/gnulib/lib/chdir-long.h int chdir_long (char *dir); dir 229 maint/gnulib/lib/clean-temp-simple.c struct tempdir *dir = dir_cleanup_list.tempdir_list[i]; dir 231 maint/gnulib/lib/clean-temp-simple.c if (dir != NULL) dir 237 maint/gnulib/lib/clean-temp-simple.c iter = gl_list_iterator (dir->files); dir 246 maint/gnulib/lib/clean-temp-simple.c iter = gl_list_iterator (dir->subdirs); dir 255 maint/gnulib/lib/clean-temp-simple.c rmdir (dir->dirname); dir 273 maint/gnulib/lib/clean-temp.c register_temp_file (struct temp_dir *dir, dir 276 maint/gnulib/lib/clean-temp.c struct tempdir *tmpdir = (struct tempdir *)dir; dir 292 maint/gnulib/lib/clean-temp.c unregister_temp_file (struct temp_dir *dir, dir 295 maint/gnulib/lib/clean-temp.c struct tempdir *tmpdir = (struct tempdir *)dir; dir 319 maint/gnulib/lib/clean-temp.c register_temp_subdir (struct temp_dir *dir, dir 322 maint/gnulib/lib/clean-temp.c struct tempdir *tmpdir = (struct tempdir *)dir; dir 339 maint/gnulib/lib/clean-temp.c unregister_temp_subdir (struct temp_dir *dir, dir 342 maint/gnulib/lib/clean-temp.c struct tempdir *tmpdir = (struct tempdir *)dir; dir 380 maint/gnulib/lib/clean-temp.c cleanup_temp_file (struct temp_dir *dir, dir 385 maint/gnulib/lib/clean-temp.c err = clean_temp_unlink (absolute_file_name, dir->cleanup_verbose); dir 386 maint/gnulib/lib/clean-temp.c unregister_temp_file (dir, absolute_file_name); dir 394 maint/gnulib/lib/clean-temp.c cleanup_temp_subdir (struct temp_dir *dir, dir 399 maint/gnulib/lib/clean-temp.c err = do_rmdir (absolute_dir_name, dir->cleanup_verbose); dir 400 maint/gnulib/lib/clean-temp.c unregister_temp_subdir (dir, absolute_dir_name); dir 409 maint/gnulib/lib/clean-temp.c cleanup_temp_dir_contents (struct temp_dir *dir) dir 411 maint/gnulib/lib/clean-temp.c struct tempdir *tmpdir = (struct tempdir *)dir; dir 425 maint/gnulib/lib/clean-temp.c err |= clean_temp_unlink (file, dir->cleanup_verbose); dir 439 maint/gnulib/lib/clean-temp.c err |= do_rmdir (subdir, dir->cleanup_verbose); dir 453 maint/gnulib/lib/clean-temp.c cleanup_temp_dir (struct temp_dir *dir) dir 459 maint/gnulib/lib/clean-temp.c struct tempdir *tmpdir = (struct tempdir *)dir; dir 463 maint/gnulib/lib/clean-temp.c err |= cleanup_temp_dir_contents (dir); dir 464 maint/gnulib/lib/clean-temp.c err |= do_rmdir (tmpdir->dirname, dir->cleanup_verbose); dir 84 maint/gnulib/lib/clean-temp.h extern int cleanup_temp_dir (struct temp_dir *dir); dir 103 maint/gnulib/lib/clean-temp.h extern void register_temp_file (struct temp_dir *dir, dir 109 maint/gnulib/lib/clean-temp.h extern void unregister_temp_file (struct temp_dir *dir, dir 115 maint/gnulib/lib/clean-temp.h extern void register_temp_subdir (struct temp_dir *dir, dir 122 maint/gnulib/lib/clean-temp.h extern void unregister_temp_subdir (struct temp_dir *dir, dir 127 maint/gnulib/lib/clean-temp.h extern int cleanup_temp_file (struct temp_dir *dir, dir 132 maint/gnulib/lib/clean-temp.h extern int cleanup_temp_subdir (struct temp_dir *dir, dir 137 maint/gnulib/lib/clean-temp.h extern int cleanup_temp_dir_contents (struct temp_dir *dir); dir 61 maint/gnulib/lib/dirchownmod.c dirchownmod (int fd, char const *dir, mode_t mkdir_mode, dir 66 maint/gnulib/lib/dirchownmod.c int result = (fd < 0 ? stat (dir, &st) : fstat (fd, &st)); dir 100 maint/gnulib/lib/dirchownmod.c ? lchown (dir, owner, group) dir 101 maint/gnulib/lib/dirchownmod.c : chown (dir, owner, group)); dir 122 maint/gnulib/lib/dirchownmod.c ? lchmod (dir, chmod_mode) dir 123 maint/gnulib/lib/dirchownmod.c : chmod (dir, chmod_mode)); dir 278 maint/gnulib/lib/dirent.in.h (const char *dir, struct dirent ***namelist, dir 286 maint/gnulib/lib/dirent.in.h (const char *dir, struct dirent ***namelist, dir 78 maint/gnulib/lib/dirname-lgpl.c char *dir = malloc (length + append_dot + 1); dir 79 maint/gnulib/lib/dirname-lgpl.c if (!dir) dir 81 maint/gnulib/lib/dirname-lgpl.c memcpy (dir, file, length); dir 83 maint/gnulib/lib/dirname-lgpl.c dir[length++] = '.'; dir 84 maint/gnulib/lib/dirname-lgpl.c dir[length] = '\0'; dir 85 maint/gnulib/lib/dirname-lgpl.c return dir; dir 90 maint/gnulib/lib/fchdir.c get_name (char const *dir) dir 95 maint/gnulib/lib/fchdir.c if (IS_ABSOLUTE_FILE_NAME (dir)) dir 96 maint/gnulib/lib/fchdir.c return strdup (dir); dir 100 maint/gnulib/lib/fchdir.c if (!cwd || (dir[0] == '.' && dir[1] == '\0')) dir 103 maint/gnulib/lib/fchdir.c result = mfile_name_concat (cwd, dir, NULL); dir 31 maint/gnulib/lib/fchmodat.c orig_fchmodat (int dir, char const *file, mode_t mode, int flags) dir 33 maint/gnulib/lib/fchmodat.c return fchmodat (dir, file, mode, flags); dir 65 maint/gnulib/lib/fchmodat.c fchmodat (int dir, char const *file, mode_t mode, int flags) dir 73 maint/gnulib/lib/fchmodat.c if (fstatat (dir, file, &st, flags & AT_SYMLINK_NOFOLLOW) < 0) dir 93 maint/gnulib/lib/fchmodat.c int fd = openat (dir, file, O_PATH | O_NOFOLLOW | O_CLOEXEC); dir 136 maint/gnulib/lib/fchmodat.c int fstatat_result = fstatat (dir, file, &st, AT_SYMLINK_NOFOLLOW); dir 151 maint/gnulib/lib/fchmodat.c return orig_fchmodat (dir, file, mode, flags); dir 103 maint/gnulib/lib/fdopendir.c DIR *dir = fdopendir_with_dup (fd, -1, NULL); dir 105 maint/gnulib/lib/fdopendir.c if (! REPLACE_FCHDIR && ! dir) dir 113 maint/gnulib/lib/fdopendir.c dir = fdopendir_with_dup (fd, -1, &cwd); dir 120 maint/gnulib/lib/fdopendir.c return dir; dir 145 maint/gnulib/lib/fdopendir.c DIR *dir; dir 149 maint/gnulib/lib/fdopendir.c dir = fdopendir_with_dup (fd, dupfd, cwd); dir 155 maint/gnulib/lib/fdopendir.c dir = fd_clone_opendir (dupfd, cwd); dir 157 maint/gnulib/lib/fdopendir.c if (! dir) dir 168 maint/gnulib/lib/fdopendir.c return dir; dir 180 maint/gnulib/lib/fdopendir.c DIR *dir = NULL; dir 186 maint/gnulib/lib/fdopendir.c dir = opendir (proc_file); dir 192 maint/gnulib/lib/fdopendir.c if (! dir && EXPECTED_ERRNO (saved_errno)) dir 208 maint/gnulib/lib/fdopendir.c return dir; dir 216 maint/gnulib/lib/fdopendir.c DIR *dir = opendir ("."); dir 221 maint/gnulib/lib/fdopendir.c return dir; dir 43 maint/gnulib/lib/fdutimensat.c fdutimensat (int fd, int dir, char const *file, struct timespec const ts[2], dir 50 maint/gnulib/lib/fdutimensat.c result = utimensat (dir, file, ts, atflag); dir 48 maint/gnulib/lib/filenamecat-lgpl.c mfile_name_concat (char const *dir, char const *base, char **base_in_result) dir 50 maint/gnulib/lib/filenamecat-lgpl.c char const *dirbase = last_component (dir); dir 52 maint/gnulib/lib/filenamecat-lgpl.c size_t dirlen = dirbase - dir + dirbaselen; dir 58 maint/gnulib/lib/filenamecat-lgpl.c if (! ISSLASH (dir[dirlen - 1]) && ! ISSLASH (*base)) dir 78 maint/gnulib/lib/filenamecat-lgpl.c p = mempcpy (p_concat, dir, dirlen); dir 35 maint/gnulib/lib/filenamecat.c file_name_concat (char const *dir, char const *base, char **base_in_result) dir 37 maint/gnulib/lib/filenamecat.c char *p = mfile_name_concat (dir, base, base_in_result); dir 24 maint/gnulib/lib/filenamecat.h char *file_name_concat (char const *dir, char const *base, dir 30 maint/gnulib/lib/filenamecat.h char *mfile_name_concat (char const *dir, char const *base, dir 238 maint/gnulib/lib/findprog-in.c const char *dir; dir 245 maint/gnulib/lib/findprog-in.c dir = path_rest; dir 252 maint/gnulib/lib/findprog-in.c if (dir == cp) dir 253 maint/gnulib/lib/findprog-in.c dir = "."; dir 256 maint/gnulib/lib/findprog-in.c if (directory != NULL && IS_RELATIVE_FILE_NAME (dir)) dir 259 maint/gnulib/lib/findprog-in.c concatenated_filename (directory, dir, NULL); dir 271 maint/gnulib/lib/findprog-in.c dir_as_prefix = dir; dir 77 maint/gnulib/lib/findprog.c const char *dir; dir 82 maint/gnulib/lib/findprog.c dir = path_rest; dir 89 maint/gnulib/lib/findprog.c if (dir == cp) dir 90 maint/gnulib/lib/findprog.c dir = "."; dir 94 maint/gnulib/lib/findprog.c progpathname = xconcatenated_filename (dir, progname, NULL); dir 96 maint/gnulib/lib/findprog.c progpathname = concatenated_filename (dir, progname, NULL); dir 347 maint/gnulib/lib/fts.c diropen (FTS const *sp, char const *dir) dir 353 maint/gnulib/lib/fts.c ? openat (sp->fts_cwd_fd, dir, open_flags) dir 354 maint/gnulib/lib/fts.c : open (dir, open_flags)); dir 2004 maint/gnulib/lib/fts.c fts_safe_changedir (FTS *sp, FTSENT *p, int fd, char const *dir) dir 2007 maint/gnulib/lib/fts.c bool is_dotdot = dir && STREQ (dir, ".."); dir 2036 maint/gnulib/lib/fts.c dir = NULL; dir 2042 maint/gnulib/lib/fts.c if (fd < 0 && (newfd = diropen (sp, dir)) < 0) dir 2053 maint/gnulib/lib/fts.c || (dir && STREQ (dir, ".."))) dir 185 maint/gnulib/lib/getcwd.c char *dir; dir 207 maint/gnulib/lib/getcwd.c dir = getcwd_system (buf, size); dir 208 maint/gnulib/lib/getcwd.c if (dir || (size && errno == ERANGE)) dir 209 maint/gnulib/lib/getcwd.c return dir; dir 218 maint/gnulib/lib/getcwd.c dir = getcwd_system (big_buffer, sizeof big_buffer); dir 219 maint/gnulib/lib/getcwd.c if (dir) dir 220 maint/gnulib/lib/getcwd.c return strdup (dir); dir 243 maint/gnulib/lib/getcwd.c dir = malloc (allocated); dir 244 maint/gnulib/lib/getcwd.c if (dir == NULL) dir 248 maint/gnulib/lib/getcwd.c dir = buf; dir 250 maint/gnulib/lib/getcwd.c dirp = dir + allocated; dir 407 maint/gnulib/lib/getcwd.c dirroom = dirp - dir; dir 424 maint/gnulib/lib/getcwd.c || ! (tmp = realloc (dir, allocated))) dir 432 maint/gnulib/lib/getcwd.c dir = tmp; dir 449 maint/gnulib/lib/getcwd.c if (dirp == &dir[allocated - 1]) dir 457 maint/gnulib/lib/getcwd.c used = dir + allocated - dirp; dir 458 maint/gnulib/lib/getcwd.c memmove (dir, dirp, used); dir 462 maint/gnulib/lib/getcwd.c buf = (used < allocated ? realloc (dir, used) : dir); dir 467 maint/gnulib/lib/getcwd.c buf = dir; dir 486 maint/gnulib/lib/getcwd.c free (dir); dir 57 maint/gnulib/lib/glob.c # define closedir(dir) __closedir (dir) dir 73 maint/gnulib/lib/link.c char *dir; dir 110 maint/gnulib/lib/link.c dir = strdup (file2); dir 111 maint/gnulib/lib/link.c if (!dir) dir 115 maint/gnulib/lib/link.c char *p = strchr (dir, '\0'); dir 116 maint/gnulib/lib/link.c while (dir < p && (*--p != '/' && *p != '\\')); dir 118 maint/gnulib/lib/link.c if (p != dir && stat (dir, &st) != 0 && errno != EOVERFLOW) dir 120 maint/gnulib/lib/link.c free (dir); dir 123 maint/gnulib/lib/link.c free (dir); dir 217 maint/gnulib/lib/link.c char *dir = strdup (file2); dir 219 maint/gnulib/lib/link.c if (!dir) dir 223 maint/gnulib/lib/link.c p = strrchr (dir, '/'); dir 227 maint/gnulib/lib/link.c if (stat (dir, &st) != 0 && errno != EOVERFLOW) dir 229 maint/gnulib/lib/link.c free (dir); dir 233 maint/gnulib/lib/link.c free (dir); dir 55 maint/gnulib/lib/linkat.c char *dir = mdir_name (file2); dir 56 maint/gnulib/lib/linkat.c if (!dir) dir 62 maint/gnulib/lib/linkat.c if (lstat (file1, &st1) == 0 && stat (dir, &st2) == 0) dir 68 maint/gnulib/lib/linkat.c free (dir); dir 72 maint/gnulib/lib/linkat.c free (dir); dir 77 maint/gnulib/lib/linkat.c free (dir); dir 111 maint/gnulib/lib/linkat.c char *dir = mdir_name (name); dir 114 maint/gnulib/lib/linkat.c if (!dir) dir 120 maint/gnulib/lib/linkat.c name = mfile_name_concat (dir, target, NULL); dir 121 maint/gnulib/lib/linkat.c free (dir); dir 227 maint/gnulib/lib/linkat.c char *dir = mdir_name (name); dir 230 maint/gnulib/lib/linkat.c if (!dir) dir 236 maint/gnulib/lib/linkat.c name = mfile_name_concat (dir, target, NULL); dir 237 maint/gnulib/lib/linkat.c free (dir); dir 85 maint/gnulib/lib/mkdir-p.c make_dir_parents (char *dir, dir 96 maint/gnulib/lib/mkdir-p.c int mkdir_errno = (IS_ABSOLUTE_FILE_NAME (dir) ? 0 : savewd_errno (wd)); dir 105 maint/gnulib/lib/mkdir-p.c prefix_len = mkancesdirs (dir, wd, make_ancestor, options); dir 130 maint/gnulib/lib/mkdir-p.c if (mkdir (dir + prefix_len, mkdir_mode) == 0) dir 136 maint/gnulib/lib/mkdir-p.c announce (dir, options); dir 154 maint/gnulib/lib/mkdir-p.c if (stat (dir + prefix_len, &st) == 0) dir 162 maint/gnulib/lib/mkdir-p.c error (0, errno, _("cannot stat %s"), quote (dir)); dir 171 maint/gnulib/lib/mkdir-p.c savewd_chdir (wd, dir + prefix_len, dir 178 maint/gnulib/lib/mkdir-p.c char const *subdir = (chdir_ok ? "." : dir + prefix_len); dir 192 maint/gnulib/lib/mkdir-p.c quote (dir)); dir 200 maint/gnulib/lib/mkdir-p.c error (0, mkdir_errno, _("cannot create directory %s"), quote (dir)); dir 25 maint/gnulib/lib/mkdir-p.h bool make_dir_parents (char *dir, dir 51 maint/gnulib/lib/mkdir.c rpl_mkdir (char const *dir, maybe_unused mode_t mode) dir 55 maint/gnulib/lib/mkdir.c size_t len = strlen (dir); dir 57 maint/gnulib/lib/mkdir.c if (len && dir[len - 1] == '/') dir 59 maint/gnulib/lib/mkdir.c tmp_dir = strdup (dir); dir 70 maint/gnulib/lib/mkdir.c tmp_dir = (char *) dir; dir 89 maint/gnulib/lib/mkdir.c if (tmp_dir != dir) dir 339 maint/gnulib/lib/modechange.c mode_adjust (mode_t oldmode, bool dir, mode_t umask_value, dir 352 maint/gnulib/lib/modechange.c (dir ? S_ISUID | S_ISGID : 0) & ~ changes->mentioned; dir 376 maint/gnulib/lib/modechange.c if ((newmode & (S_IXUSR | S_IXGRP | S_IXOTH)) | dir) dir 1008 maint/gnulib/lib/mountlist.c char *host, *dir; dir 1013 maint/gnulib/lib/mountlist.c dir = thisent + vmp->vmt_data[VMT_OBJECT].vmt_off; dir 1014 maint/gnulib/lib/mountlist.c me->me_devname = xmalloc (strlen (host) + strlen (dir) + 2); dir 1017 maint/gnulib/lib/mountlist.c strcat (me->me_devname, dir); dir 113 maint/gnulib/lib/openat-proc.c char dir[_MAX_PATH]; dir 116 maint/gnulib/lib/openat-proc.c if (__libc_Back_ioFHToPath (fd, dir, sizeof dir)) dir 119 maint/gnulib/lib/openat-proc.c dirlen = strlen (dir); dir 128 maint/gnulib/lib/openat-proc.c strcpy (result, dir); dir 36 maint/gnulib/lib/opendirat.c opendirat (int dir_fd, char const *dir, int extra_flags, int *pnew_fd) dir 40 maint/gnulib/lib/opendirat.c int new_fd = openat (dir_fd, dir, open_flags); dir 85 maint/gnulib/lib/printf-parse.c d->dir = d->direct_alloc_dir; dir 131 maint/gnulib/lib/printf-parse.c DIRECTIVE *dp = &d->dir[d->count]; /* pointer to next directive */ dir 577 maint/gnulib/lib/printf-parse.c memory = (DIRECTIVE *) (d->dir != d->direct_alloc_dir dir 578 maint/gnulib/lib/printf-parse.c ? realloc (d->dir, memory_size) dir 583 maint/gnulib/lib/printf-parse.c if (d->dir == d->direct_alloc_dir) dir 584 maint/gnulib/lib/printf-parse.c memcpy (memory, d->dir, d->count * sizeof (DIRECTIVE)); dir 585 maint/gnulib/lib/printf-parse.c d->dir = memory; dir 596 maint/gnulib/lib/printf-parse.c d->dir[d->count].dir_start = cp; dir 605 maint/gnulib/lib/printf-parse.c if (d->dir != d->direct_alloc_dir) dir 606 maint/gnulib/lib/printf-parse.c free (d->dir); dir 613 maint/gnulib/lib/printf-parse.c if (d->dir != d->direct_alloc_dir) dir 614 maint/gnulib/lib/printf-parse.c free (d->dir); dir 73 maint/gnulib/lib/printf-parse.h char_directive *dir; dir 103 maint/gnulib/lib/printf-parse.h u8_directive *dir; dir 131 maint/gnulib/lib/printf-parse.h u16_directive *dir; dir 159 maint/gnulib/lib/printf-parse.h u32_directive *dir; dir 37 maint/gnulib/lib/rmdir.c rpl_rmdir (char const *dir) dir 40 maint/gnulib/lib/rmdir.c size_t len = strlen (dir); dir 42 maint/gnulib/lib/rmdir.c while (len && ISSLASH (dir[len - 1])) dir 44 maint/gnulib/lib/rmdir.c if (len && dir[len - 1] == '.' && (1 == len || ISSLASH (dir[len - 2]))) dir 49 maint/gnulib/lib/rmdir.c result = rmdir (dir); dir 177 maint/gnulib/lib/savedir.c savedir (char const *dir, enum savedir_option option) dir 179 maint/gnulib/lib/savedir.c DIR *dirp = opendir (dir); dir 99 maint/gnulib/lib/savewd.c savewd_chdir (struct savewd *wd, char const *dir, int options, dir 110 maint/gnulib/lib/savewd.c fd = open (dir, dir 133 maint/gnulib/lib/savewd.c result = (fd < 0 ? chdir (dir) : fchdir (fd)); dir 111 maint/gnulib/lib/savewd.h int savewd_chdir (struct savewd *wd, char const *dir, int options, dir 97 maint/gnulib/lib/scandir.c SCANDIR (const char *dir, dir 104 maint/gnulib/lib/scandir.c SCANDIR (const char *dir, dir 110 maint/gnulib/lib/scandir.c DIR *dp = __opendir (dir); dir 1387 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_MDA (tempnam, char *, (const char *dir, const char *prefix)); dir 1389 maint/gnulib/lib/stdio.in.h _GL_CXXALIAS_SYS (tempnam, char *, (const char *dir, const char *prefix)); dir 46 maint/gnulib/lib/strfmon_l.c directive_t dir[MAX_ARGS]; dir 103 maint/gnulib/lib/strfmon_l.c directivesp->dir[count].needs_long_double = true; dir 106 maint/gnulib/lib/strfmon_l.c directivesp->dir[count].needs_long_double = false; dir 109 maint/gnulib/lib/strfmon_l.c directivesp->dir[count].conversion_ptr = cp; dir 154 maint/gnulib/lib/strfmon_l.c if (directives.dir[i].needs_long_double) dir 183 maint/gnulib/lib/strfmon_l.c const char *q = directives.dir[i].conversion_ptr; dir 186 maint/gnulib/lib/strfmon_l.c if (!directives.dir[i].needs_long_double) dir 195 maint/gnulib/lib/strfmon_l.c args[i] = (directives.dir[i].needs_long_double dir 99 maint/gnulib/lib/tempname.c direxists (const char *dir) dir 102 maint/gnulib/lib/tempname.c return __stat64 (dir, &buf) == 0 && S_ISDIR (buf.st_mode); dir 112 maint/gnulib/lib/tempname.c __path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, dir 134 maint/gnulib/lib/tempname.c dir = d; dir 135 maint/gnulib/lib/tempname.c else if (dir != NULL && direxists (dir)) dir 138 maint/gnulib/lib/tempname.c dir = NULL; dir 140 maint/gnulib/lib/tempname.c if (dir == NULL) dir 143 maint/gnulib/lib/tempname.c dir = P_tmpdir; dir 145 maint/gnulib/lib/tempname.c dir = "/tmp"; dir 153 maint/gnulib/lib/tempname.c dlen = strlen (dir); dir 154 maint/gnulib/lib/tempname.c while (dlen > 1 && dir[dlen - 1] == '/') dir 164 maint/gnulib/lib/tempname.c sprintf (tmpl, "%.*s/%.*sXXXXXX", (int) dlen, dir, (int) plen, pfx); dir 80 maint/gnulib/lib/tmpdir.c direxists (const char *dir) dir 83 maint/gnulib/lib/tmpdir.c return __xstat64 (_STAT_VER, dir, &buf) == 0 && S_ISDIR (buf.st_mode); dir 93 maint/gnulib/lib/tmpdir.c path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, dir 116 maint/gnulib/lib/tmpdir.c dir = d; dir 117 maint/gnulib/lib/tmpdir.c else if (dir != NULL && direxists (dir)) dir 120 maint/gnulib/lib/tmpdir.c dir = NULL; dir 122 maint/gnulib/lib/tmpdir.c if (dir == NULL) dir 134 maint/gnulib/lib/tmpdir.c dir = dirbuf; dir 138 maint/gnulib/lib/tmpdir.c dir = P_tmpdir; dir 140 maint/gnulib/lib/tmpdir.c dir = "/tmp"; dir 148 maint/gnulib/lib/tmpdir.c dlen = strlen (dir); dir 152 maint/gnulib/lib/tmpdir.c add_slash = dlen != 0 && !ISSLASH (dir[dlen - 1]); dir 162 maint/gnulib/lib/tmpdir.c memcpy (tmpl, dir, dlen); dir 26 maint/gnulib/lib/tmpdir.h extern int path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx, bool try_tmpdir); dir 93 maint/gnulib/lib/tmpfile.c char dir[PATH_MAX]; dir 100 maint/gnulib/lib/tmpfile.c retval = GetTempPath (PATH_MAX, dir); dir 105 maint/gnulib/lib/tmpfile.c if (path_search (xtemplate, PATH_MAX, dir, NULL, true) >= 0) dir 37 maint/gnulib/lib/utimens.h int fdutimensat (int fd, int dir, char const *name, struct timespec const [2], dir 42 maint/gnulib/lib/utimens.h lutimensat (int dir, char const *file, struct timespec const times[2]) dir 44 maint/gnulib/lib/utimens.h return utimensat (dir, file, times, AT_SYMLINK_NOFOLLOW); dir 1870 maint/gnulib/lib/vasnprintf.c if (d.dir != d.direct_alloc_dir) \ dir 1871 maint/gnulib/lib/vasnprintf.c free (d.dir); \ dir 1958 maint/gnulib/lib/vasnprintf.c for (cp = format, i = 0, dp = &d.dir[0]; ; cp = dp->dir_end, i++, dp++) dir 24 maint/gnulib/tests/test-dirent.c _GL_UNUSED static DIR *dir; dir 28 maint/gnulib/tests/test-dirname.c const char *dir; /* dir_name (name). */ dir 139 maint/gnulib/tests/test-dirname.c char *dir = dir_name (t->name); dir 147 maint/gnulib/tests/test-dirname.c if (! (strcmp (dir, t->dir) == 0 dir 148 maint/gnulib/tests/test-dirname.c && (dirlen == strlen (dir) dir 149 maint/gnulib/tests/test-dirname.c || (dirlen + 1 == strlen (dir) && dir[dirlen] == '.')))) dir 154 maint/gnulib/tests/test-dirname.c t->name, dir, dirlen, dir 155 maint/gnulib/tests/test-dirname.c t->dir, (unsigned long) strlen (t->dir)); dir 188 maint/gnulib/tests/test-dirname.c free (dir); dir 45 maint/gnulib/tests/test-fts.c static char dir[] = "./"; dir 46 maint/gnulib/tests/test-fts.c static char *const curr_dir[2] = { dir, 0 }; dir 29 maint/gnulib/tests/test-rename.h DIR *dir = opendir ("."); dir 31 maint/gnulib/tests/test-rename.h ASSERT (dir != NULL); dir 34 maint/gnulib/tests/test-rename.h struct dirent *d = readdir (dir); dir 43 maint/gnulib/tests/test-rename.h ASSERT (closedir (dir) == 0); dir 24 maint/gnulib/tests/test-supersede-fopen.h char *dir = mkdtemp (xtemplate); dir 25 maint/gnulib/tests/test-supersede-fopen.h char *filename = file_name_concat (dir, "test.mo", NULL); dir 268 maint/gnulib/tests/test-supersede-fopen.h rmdir (dir); dir 24 maint/gnulib/tests/test-supersede-open.h char *dir = mkdtemp (xtemplate); dir 25 maint/gnulib/tests/test-supersede-open.h char *filename = file_name_concat (dir, "test.mo", NULL); dir 265 maint/gnulib/tests/test-supersede-open.h rmdir (dir);