dir 149 lib/mcconfig/paths.c char *dir; dir 167 lib/mcconfig/paths.c dir = g_build_filename (profile_root, ".config", (char *) NULL); dir 168 lib/mcconfig/paths.c mc_config_str = mc_config_init_one_config_path (dir, MC_USERCONF_DIR, mcerror); dir 169 lib/mcconfig/paths.c g_free (dir); dir 171 lib/mcconfig/paths.c dir = g_build_filename (profile_root, ".cache", (char *) NULL); dir 172 lib/mcconfig/paths.c mc_cache_str = mc_config_init_one_config_path (dir, MC_USERCONF_DIR, mcerror); dir 173 lib/mcconfig/paths.c g_free (dir); dir 175 lib/mcconfig/paths.c dir = g_build_filename (profile_root, ".local", "share", (char *) NULL); dir 176 lib/mcconfig/paths.c mc_data_str = mc_config_init_one_config_path (dir, MC_USERCONF_DIR, mcerror); dir 177 lib/mcconfig/paths.c g_free (dir); dir 55 lib/skin/ini-file.c GDir *dir; dir 58 lib/skin/ini-file.c dir = g_dir_open (name, 0, NULL); dir 61 lib/skin/ini-file.c if (dir != NULL) dir 65 lib/skin/ini-file.c while ((cname = g_dir_read_name (dir)) != NULL) dir 87 lib/skin/ini-file.c g_dir_close (dir); dir 96 lib/vfs/direntry.c struct vfs_s_inode *dir; dir 110 lib/vfs/direntry.c vfs_s_automake (struct vfs_class *me, struct vfs_s_inode *dir, char *path, int flags) dir 119 lib/vfs/direntry.c res = vfs_s_generate_entry (me, path, dir, (flags & FL_MKDIR) != 0 ? (0777 | S_IFDIR) : 0777); dir 120 lib/vfs/direntry.c vfs_s_insert_entry (me, dir, res); dir 156 lib/vfs/direntry.c fullpath = vfs_s_fullpath (me, entry->dir); dir 166 lib/vfs/direntry.c VFS_SUBCLASS (me)->find_entry (me, entry->dir->super->root, linkname, follow - 1, FL_NONE); dir 425 lib/vfs/direntry.c struct vfs_s_inode *dir; dir 429 lib/vfs/direntry.c dir = vfs_s_inode_from_path (vpath, FL_DIR | FL_FOLLOW); dir 430 lib/vfs/direntry.c if (dir == NULL) dir 435 lib/vfs/direntry.c if (!S_ISDIR (dir->st.st_mode)) dir 441 lib/vfs/direntry.c dir->st.st_nlink++; dir 443 lib/vfs/direntry.c if (dir->subdir == NULL) /* This can actually happen if we allow empty directories */ dir 450 lib/vfs/direntry.c info->cur = g_queue_peek_head_link (dir->subdir); dir 451 lib/vfs/direntry.c info->dir = dir; dir 461 lib/vfs/direntry.c struct vfs_dirent *dir = NULL; dir 470 lib/vfs/direntry.c dir = vfs_dirent_init (NULL, name, 0); dir 476 lib/vfs/direntry.c return dir; dir 485 lib/vfs/direntry.c struct vfs_s_inode *dir = info->dir; dir 487 lib/vfs/direntry.c vfs_s_free_inode (dir->super->me, dir); dir 963 lib/vfs/direntry.c if (ent->dir != NULL) dir 964 lib/vfs/direntry.c g_queue_remove (ent->dir->subdir, ent); dir 980 lib/vfs/direntry.c vfs_s_insert_entry (struct vfs_class *me, struct vfs_s_inode *dir, struct vfs_s_entry *ent) dir 984 lib/vfs/direntry.c ent->dir = dir; dir 987 lib/vfs/direntry.c g_queue_push_tail (dir->subdir, ent); dir 1255 lib/vfs/direntry.c ino = ino->ent->dir; dir 1267 lib/vfs/direntry.c if (ino->ent->dir == NULL || ino->ent->dir->ent == NULL) dir 1270 lib/vfs/direntry.c return g_strconcat (ino->ent->dir->ent->name, PATH_SEP_STR, ino->ent->name, (char *) NULL); dir 1317 lib/vfs/direntry.c struct vfs_s_inode *dir; dir 1324 lib/vfs/direntry.c dir = vfs_s_find_inode (me, super, name, LINK_FOLLOW, FL_DIR); dir 1326 lib/vfs/direntry.c if (dir == NULL) dir 1330 lib/vfs/direntry.c ent = vfs_s_generate_entry (me, name, dir, 0755); dir 1332 lib/vfs/direntry.c vfs_s_insert_entry (me, dir, ent); dir 434 lib/vfs/interface.c path_element->dir.info = info; dir 437 lib/vfs/interface.c path_element->dir.converter = (path_element->encoding != NULL) ? dir 439 lib/vfs/interface.c if (path_element->dir.converter == INVALID_CONV) dir 440 lib/vfs/interface.c path_element->dir.converter = str_cnv_from_term; dir 476 lib/vfs/interface.c entry = vfs->readdir (vfs_path_element->dir.info); dir 482 lib/vfs/interface.c str_vfs_convert_from (vfs_path_element->dir.converter, entry->d_name, vfs_str_buffer); dir 515 lib/vfs/interface.c if (vfs_path_element->dir.converter != str_cnv_from_term) dir 517 lib/vfs/interface.c str_close_conv (vfs_path_element->dir.converter); dir 518 lib/vfs/interface.c vfs_path_element->dir.converter = INVALID_CONV; dir 522 lib/vfs/interface.c result = vfs->closedir ? (*vfs->closedir) (vfs_path_element->dir.info) : -1; dir 362 lib/vfs/path.c element->dir.converter = dir 387 lib/vfs/path.c element->dir.converter = dir 468 lib/vfs/path.c element->dir.converter = dir 487 lib/vfs/path.c element->dir.converter = dir 551 lib/vfs/path.c vfs_path_strip_home (const char *dir) dir 561 lib/vfs/path.c if (strncmp (dir, home_dir, len) == 0 && (IS_PATH_SEP (dir[len]) || dir[len] == '\0')) dir 562 lib/vfs/path.c return g_strdup_printf ("~%s", dir + len); dir 565 lib/vfs/path.c return g_strdup (dir); dir 663 lib/vfs/path.c str_vfs_convert_from (element->dir.converter, element->path, recode_buffer); dir 864 lib/vfs/path.c new_element->dir.converter = str_crt_conv_from (element->encoding); dir 866 lib/vfs/path.c new_element->dir.converter = element->dir.converter; dir 868 lib/vfs/path.c new_element->dir.info = element->dir.info; dir 897 lib/vfs/path.c str_close_conv (element->dir.converter); dir 1082 lib/vfs/path.c return (element->dir.converter != str_cnv_from_term && element->dir.converter != INVALID_CONV); dir 1108 lib/vfs/path.c str_close_conv (path_element->dir.converter); dir 1110 lib/vfs/path.c path_element->dir.converter = str_crt_conv_from (path_element->encoding); dir 1229 lib/vfs/path.c element->dir.converter = dir 53 lib/vfs/path.h } dir; dir 259 lib/vfs/utilvfs.c char *dir; dir 262 lib/vfs/utilvfs.c dir = strchr (pcopy, PATH_SEP); dir 264 lib/vfs/utilvfs.c if (dir == NULL) dir 268 lib/vfs/utilvfs.c path_element->path = g_strndup (dir, pcopy_len - (size_t) (dir - pcopy)); dir 269 lib/vfs/utilvfs.c *dir = '\0'; dir 355 lib/vfs/utilvfs.c path_element->dir.converter = INVALID_CONV; dir 320 lib/vfs/vfs.h int mc_closedir (DIR * dir); dir 79 lib/vfs/xdirentry.h struct vfs_s_inode *dir; /* Directory we are in, i.e. our parent */ dir 166 lib/vfs/xdirentry.h void vfs_s_insert_entry (struct vfs_class *me, struct vfs_s_inode *dir, struct vfs_s_entry *ent); dir 1136 src/editor/editcmd.c int dir = 0; dir 1141 src/editor/editcmd.c dir = query_dialog (_("Syntax file edit"), dir 1154 src/editor/editcmd.c if (dir == 0) dir 1164 src/editor/editcmd.c else if (dir == 1) dir 1187 src/editor/editcmd.c int dir; dir 1192 src/editor/editcmd.c dir = query_dialog (_("Menu edit"), dir 1205 src/editor/editcmd.c switch (dir) dir 1226 src/editor/editwidget.c char *dir; dir 1228 src/editor/editwidget.c dir = mc_build_filename (mc_config_get_cache_path (), EDIT_HOME_DIR, (char *) NULL); dir 1229 src/editor/editwidget.c made_directory = (mkdir (dir, 0700) != -1 || errno == EEXIST); dir 1230 src/editor/editwidget.c g_free (dir); dir 1232 src/editor/editwidget.c dir = mc_build_filename (mc_config_get_path (), EDIT_HOME_DIR, (char *) NULL); dir 1233 src/editor/editwidget.c made_directory = (mkdir (dir, 0700) != -1 || errno == EEXIST); dir 1234 src/editor/editwidget.c g_free (dir); dir 1236 src/editor/editwidget.c dir = mc_build_filename (mc_config_get_data_path (), EDIT_HOME_DIR, (char *) NULL); dir 1237 src/editor/editwidget.c made_directory = (mkdir (dir, 0700) != -1 || errno == EEXIST); dir 1238 src/editor/editwidget.c g_free (dir); dir 221 src/filemanager/cmd.c for (i = 0; i < panel->dir.len; i++) dir 223 src/filemanager/cmd.c file_entry_t *source = &panel->dir.list[i]; dir 238 src/filemanager/cmd.c for (j = 0; j < other->dir.len; j++) dir 242 src/filemanager/cmd.c other_fname = other->dir.list[j].fname->str; dir 250 src/filemanager/cmd.c if (j >= other->dir.len) dir 256 src/filemanager/cmd.c file_entry_t *target = &other->dir.list[j]; dir 759 src/filemanager/cmd.c char *dir; dir 770 src/filemanager/cmd.c dir = dir 775 src/filemanager/cmd.c if (dir != NULL && *dir != '\0') dir 779 src/filemanager/cmd.c if (IS_PATH_SEP (dir[0]) || dir[0] == '~') dir 780 src/filemanager/cmd.c absdir = vfs_path_from_str (dir); dir 785 src/filemanager/cmd.c char *tmpdir = dir; dir 787 src/filemanager/cmd.c if (dir[0] == '\\' && dir[1] == '~') dir 788 src/filemanager/cmd.c tmpdir = dir + 1; dir 799 src/filemanager/cmd.c update_panels (UP_OPTIMIZE, dir); dir 806 src/filemanager/cmd.c g_free (dir); dir 830 src/filemanager/cmd.c int dir = 0; dir 833 src/filemanager/cmd.c dir = query_dialog (_("Extension file edit"), dir 839 src/filemanager/cmd.c if (dir == 0) dir 848 src/filemanager/cmd.c else if (dir == 1) dir 871 src/filemanager/cmd.c int dir = 0; dir 874 src/filemanager/cmd.c dir = query_dialog (_("Menu edit"), dir 888 src/filemanager/cmd.c switch (dir) dir 929 src/filemanager/cmd.c int dir = 0; dir 932 src/filemanager/cmd.c dir = query_dialog (_("Highlighting groups file edit"), dir 939 src/filemanager/cmd.c if (dir == 0) dir 948 src/filemanager/cmd.c else if (dir == 1) dir 1314 src/filemanager/cmd.c for (i = 0; i < panel->dir.len; i++) dir 1315 src/filemanager/cmd.c if (S_ISDIR (panel->dir.list[i].st.st_mode) dir 1316 src/filemanager/cmd.c && ((panel->dirs_marked != 0 && panel->dir.list[i].f.marked != 0) dir 1317 src/filemanager/cmd.c || panel->dirs_marked == 0) && !DIR_IS_DOTDOT (panel->dir.list[i].fname->str)) dir 1325 src/filemanager/cmd.c p = vfs_path_from_str (panel->dir.list[i].fname->str); dir 1331 src/filemanager/cmd.c panel->dir.list[i].st.st_size = (off_t) total; dir 1332 src/filemanager/cmd.c panel->dir.list[i].f.dir_size_computed = 1; dir 643 src/filemanager/file.c DIR *dir; dir 649 src/filemanager/file.c dir = mc_opendir (dirname_vpath); dir 650 src/filemanager/file.c if (dir == NULL) dir 653 src/filemanager/file.c while (ret == FILE_CONT && (dirent = mc_readdir (dir)) != NULL) dir 689 src/filemanager/file.c mc_closedir (dir); dir 711 src/filemanager/file.c for (i = 0; i < panel->dir.len; i++) dir 713 src/filemanager/file.c const file_entry_t *fe = &panel->dir.list[i]; dir 1418 src/filemanager/file.c const char *dir; dir 1421 src/filemanager/file.c dir = vfs_path_as_str (vpath); dir 1423 src/filemanager/file.c while (my_rmdir (dir) != 0 && !ctx->ignore_all) dir 1425 src/filemanager/file.c return_status = file_error (TRUE, _("Cannot remove directory \"%s\"\n%s"), dir); dir 1507 src/filemanager/file.c DIR *dir; dir 1511 src/filemanager/file.c dir = mc_opendir (vpath); dir 1512 src/filemanager/file.c if (dir == NULL) dir 1515 src/filemanager/file.c for (d = mc_readdir (dir); d != NULL; d = mc_readdir (dir)) dir 1522 src/filemanager/file.c mc_closedir (dir); dir 1770 src/filemanager/file.c for (i = 0; i < panel->dir.len; i++) dir 1771 src/filemanager/file.c if (panel->dir.list[i].f.marked != 0) dir 1772 src/filemanager/file.c return panel->dir.list[i].fname->str; dir 3626 src/filemanager/file.c for (i = 0; i < panel->dir.len; i++) dir 3630 src/filemanager/file.c if (panel->dir.list[i].f.marked == 0) dir 3633 src/filemanager/file.c source2 = panel->dir.list[i].fname->str; dir 3634 src/filemanager/file.c src_stat = panel->dir.list[i].st; dir 811 src/filemanager/filemanager.c for (i = 0; i < panel->dir.len; i++) dir 812 src/filemanager/filemanager.c if (panel->dir.list[i].f.marked != 0) dir 813 src/filemanager/filemanager.c command_insert (cmdline, panel->dir.list[i].fname->str, TRUE); dir 112 src/filemanager/find.c char *dir; dir 391 src/filemanager/find.c get_list_info (char **file, char **dir, gsize *start, gsize *end) dir 398 src/filemanager/find.c if (dir != NULL) dir 399 src/filemanager/find.c *dir = location->dir; dir 407 src/filemanager/find.c if (dir != NULL) dir 408 src/filemanager/find.c *dir = NULL; dir 894 src/filemanager/find.c push_directory (vfs_path_t *dir) dir 896 src/filemanager/find.c g_queue_push_head (&dir_queue, (void *) dir); dir 927 src/filemanager/find.c insert_file (const char *dir, const char *file, gsize start, gsize end) dir 933 src/filemanager/find.c while (IS_PATH_SEP (dir[0]) && IS_PATH_SEP (dir[1])) dir 934 src/filemanager/find.c dir++; dir 938 src/filemanager/find.c if (strcmp (old_dir, dir) != 0) dir 941 src/filemanager/find.c old_dir = g_strdup (dir); dir 942 src/filemanager/find.c dirname = add_to_list (dir, NULL); dir 947 src/filemanager/find.c old_dir = g_strdup (dir); dir 948 src/filemanager/find.c dirname = add_to_list (dir, NULL); dir 953 src/filemanager/find.c location->dir = dirname; dir 962 src/filemanager/find.c find_add_match (const char *dir, const char *file, gsize start, gsize end) dir 964 src/filemanager/find.c insert_file (dir, file, start, end); dir 1199 src/filemanager/find.c find_ignore_dir_search (const char *dir, size_t len) dir 1203 src/filemanager/find.c const size_t dlen = len == (size_t) (-1) ? strlen (dir) : len; dir 1204 src/filemanager/find.c const unsigned char dabs = g_path_is_absolute (dir) ? 1 : 0; dir 1223 src/filemanager/find.c if (strncmp (dir, *ignore_dir, ilen) == 0) dir 1227 src/filemanager/find.c if (dir[ilen] == '\0' || IS_PATH_SEP (dir[ilen])) dir 1235 src/filemanager/find.c d = strstr (dir, *ignore_dir); dir 1453 src/filemanager/find.c find_do_view_edit (gboolean unparsed_view, gboolean edit, char *dir, char *file, off_t search_start, dir 1471 src/filemanager/find.c fullname_vpath = vfs_path_build_filename (dir, filename, (char *) NULL); dir 1490 src/filemanager/find.c if ((text == NULL) || (location == NULL) || (location->dir == NULL)) dir 1493 src/filemanager/find.c find_do_view_edit (unparsed_view, edit, location->dir, text, location->start, location->end); dir 1821 src/filemanager/find.c dir_list *list = &panel->dir; dir 1837 src/filemanager/find.c if ((le->text == NULL) || (location == NULL) || (location->dir == NULL)) dir 1845 src/filemanager/find.c name = mc_build_filename (location->dir, lc_filename, (char *) NULL); dir 1299 src/filemanager/layout.c panelswap (dir); dir 1146 src/filemanager/mountlist.c char *host, *dir; dir 1151 src/filemanager/mountlist.c dir = thisent + vmp->vmt_data[VMT_OBJECT].vmt_off; dir 1152 src/filemanager/mountlist.c me->me_devname = g_strconcat (host, ":", dir, (char *) NULL); dir 1246 src/filemanager/mountlist.c char *tp, dev[_POSIX_NAME_MAX], dir[_POSIX_PATH_MAX]; dir 1265 src/filemanager/mountlist.c if (!getcwd (dir, _POSIX_PATH_MAX)) dir 1268 src/filemanager/mountlist.c fd = open (dir, O_RDONLY); dir 1306 src/filemanager/mountlist.c if (fsys_get_mount_dev (dir, &dev) == -1) dir 1309 src/filemanager/mountlist.c if (fsys_get_mount_pt (dev, &dir) == -1) dir 1313 src/filemanager/mountlist.c me->me_mountdir = g_strdup (dir); dir 1323 src/filemanager/mountlist.c fprintf (stderr, "fsys_get_mount_pt():\n\tmount point='%s'\n", dir); dir 840 src/filemanager/panel.c if (panel->dir.len != 0 && file_index < panel->dir.len) dir 842 src/filemanager/panel.c fe = &panel->dir.list[file_index]; dir 1114 src/filemanager/panel.c marked = (panel->dir.list[n].f.marked != 0); dir 1116 src/filemanager/panel.c if (n < panel->dir.len) dir 1416 src/filemanager/panel.c if (panel->dir.len <= items || panel->current < 0) dir 1427 src/filemanager/panel.c panel->current = CLAMP (panel->current, 0, panel->dir.len - 1); dir 1442 src/filemanager/panel.c i = panel->dir.len - items; dir 2142 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) dir 2144 src/filemanager/panel.c fe = &panel->dir.list[i]; dir 2198 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current + 1 == panel->dir.len) dir 2210 src/filemanager/panel.c if (panel->top > panel->dir.len - items) dir 2211 src/filemanager/panel.c panel->top = panel->dir.len - items; dir 2218 src/filemanager/panel.c if (panel->top > panel->dir.len - items) dir 2219 src/filemanager/panel.c panel->top = panel->dir.len - items; dir 2229 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current <= 0) dir 2262 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current < 0) dir 2266 src/filemanager/panel.c if (new_pos >= panel->dir.len) dir 2267 src/filemanager/panel.c new_pos = panel->dir.len - 1; dir 2333 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current < 0 || (panel->current == 0 && panel->top == 0)) dir 2408 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current < 0 || panel->current == panel->dir.len - 1) dir 2413 src/filemanager/panel.c if (panel->top > panel->dir.len - 2 * items) dir 2414 src/filemanager/panel.c items = panel->dir.len - items - panel->top; dir 2418 src/filemanager/panel.c panel->current = panel->dir.len - 1; dir 2451 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current < 0) dir 2464 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current < 0) dir 2477 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current < 0) dir 2490 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current <= 0) dir 2525 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current < 0 || panel->current == panel->dir.len - 1) dir 2549 src/filemanager/panel.c panel->current = panel->dir.len - 1; dir 2616 src/filemanager/panel.c lines = MIN (lines, panel->dir.len - panel->current - 1); dir 2744 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) dir 2746 src/filemanager/panel.c if (DIR_IS_DOTDOT (panel->dir.list[i].fname->str)) dir 2748 src/filemanager/panel.c if (S_ISDIR (panel->dir.list[i].st.st_mode) && files_only) dir 2752 src/filemanager/panel.c (search, panel->dir.list[i].fname->str, 0, panel->dir.list[i].fname->len, NULL)) dir 2784 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) dir 2786 src/filemanager/panel.c file_entry_t *file = &panel->dir.list[i]; dir 2890 src/filemanager/panel.c if (i >= panel->dir.len) dir 2898 src/filemanager/panel.c (search, panel->dir.list[i].fname->str, 0, panel->dir.list[i].fname->len, NULL)) dir 2933 src/filemanager/panel.c if (panel->current == panel->dir.len - 1) dir 2945 src/filemanager/panel.c else if (panel->dir.len != 0) dir 3497 src/filemanager/panel.c if (!dir_list_load (&panel->dir, panel->cwd_vpath, panel->sort_field->sort_routine, dir 3501 src/filemanager/panel.c if (panel->dir.len == 0) dir 4075 src/filemanager/panel.c if (y > panel->dir.len) dir 4194 src/filemanager/panel.c && panel->top + panel_items (panel) < panel->dir.len) dir 4215 src/filemanager/panel.c dir_list *list = &panel->dir; dir 4345 src/filemanager/panel.c for (i = 0; i < current_panel->dir.len; i++) dir 4347 src/filemanager/panel.c const file_entry_t *fe = ¤t_panel->dir.list[i]; dir 4445 src/filemanager/panel.c if (panel->dir.len == 0 || panel->current < 0 || panel->current >= panel->dir.len) dir 4448 src/filemanager/panel.c fe = &(panel->dir.list[panel->current]); dir 4461 src/filemanager/panel.c if (panel->dir.len == 0) dir 4483 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) dir 4484 src/filemanager/panel.c if (strcmp (subdir, panel->dir.list[i].fname->str) == 0) dir 4492 src/filemanager/panel.c if (panel->current >= panel->dir.len) dir 4493 src/filemanager/panel.c panel_set_current (panel, panel->dir.len - 1); dir 4515 src/filemanager/panel.c dir_list_free_list (&panel->dir); dir 4578 src/filemanager/panel.c panel->dir.size = DIR_LIST_MIN_SIZE; dir 4579 src/filemanager/panel.c panel->dir.list = g_new (file_entry_t, panel->dir.size); dir 4580 src/filemanager/panel.c panel->dir.len = 0; dir 4581 src/filemanager/panel.c panel->dir.callback = panel_dir_list_callback; dir 4694 src/filemanager/panel.c if (!dir_list_load (&panel->dir, panel->cwd_vpath, panel->sort_field->sort_routine, dir 4698 src/filemanager/panel.c if (panel->dir.len == 0) dir 4737 src/filemanager/panel.c dir_list_init (&panel->dir); dir 4745 src/filemanager/panel.c if (!dir_list_reload (&panel->dir, panel->cwd_vpath, panel->sort_field->sort_routine, dir 4751 src/filemanager/panel.c if (panel->dir.len == 0) dir 4753 src/filemanager/panel.c else if (panel->current >= panel->dir.len) dir 4754 src/filemanager/panel.c panel_set_current (panel, panel->dir.len - 1); dir 4857 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) dir 4879 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) dir 4880 src/filemanager/panel.c if (panel->dir.list[i].f.marked != 0) dir 4885 src/filemanager/panel.c panel->dir.list[i].f.marked = 0; dir 4896 src/filemanager/panel.c if (panel->dir.list[idx].f.marked == mark) dir 4900 src/filemanager/panel.c if (DIR_IS_DOTDOT (panel->dir.list[idx].fname->str)) dir 4904 src/filemanager/panel.c if (panel->dir.list[idx].f.marked != 0) dir 4908 src/filemanager/panel.c if (S_ISDIR (panel->dir.list[idx].st.st_mode)) dir 4910 src/filemanager/panel.c if (panel->dir.list[idx].f.dir_size_computed != 0) dir 4911 src/filemanager/panel.c panel->total += (uintmax_t) panel->dir.list[idx].st.st_size; dir 4915 src/filemanager/panel.c panel->total += (uintmax_t) panel->dir.list[idx].st.st_size; dir 4921 src/filemanager/panel.c if (S_ISDIR (panel->dir.list[idx].st.st_mode)) dir 4923 src/filemanager/panel.c if (panel->dir.list[idx].f.dir_size_computed != 0) dir 4924 src/filemanager/panel.c panel->total -= (uintmax_t) panel->dir.list[idx].st.st_size; dir 4928 src/filemanager/panel.c panel->total -= (uintmax_t) panel->dir.list[idx].st.st_size; dir 4955 src/filemanager/panel.c if (panel->dir.list[lc_index].f.marked != val) dir 4957 src/filemanager/panel.c panel->dir.list[lc_index].f.marked = val; dir 4975 src/filemanager/panel.c while (panel->dir.list[*current_file].f.marked == 0 && *current_file < panel->dir.len) dir 4978 src/filemanager/panel.c return (*current_file >= panel->dir.len ? NULL : panel->dir.list[*current_file].fname); dir 5023 src/filemanager/panel.c dir_list_sort (&panel->dir, panel->sort_field->sort_routine, &panel->sort_info); dir 5026 src/filemanager/panel.c for (i = panel->dir.len; i != 0; i--) dir 5027 src/filemanager/panel.c if (strcmp (panel->dir.list[i - 1].fname->str, filename) == 0) dir 5166 src/filemanager/panel.c str_close_conv (path_element->dir.converter); dir 5167 src/filemanager/panel.c path_element->dir.converter = INVALID_CONV; dir 5354 src/filemanager/panel.c dir_list_clean (&panel->dir); dir 5367 src/filemanager/panel.c else if (plist->len > panel->dir.size) dir 5368 src/filemanager/panel.c dir_list_grow (&panel->dir, plist->len - panel->dir.size); dir 5370 src/filemanager/panel.c list = &panel->dir; dir 5442 src/filemanager/panel.c const dir_list *const list = &panel->dir; dir 5464 src/filemanager/panel.c dir_list *list = &panel->dir; dir 5473 src/filemanager/panel.c if (panel->dir.len == 0) dir 5476 src/filemanager/panel.c if (panel->dir.len > plist->size) dir 5477 src/filemanager/panel.c dir_list_grow (plist, panel->dir.len - plist->size); dir 5478 src/filemanager/panel.c plist->len = panel->dir.len; dir 5480 src/filemanager/panel.c for (i = 0; i < panel->dir.len; i++) dir 98 src/filemanager/panel.h dir_list dir; /* Directory contents */ dir 303 src/filemanager/panelize.c dir_list *list = ¤t_panel->dir; dir 1314 src/filemanager/tree.c tree_chdir (WTree *tree, const vfs_path_t *dir) dir 1318 src/filemanager/tree.c current = tree_store_whereis (dir); dir 27 src/filemanager/tree.h void tree_chdir (WTree * tree, const vfs_path_t * dir); dir 950 src/usermenu.c for (i = 0; i < panel->dir.len; i++) dir 951 src/usermenu.c if (panel->dir.list[i].f.marked != 0) dir 955 src/usermenu.c tmp = quote_func (panel->dir.list[i].fname->str, FALSE); dir 227 src/vfs/extfs/extfs.c extfs_find_entry_int (struct vfs_s_inode *dir, const char *name, GSList *list, int flags) dir 239 src/vfs/extfs/extfs.c dir = dir->super->root; dir 242 src/vfs/extfs/extfs.c super = EXTFS_SUPER (dir->super); dir 243 src/vfs/extfs/extfs.c pent = dir->ent; dir 257 src/vfs/extfs/extfs.c pent = pent->dir != NULL ? pent->dir->ent : NULL; dir 307 src/vfs/extfs/extfs.c extfs_find_entry (struct vfs_s_inode *dir, const char *name, int flags) dir 314 src/vfs/extfs/extfs.c res = extfs_find_entry_int (dir, name, NULL, flags); dir 445 src/vfs/extfs/extfs.c entry->dir = pent->ino; dir 451 src/vfs/extfs/extfs.c entry->dir = super->root; dir 830 src/vfs/extfs/extfs.c for (e = entry; e->dir != NULL; e = e->dir->ent) dir 833 src/vfs/extfs/extfs.c if (e->dir->ent->dir != NULL) dir 860 src/vfs/extfs/extfs.c pent = extfs_find_entry_int (entry->dir, entry->ino->linkname, looping, FL_NONE); dir 1205 src/vfs/extfs/extfs.c struct vfs_dirent *dir; dir 1211 src/vfs/extfs/extfs.c dir = vfs_dirent_init (NULL, VFS_ENTRY ((*info)->data)->name, 0); /* FIXME: inode */ dir 1215 src/vfs/extfs/extfs.c return dir; dir 1580 src/vfs/extfs/extfs.c GDir *dir; dir 1584 src/vfs/extfs/extfs.c dir = g_dir_open (dirname, 0, NULL); dir 1589 src/vfs/extfs/extfs.c if (dir == NULL) dir 1600 src/vfs/extfs/extfs.c while ((filename = g_dir_read_name (dir)) != NULL) dir 1662 src/vfs/extfs/extfs.c g_dir_close (dir); dir 1587 src/vfs/ftpfs/ftpfs.c struct vfs_s_inode *dir) dir 1593 src/vfs/ftpfs/ftpfs.c dir->symlink_status = FTPFS_RESOLVING_SYMLINKS; dir 1594 src/vfs/ftpfs/ftpfs.c for (flist = dir->file_list->next; flist != dir->file_list; flist = flist->next) dir 1610 src/vfs/ftpfs/ftpfs.c if ((strlen (dir->remote_path) + strlen (fel->linkname)) >= MC_MAXPATHLEN) dir 1612 src/vfs/ftpfs/ftpfs.c strcpy (tmp, dir->remote_path); dir 1660 src/vfs/ftpfs/ftpfs.c dir->symlink_status = FTPFS_RESOLVED_SYMLINKS; dir 1667 src/vfs/ftpfs/ftpfs.c struct vfs_s_inode *dir) dir 1677 src/vfs/ftpfs/ftpfs.c dir->symlink_status = FTPFS_RESOLVED_SYMLINKS; dir 1678 src/vfs/ftpfs/ftpfs.c if (strchr (dir->remote_path, ' ') == NULL) dir 1679 src/vfs/ftpfs/ftpfs.c sock = ftpfs_open_data_connection (bucket, "LIST -lLa", dir->remote_path, TYPE_ASCII, 0); dir 1682 src/vfs/ftpfs/ftpfs.c if (ftpfs_chdir_internal (bucket, dir->remote_path) != COMPLETE) dir 1705 src/vfs/ftpfs/ftpfs.c flist = dir->file_list->next; dir 1711 src/vfs/ftpfs/ftpfs.c if (flist == dir->file_list) dir 1773 src/vfs/ftpfs/ftpfs.c resolve_symlink (struct vfs_class *me, struct vfs_s_super *super, struct vfs_s_inode *dir) dir 1778 src/vfs/ftpfs/ftpfs.c resolve_symlink_without_ls_options (me, super, dir); dir 1780 src/vfs/ftpfs/ftpfs.c resolve_symlink_with_ls_options (me, super, dir); dir 1787 src/vfs/ftpfs/ftpfs.c ftpfs_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, const char *remote_path) dir 1789 src/vfs/ftpfs/ftpfs.c struct vfs_s_super *super = dir->super; dir 1816 src/vfs/ftpfs/ftpfs.c dir->timestamp = g_get_monotonic_time () + ftpfs_directory_timeout * G_USEC_PER_SEC; dir 1903 src/vfs/ftpfs/ftpfs.c entlist = ftpfs_parse_long_list (me, dir, dirlist, &err_count); dir 1907 src/vfs/ftpfs/ftpfs.c vfs_s_insert_entry (me, dir, VFS_ENTRY (iter->data)); dir 42 src/vfs/ftpfs/ftpfs.h GSList *ftpfs_parse_long_list (struct vfs_class *me, struct vfs_s_inode *dir, GSList * buf, dir 552 src/vfs/ftpfs/ftpfs_parse_ls.c gboolean dir = FALSE; dir 589 src/vfs/ftpfs/ftpfs_parse_ls.c dir = TRUE; dir 593 src/vfs/ftpfs/ftpfs_parse_ls.c dir = FALSE; dir 634 src/vfs/ftpfs/ftpfs_parse_ls.c s->st_mode = dir ? S_IFDIR : S_IFREG; dir 1108 src/vfs/ftpfs/ftpfs_parse_ls.c ftpfs_parse_long_list (struct vfs_class *me, struct vfs_s_inode *dir, GSList *buf, int *err_ret) dir 1156 src/vfs/ftpfs/ftpfs_parse_ls.c info = vfs_s_generate_entry (me, NULL, dir, 0); dir 1197 src/vfs/ftpfs/ftpfs_parse_ls.c info = vfs_s_generate_entry (me, NULL, dir, 0); dir 87 src/vfs/local/local.c DIR *dir = NULL; dir 97 src/vfs/local/local.c while (dir == NULL) dir 99 src/vfs/local/local.c dir = opendir (path); dir 100 src/vfs/local/local.c if (dir == NULL) dir 103 src/vfs/local/local.c if (readdir (dir) == NULL && errno == EINTR) dir 105 src/vfs/local/local.c closedir (dir); dir 106 src/vfs/local/local.c dir = NULL; dir 109 src/vfs/local/local.c rewinddir (dir); dir 113 src/vfs/local/local.c *local_info = dir; dir 87 src/vfs/sftpfs/internal.c int dir, ret; dir 95 src/vfs/sftpfs/internal.c dir = libssh2_session_block_directions (super->session); dir 97 src/vfs/sftpfs/internal.c if ((dir & LIBSSH2_SESSION_BLOCK_INBOUND) != 0) dir 100 src/vfs/sftpfs/internal.c if ((dir & LIBSSH2_SESSION_BLOCK_OUTBOUND) != 0) dir 134 src/vfs/sftpfs/sftpfs.c struct vfs_s_inode *dir; dir 137 src/vfs/sftpfs/sftpfs.c dir = vfs_s_find_inode (me, super, name, LINK_FOLLOW, FL_DIR); dir 139 src/vfs/sftpfs/sftpfs.c if (dir == NULL) dir 143 src/vfs/sftpfs/sftpfs.c ent = vfs_s_generate_entry (me, name, dir, 0755); dir 146 src/vfs/sftpfs/sftpfs.c vfs_s_insert_entry (me, dir, ent); dir 797 src/vfs/sftpfs/sftpfs.c sftpfs_cb_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, const char *remote_path) dir 800 src/vfs/sftpfs/sftpfs.c (void) dir; dir 906 src/vfs/shell/shell.c shell_dir_load (struct vfs_class *me, struct vfs_s_inode *dir, const char *remote_path) dir 908 src/vfs/shell/shell.c struct vfs_s_super *super = dir->super; dir 924 src/vfs/shell/shell.c dir->timestamp = g_get_monotonic_time () + shell_directory_timeout * G_USEC_PER_SEC; dir 931 src/vfs/shell/shell.c ent = vfs_s_generate_entry (me, NULL, dir, 0); dir 959 src/vfs/shell/shell.c vfs_s_insert_entry (me, dir, ent); dir 960 src/vfs/shell/shell.c ent = vfs_s_generate_entry (me, NULL, dir, 0); dir 276 src/viewer/actions_cmd.c view->dir = ¤t_panel->dir; dir 279 src/viewer/actions_cmd.c else if (view->dir == NULL) dir 289 src/viewer/actions_cmd.c view->dir = g_new0 (dir_list, 1); dir 293 src/viewer/actions_cmd.c (view->dir, view->workdir_vpath, (GCompareFunc) sort_name, &sort_op, NULL)) dir 303 src/viewer/actions_cmd.c for (i = 0; i != view->dir->len; i++) dir 305 src/viewer/actions_cmd.c const file_entry_t *fe = &view->dir->list[i]; dir 316 src/viewer/actions_cmd.c MC_PTR_FREE (view->dir); dir 332 src/viewer/actions_cmd.c i = view->dir->len - 1; dir 333 src/viewer/actions_cmd.c if (i == view->dir->len) dir 335 src/viewer/actions_cmd.c if (!S_ISDIR (view->dir->list[i].st.st_mode)) dir 347 src/viewer/actions_cmd.c dir_list *dir; dir 356 src/viewer/actions_cmd.c dir = view->dir; dir 358 src/viewer/actions_cmd.c view->dir = NULL; dir 361 src/viewer/actions_cmd.c vfs_path_append_new (view->workdir_vpath, dir->list[*dir_idx].fname->str, (char *) NULL); dir 368 src/viewer/actions_cmd.c view->dir = dir; dir 186 src/viewer/internal.h dir_list *dir; /* List of current directory files dir 75 src/viewer/lib.c dir_list *dir; dir 84 src/viewer/lib.c dir = view->dir; dir 86 src/viewer/lib.c view->dir = NULL; dir 91 src/viewer/lib.c view->dir = dir; dir 249 src/viewer/lib.c if (mc_global.mc_run_mode == MC_RUN_VIEWER && view->dir != NULL) dir 252 src/viewer/lib.c dir_list_free_list (view->dir); dir 253 src/viewer/lib.c g_free (view->dir); dir 257 src/viewer/lib.c view->dir = NULL; dir 312 src/viewer/mcviewer.c char *dir; dir 315 src/viewer/mcviewer.c dir = g_strndup (file, (size_t) (fname - file)); dir 316 src/viewer/mcviewer.c view->workdir_vpath = vfs_path_from_str (dir); dir 317 src/viewer/mcviewer.c g_free (dir); dir 56 tests/src/filemanager/exec_get_export_variables_ext.c current_panel->dir.size = DIR_LIST_MIN_SIZE; dir 57 tests/src/filemanager/exec_get_export_variables_ext.c current_panel->dir.list = g_new0 (file_entry_t, current_panel->dir.size); dir 58 tests/src/filemanager/exec_get_export_variables_ext.c current_panel->dir.len = 0; dir 80 tests/src/filemanager/exec_get_export_variables_ext.c current_panel->dir.len = 3; dir 81 tests/src/filemanager/exec_get_export_variables_ext.c current_panel->dir.list[0].fname = g_string_new ("selected file.txt"); dir 82 tests/src/filemanager/exec_get_export_variables_ext.c current_panel->dir.list[1].fname = g_string_new ("tagged file1.txt"); dir 83 tests/src/filemanager/exec_get_export_variables_ext.c current_panel->dir.list[1].f.marked = 1; dir 84 tests/src/filemanager/exec_get_export_variables_ext.c current_panel->dir.list[2].fname = g_string_new ("tagged file2.txt"); dir 85 tests/src/filemanager/exec_get_export_variables_ext.c current_panel->dir.list[2].f.marked = 1; dir 108 tests/src/filemanager/exec_get_export_variables_ext.c g_string_free (current_panel->dir.list[0].fname, TRUE); dir 109 tests/src/filemanager/exec_get_export_variables_ext.c g_string_free (current_panel->dir.list[1].fname, TRUE); dir 110 tests/src/filemanager/exec_get_export_variables_ext.c g_string_free (current_panel->dir.list[2].fname, TRUE);