ctx 58 lib/event-types.h gpointer *ctx; ctx 204 lib/widget/wtools.c wtools_parent_call (void *routine, gpointer ctx, int argc, ...) ctx 209 lib/widget/wtools.c event_data.ctx = ctx; ctx 89 src/background.c register_task_running (file_op_context_t *ctx, pid_t pid, int fd, int to_child, char *info) ctx 102 src/background.c add_select_channel (fd, background_attention, ctx); ctx 190 src/background.c file_op_context_t *ctx; ctx 223 src/background.c ctx = closure; ctx 228 src/background.c unregister_task_running (ctx->pid, fd); ctx 230 src/background.c if (waitpid (ctx->pid, &status, WNOHANG) == 0) ctx 233 src/background.c kill (ctx->pid, SIGTERM); ctx 257 src/background.c if (have_ctx != 0 && read (fd, ctx, sizeof (*ctx)) != sizeof (*ctx)) ctx 317 src/background.c result = routine.non_have_ctx0 (ctx, Background); ctx 320 src/background.c result = routine.non_have_ctx1 (ctx, Background, data[0]); ctx 323 src/background.c result = routine.non_have_ctx2 (ctx, Background, data[0], data[1]); ctx 326 src/background.c result = routine.non_have_ctx3 (ctx, Background, data[0], data[1], data[2]); ctx 330 src/background.c routine.non_have_ctx4 (ctx, Background, data[0], data[1], data[2], data[3]); ctx 339 src/background.c ret = write (to_child_fd, ctx, sizeof (*ctx)); ctx 406 src/background.c parent_call_header (void *routine, int argc, enum ReturnType type, file_op_context_t *ctx) ctx 411 src/background.c have_ctx = ctx != NULL ? 1 : 0; ctx 418 src/background.c ret = write (parent_fd, ctx, sizeof (*ctx)); ctx 430 src/background.c file_op_context_t *ctx = (file_op_context_t *) data; ctx 432 src/background.c parent_call_header (routine, argc, Return_Integer, ctx); ctx 445 src/background.c if (ctx != NULL) ctx 446 src/background.c ret = read (from_parent_fd, ctx, sizeof (*ctx)); ctx 520 src/background.c do_background (file_op_context_t *ctx, char *info) ctx 587 src/background.c ctx->pid = pid; ctx 588 src/background.c register_task_running (ctx, pid, comm[0], back_comm[1], info); ctx 596 src/background.c parent_call (void *routine, file_op_context_t *ctx, int argc, ...) ctx 602 src/background.c ret = parent_va_call (routine, (gpointer) ctx, argc, ap); ctx 637 src/background.c parent_va_call (event_data->routine, event_data->ctx, event_data->argc, event_data->ap); ctx 39 src/background.h int do_background (file_op_context_t *ctx, char *info); ctx 40 src/background.h int parent_call (void *routine, file_op_context_t *ctx, int argc, ...); ctx 12 src/diffviewer/internal.h typedef int (*DFUNC) (void *ctx, int ch, int line, off_t off, size_t sz, const char *str); ctx 841 src/diffviewer/ydiff.c printer_for (char ch, DFUNC printer, void *ctx, FBUF *f, int *line, off_t *off) ctx 851 src/diffviewer/ydiff.c printer (ctx, ch, *line, *off, sz, buf); ctx 859 src/diffviewer/ydiff.c printer (ctx, 0, 0, 0, 1, "\n"); ctx 863 src/diffviewer/ydiff.c printer (ctx, 0, 0, 0, sz, buf); ctx 885 src/diffviewer/ydiff.c dff_reparse (diff_place_t ord, const char *filename, const GArray *ops, DFUNC printer, void *ctx) ctx 927 src/diffviewer/ydiff.c while (line < n && printer_for (EQU_CH, printer, ctx, f, &line, &off)) ctx 935 src/diffviewer/ydiff.c printer (ctx, DEL_CH, 0, 0, 1, "\n"); ctx 940 src/diffviewer/ydiff.c n != 0 && printer_for (ADD_CH, printer, ctx, f, &line, &off); n--) ctx 950 src/diffviewer/ydiff.c n != 0 && printer_for (CHG_CH, printer, ctx, f, &line, &off); n--) ctx 957 src/diffviewer/ydiff.c printer (ctx, CHG_CH, 0, 0, 1, "\n"); ctx 965 src/diffviewer/ydiff.c while (printer_for (EQU_CH, printer, ctx, f, &line, &off)) ctx 1619 src/diffviewer/ydiff.c printer (void *ctx, int ch, int line, off_t off, size_t sz, const char *str) ctx 1621 src/diffviewer/ydiff.c GArray *a = ((PRINTER_CTX *) ctx)->a; ctx 1622 src/diffviewer/ydiff.c DSRC dsrc = ((PRINTER_CTX *) ctx)->dsrc; ctx 1663 src/diffviewer/ydiff.c FBUF *f = ((PRINTER_CTX *) ctx)->f; ctx 1675 src/diffviewer/ydiff.c PRINTER_CTX ctx; ctx 1712 src/diffviewer/ydiff.c ctx.dsrc = dview->dsrc; ctx 1713 src/diffviewer/ydiff.c ctx.a = dview->a[DIFF_LEFT]; ctx 1714 src/diffviewer/ydiff.c ctx.f = f[DIFF_LEFT]; ctx 1715 src/diffviewer/ydiff.c rv |= dff_reparse (DIFF_LEFT, dview->file[DIFF_LEFT], ops, printer, &ctx); ctx 1717 src/diffviewer/ydiff.c ctx.a = dview->a[DIFF_RIGHT]; ctx 1718 src/diffviewer/ydiff.c ctx.f = f[DIFF_RIGHT]; ctx 1719 src/diffviewer/ydiff.c rv |= dff_reparse (DIFF_RIGHT, dview->file[DIFF_RIGHT], ops, printer, &ctx); ctx 238 src/filemanager/file.c build_dest (file_op_context_t *ctx, const char *src, const char *dest, FileProgressStatus *status) ctx 255 src/filemanager/file.c if (!mc_search_run (ctx->search_handle, fnsource, 0, strlen (fnsource), NULL)) ctx 262 src/filemanager/file.c q = mc_search_prepare_replace_str2 (ctx->search_handle, ctx->dest_mask); ctx 263 src/filemanager/file.c if (ctx->search_handle->error != MC_SEARCH_E_OK) ctx 265 src/filemanager/file.c if (ctx->search_handle->error_str != NULL) ctx 266 src/filemanager/file.c message (D_ERROR, MSG_ERROR, "%s", ctx->search_handle->error_str); ctx 278 src/filemanager/file.c repl_dest = mc_search_prepare_replace_str2 (ctx->search_handle, dest); ctx 279 src/filemanager/file.c if (ctx->search_handle->error == MC_SEARCH_E_OK) ctx 283 src/filemanager/file.c if (ctx->search_handle->error_str != NULL) ctx 284 src/filemanager/file.c message (D_ERROR, MSG_ERROR, "%s", ctx->search_handle->error_str); ctx 361 src/filemanager/file.c check_hardlinks (file_op_context_t *ctx, const vfs_path_t *src_vpath, const struct stat *src_stat, ctx 404 src/filemanager/file.c status = file_error (ctx, TRUE, _ ("Cannot stat hardlink source file\n%s"), ctx 423 src/filemanager/file.c status = file_error (ctx, TRUE, _ ("Cannot create target hardlink\n%s"), ctx 458 src/filemanager/file.c status = file_error (ctx, FALSE, _ ("Cannot create target hardlink\n%s"), ctx 497 src/filemanager/file.c make_symlink (file_op_context_t *ctx, const vfs_path_t *src_vpath, const vfs_path_t *dst_vpath) ctx 517 src/filemanager/file.c if (ctx->ignore_all) ctx 521 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot read source link\n%s"), src_path); ctx 523 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 532 src/filemanager/file.c if (ctx->stable_symlinks && !(vfs_file_is_local (src_vpath) && vfs_file_is_local (dst_vpath))) ctx 537 src/filemanager/file.c ctx->stable_symlinks = FALSE; ctx 540 src/filemanager/file.c if (ctx->stable_symlinks && !g_path_is_absolute (link_target)) ctx 601 src/filemanager/file.c if (ctx->ignore_all) ctx 605 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot create target symlink\n%s"), dst_path); ctx 607 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 739 src/filemanager/file.c const struct stat *source_stat, file_op_context_t *ctx, ctx 759 src/filemanager/file.c ctx->total_count = 0; ctx 760 src/filemanager/file.c ctx->total_bytes = 0; ctx 763 src/filemanager/file.c status = panel_compute_totals (panel, &dsm, &ctx->total_count, &ctx->total_bytes, ctx 764 src/filemanager/file.c ctx->follow_links); ctx 766 src/filemanager/file.c || (ctx->follow_links ctx 772 src/filemanager/file.c status = do_compute_dir_size (source, &dsm, &dir_count, &ctx->total_count, ctx 773 src/filemanager/file.c &ctx->total_bytes, ctx->stat_func); ctx 777 src/filemanager/file.c ctx->total_count++; ctx 778 src/filemanager/file.c ctx->total_bytes += (uintmax_t) source_stat->st_size; ctx 784 src/filemanager/file.c ctx->totals_computed = (status == FILE_CONT); ctx 792 src/filemanager/file.c ctx->total_count = panel->marked; ctx 793 src/filemanager/file.c ctx->total_bytes = panel->total; ctx 794 src/filemanager/file.c ctx->totals_computed = verbose && dialog_type == FILEGUI_DIALOG_ONE_ITEM; ctx 798 src/filemanager/file.c file_progress_ui_destroy (ctx); ctx 800 src/filemanager/file.c file_progress_ui_create (ctx, TRUE, dialog_type); ctx 808 src/filemanager/file.c progress_update_one (gboolean success, file_op_context_t *ctx, off_t add) ctx 813 src/filemanager/file.c ctx->total_progress_count++; ctx 814 src/filemanager/file.c ctx->total_progress_bytes += (uintmax_t) add; ctx 825 src/filemanager/file.c if (verbose && ctx->dialog_type == FILEGUI_DIALOG_MULTI_ITEM) ctx 827 src/filemanager/file.c file_progress_show_count (ctx); ctx 828 src/filemanager/file.c file_progress_show_total (ctx, ctx->total_progress_bytes, tv_current, TRUE); ctx 838 src/filemanager/file.c real_warn_same_file (file_op_context_t *ctx, enum OperationMode mode, const char *fmt, ctx 883 src/filemanager/file.c ctx->pauses += g_get_monotonic_time () - t; ctx 891 src/filemanager/file.c warn_same_file (file_op_context_t *ctx, const char *fmt, const char *a, const char *b) ctx 897 src/filemanager/file.c FileProgressStatus (*f) (file_op_context_t *ctx, enum OperationMode, const char *fmt, ctx 904 src/filemanager/file.c return parent_call (pntr.p, ctx, 3, strlen (fmt), fmt, strlen (a), a, strlen (b), b); ctx 906 src/filemanager/file.c return real_warn_same_file (ctx, Foreground, fmt, a, b); ctx 912 src/filemanager/file.c check_same_file (file_op_context_t *ctx, const char *a, const struct stat *ast, const char *b, ctx 919 src/filemanager/file.c *status = warn_same_file (ctx, _ ("\"%s\"\nand\n\"%s\"\nare the same directory"), a, b); ctx 921 src/filemanager/file.c *status = warn_same_file (ctx, _ ("\"%s\"\nand\n\"%s\"\nare the same file"), a, b); ctx 930 src/filemanager/file.c real_do_file_error (file_op_context_t *ctx, enum OperationMode mode, gboolean allow_retry, ctx 937 src/filemanager/file.c if (ctx != NULL) ctx 949 src/filemanager/file.c if (ctx != NULL) ctx 950 src/filemanager/file.c ctx->pauses += g_get_monotonic_time () - t; ctx 979 src/filemanager/file.c real_query_recursive (file_op_context_t *ctx, enum OperationMode mode, const char *s) ctx 981 src/filemanager/file.c if (ctx->recursive_result < RECURSIVE_ALWAYS) ctx 997 src/filemanager/file.c ctx->recursive_result = query_dialog (op_names[OP_DELETE], text, D_ERROR, 5, _ ("&Yes"), ctx 1001 src/filemanager/file.c if (ctx->recursive_result != RECURSIVE_ABORT) ctx 1004 src/filemanager/file.c ctx->pauses += g_get_monotonic_time () - t; ctx 1007 src/filemanager/file.c switch (ctx->recursive_result) ctx 1027 src/filemanager/file.c do_file_error (file_op_context_t *ctx, gboolean allow_retry, const char *str) ctx 1032 src/filemanager/file.c FileProgressStatus (*f) (file_op_context_t *ctx, enum OperationMode, gboolean, ctx 1039 src/filemanager/file.c return parent_call (pntr.p, ctx, 2, sizeof (allow_retry), allow_retry, strlen (str), str); ctx 1041 src/filemanager/file.c return real_do_file_error (ctx, Foreground, allow_retry, str); ctx 1047 src/filemanager/file.c query_recursive (file_op_context_t *ctx, const char *s) ctx 1058 src/filemanager/file.c return parent_call (pntr.p, ctx, 1, strlen (s), s); ctx 1060 src/filemanager/file.c return real_query_recursive (ctx, Foreground, s); ctx 1066 src/filemanager/file.c query_replace (file_op_context_t *ctx, const char *src, struct stat *src_stat, const char *dst, ctx 1079 src/filemanager/file.c return parent_call (pntr.p, ctx, 4, strlen (src), src, sizeof (struct stat), src_stat, ctx 1082 src/filemanager/file.c return file_progress_real_query_replace (ctx, Foreground, src, src_stat, dst, dst_stat); ctx 1089 src/filemanager/file.c do_file_error (file_op_context_t *ctx, gboolean allow_retry, const char *str) ctx 1091 src/filemanager/file.c return real_do_file_error (ctx, Foreground, allow_retry, str); ctx 1097 src/filemanager/file.c query_recursive (file_op_context_t *ctx, const char *s) ctx 1099 src/filemanager/file.c return real_query_recursive (ctx, Foreground, s); ctx 1105 src/filemanager/file.c query_replace (file_op_context_t *ctx, const char *src, struct stat *src_stat, const char *dst, ctx 1108 src/filemanager/file.c return file_progress_real_query_replace (ctx, Foreground, src, src_stat, dst, dst_stat); ctx 1117 src/filemanager/file.c files_error (file_op_context_t *ctx, gboolean allow_retry, const char *format, const char *file1, ctx 1133 src/filemanager/file.c const FileProgressStatus ret = do_file_error (ctx, allow_retry, message); ctx 1145 src/filemanager/file.c calc_copy_file_progress (file_op_context_t *ctx, gint64 tv_current, off_t file_part, ctx 1154 src/filemanager/file.c dt = (tv_current - ctx->pauses - ctx->transfer_start) / (double) G_USEC_PER_SEC; ctx 1157 src/filemanager/file.c ctx->eta_secs = 0.0; ctx 1159 src/filemanager/file.c ctx->eta_secs = ((double) file_size / file_part - 1) * dt; ctx 1163 src/filemanager/file.c ctx->bps = (long) (file_part / dt); ctx 1166 src/filemanager/file.c if (ctx->total_bytes != 0) ctx 1168 src/filemanager/file.c dt = (tv_current - ctx->pauses - ctx->total_transfer_start) / (double) G_USEC_PER_SEC; ctx 1170 src/filemanager/file.c const uintmax_t copied_bytes = ctx->total_progress_bytes + file_part; ctx 1172 src/filemanager/file.c ctx->total_eta_secs = 0; ctx 1174 src/filemanager/file.c ctx->total_eta_secs = ((double) ctx->total_bytes / copied_bytes - 1) * dt; ctx 1177 src/filemanager/file.c ctx->total_bps = (long) (copied_bytes / dt); ctx 1184 src/filemanager/file.c try_remove_file (file_op_context_t *ctx, const vfs_path_t *vpath, FileProgressStatus *status) ctx 1186 src/filemanager/file.c while (mc_unlink (vpath) != 0 && !ctx->ignore_all) ctx 1188 src/filemanager/file.c *status = file_error (ctx, TRUE, _ ("Cannot remove file\n%s"), vfs_path_as_str (vpath)); ctx 1192 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1214 src/filemanager/file.c move_file_file (const WPanel *panel, file_op_context_t *ctx, const char *s, const char *d) ctx 1225 src/filemanager/file.c file_progress_show_source (ctx, src_vpath); ctx 1226 src/filemanager/file.c file_progress_show_target (ctx, dst_vpath); ctx 1229 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1240 src/filemanager/file.c if (ctx->ignore_all) ctx 1244 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot stat file\n%s"), s); ctx 1246 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1255 src/filemanager/file.c if (check_same_file (ctx, s, &src_stat, d, &dst_stat, &return_status)) ctx 1268 src/filemanager/file.c return_status = query_replace (ctx, s, &src_stat, d, &dst_stat); ctx 1275 src/filemanager/file.c if (!ctx->do_append) ctx 1277 src/filemanager/file.c if (S_ISLNK (src_stat.st_mode) && ctx->stable_symlinks) ctx 1279 src/filemanager/file.c return_status = make_symlink (ctx, src_vpath, dst_vpath); ctx 1282 src/filemanager/file.c if (ctx->preserve) ctx 1307 src/filemanager/file.c if (ctx->ignore_all) ctx 1311 src/filemanager/file.c return_status = files_error (ctx, TRUE, _("Cannot move file\n%s\nto\n%s"), s, d); ctx 1313 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1327 src/filemanager/file.c return_status = panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE, ctx 1333 src/filemanager/file.c old_ask_overwrite = ctx->ask_overwrite; ctx 1334 src/filemanager/file.c ctx->ask_overwrite = FALSE; ctx 1335 src/filemanager/file.c return_status = copy_file_file (ctx, s, d); ctx 1336 src/filemanager/file.c ctx->ask_overwrite = old_ask_overwrite; ctx 1346 src/filemanager/file.c file_progress_show_source (ctx, NULL); ctx 1348 src/filemanager/file.c file_progress_show (ctx, 0, 0, "", FALSE); ctx 1350 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 1358 src/filemanager/file.c if (!try_remove_file (ctx, src_vpath, &return_status) && panel == NULL) ctx 1366 src/filemanager/file.c progress_update_one (TRUE, ctx, src_stat.st_size); ctx 1367 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 1383 src/filemanager/file.c erase_file (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1389 src/filemanager/file.c if (file_progress_show_deleting (ctx, vpath, &ctx->total_progress_count)) ctx 1391 src/filemanager/file.c file_progress_show_count (ctx); ctx 1392 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1398 src/filemanager/file.c if (ctx->total_progress_count != 0 && mc_lstat (vpath, &buf) != 0) ctx 1404 src/filemanager/file.c if (!try_remove_file (ctx, vpath, &return_status) && return_status == FILE_ABORT) ctx 1407 src/filemanager/file.c if (ctx->total_progress_count == 0) ctx 1410 src/filemanager/file.c return file_progress_check_buttons (ctx); ctx 1416 src/filemanager/file.c try_erase_dir (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1423 src/filemanager/file.c while (my_rmdir (dir) != 0 && !ctx->ignore_all) ctx 1425 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot remove directory\n%s"), dir); ctx 1427 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1444 src/filemanager/file.c recursive_erase (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1470 src/filemanager/file.c return_status = recursive_erase (ctx, tmp_vpath); ctx 1472 src/filemanager/file.c return_status = erase_file (ctx, tmp_vpath); ctx 1480 src/filemanager/file.c file_progress_show_deleting (ctx, vpath, NULL); ctx 1481 src/filemanager/file.c file_progress_show_count (ctx); ctx 1482 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1487 src/filemanager/file.c return try_erase_dir (ctx, vpath); ctx 1507 src/filemanager/file.c check_dir_is_empty (file_op_context_t *ctx, const vfs_path_t *vpath, FileProgressStatus *error) ctx 1515 src/filemanager/file.c if (ctx->ignore_all) ctx 1520 src/filemanager/file.c ctx, TRUE, _ ("Cannot enter into directory\n%s"), vfs_path_as_str (vpath)); ctx 1525 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1548 src/filemanager/file.c erase_dir_iff_empty (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1552 src/filemanager/file.c file_progress_show_deleting (ctx, vpath, NULL); ctx 1553 src/filemanager/file.c file_progress_show_count (ctx); ctx 1554 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1559 src/filemanager/file.c const int res = check_dir_is_empty (ctx, vpath, &error); ctx 1568 src/filemanager/file.c return try_erase_dir (ctx, vpath); ctx 1574 src/filemanager/file.c erase_dir_after_copy (file_op_context_t *ctx, const vfs_path_t *vpath, FileProgressStatus *status) ctx 1576 src/filemanager/file.c if (ctx->erase_at_end && erase_list != NULL) ctx 1579 src/filemanager/file.c ctx->total_progress_count = ctx->prev_total_progress_count; ctx 1588 src/filemanager/file.c *status = erase_dir_iff_empty (ctx, lp->src_vpath); ctx 1590 src/filemanager/file.c *status = erase_file (ctx, lp->src_vpath); ctx 1596 src/filemanager/file.c ctx->prev_total_progress_count = ctx->total_progress_count; ctx 1599 src/filemanager/file.c erase_dir_iff_empty (ctx, vpath); ctx 1617 src/filemanager/file.c do_move_dir_dir (const WPanel *panel, file_op_context_t *ctx, const char *s, const char *d) ctx 1628 src/filemanager/file.c file_progress_show_source (ctx, src_vpath); ctx 1629 src/filemanager/file.c file_progress_show_target (ctx, dst_vpath); ctx 1632 src/filemanager/file.c if (panel != NULL && file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1644 src/filemanager/file.c if (dstat_ok && check_same_file (ctx, s, &src_stat, d, &dst_stat, &return_status)) ctx 1649 src/filemanager/file.c else if (!ctx->dive_into_subdirs) ctx 1672 src/filemanager/file.c return_status = panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE, ctx 1678 src/filemanager/file.c return_status = copy_dir_dir (ctx, s, d, FALSE, TRUE, TRUE, NULL); ctx 1684 src/filemanager/file.c else if (ctx->ignore_all) ctx 1689 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot overwrite directory\n%s"), d); ctx 1691 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot overwrite file\n%s"), d); ctx 1693 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1710 src/filemanager/file.c if (!ctx->ignore_all) ctx 1712 src/filemanager/file.c return_status = files_error (ctx, TRUE, _ ("Cannot move directory\n%s\nto\n%s"), s, d); ctx 1714 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1726 src/filemanager/file.c return_status = panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE, ctx 1732 src/filemanager/file.c return_status = copy_dir_dir (ctx, s, d, FALSE, FALSE, TRUE, NULL); ctx 1742 src/filemanager/file.c file_progress_show_source (ctx, NULL); ctx 1743 src/filemanager/file.c file_progress_show_target (ctx, NULL); ctx 1745 src/filemanager/file.c file_progress_show (ctx, 0, 0, "", FALSE); ctx 1747 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 1754 src/filemanager/file.c erase_dir_after_copy (ctx, src_vpath, &return_status); ctx 1947 src/filemanager/file.c struct stat *src_stat, file_op_context_t *ctx, gboolean *do_bg) ctx 1986 src/filemanager/file.c format = panel_operate_generate_prompt (panel, ctx->operation, src_stat); ctx 1989 src/filemanager/file.c file_mask_dialog (ctx, source != NULL, format, ctx 2036 src/filemanager/file.c operate_single_file (const WPanel *panel, file_op_context_t *ctx, const char *src, ctx 2055 src/filemanager/file.c is_file = !(is_link && ctx->follow_links); ctx 2058 src/filemanager/file.c if (ctx->operation == OP_DELETE) ctx 2060 src/filemanager/file.c value = panel_operate_init_totals (panel, src_vpath, src_stat, ctx, !is_file, dialog_type); ctx 2064 src/filemanager/file.c value = erase_file (ctx, src_vpath); ctx 2066 src/filemanager/file.c value = erase_dir (ctx, src_vpath); ctx 2075 src/filemanager/file.c temp = build_dest (ctx, src, dest, &value); ctx 2080 src/filemanager/file.c switch (ctx->operation) ctx 2084 src/filemanager/file.c ctx->stat_func (src_vpath, src_stat); ctx 2086 src/filemanager/file.c value = panel_operate_init_totals (panel, src_vpath, src_stat, ctx, !is_file, ctx 2097 src/filemanager/file.c is_file = !(is_link && ctx->follow_links); ctx 2101 src/filemanager/file.c value = copy_file_file (ctx, src, dest); ctx 2103 src/filemanager/file.c value = copy_dir_dir (ctx, src, dest, TRUE, FALSE, FALSE, NULL); ctx 2112 src/filemanager/file.c file_progress_ui_create (ctx, TRUE, FILEGUI_DIALOG_ONE_ITEM); ctx 2115 src/filemanager/file.c value = move_file_file (panel, ctx, src, dest); ctx 2117 src/filemanager/file.c value = do_move_dir_dir (panel, ctx, src, dest); ctx 2137 src/filemanager/file.c operate_one_file (const WPanel *panel, file_op_context_t *ctx, const char *src, ctx 2151 src/filemanager/file.c if (ctx->operation == OP_DELETE) ctx 2154 src/filemanager/file.c value = erase_file (ctx, src_vpath); ctx 2156 src/filemanager/file.c value = erase_dir (ctx, src_vpath); ctx 2164 src/filemanager/file.c temp = build_dest (ctx, src, dest, &value); ctx 2169 src/filemanager/file.c switch (ctx->operation) ctx 2173 src/filemanager/file.c ctx->stat_func (src_vpath, src_stat); ctx 2177 src/filemanager/file.c value = copy_file_file (ctx, src, dest); ctx 2179 src/filemanager/file.c value = copy_dir_dir (ctx, src, dest, TRUE, FALSE, FALSE, NULL); ctx 2185 src/filemanager/file.c value = move_file_file (NULL, ctx, src, dest); ctx 2187 src/filemanager/file.c value = do_move_dir_dir (NULL, ctx, src, dest); ctx 2208 src/filemanager/file.c end_bg_process (file_op_context_t *ctx, enum OperationMode mode) ctx 2210 src/filemanager/file.c int pid = ctx->pid; ctx 2213 src/filemanager/file.c ctx->pid = 0; ctx 2282 src/filemanager/file.c copy_file_file (file_op_context_t *ctx, const char *src_path, const char *dst_path) ctx 2304 src/filemanager/file.c if (ctx->do_reget < 0) ctx 2305 src/filemanager/file.c ctx->do_reget = 0; ctx 2312 src/filemanager/file.c file_progress_show_source (ctx, src_vpath); ctx 2313 src/filemanager/file.c file_progress_show_target (ctx, dst_vpath); ctx 2315 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 2327 src/filemanager/file.c if (ctx->ignore_all) ctx 2332 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot overwrite directory\n%s"), dst_path); ctx 2334 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2345 src/filemanager/file.c while ((*ctx->stat_func) (src_vpath, &src_stat) != 0) ctx 2347 src/filemanager/file.c if (ctx->ignore_all) ctx 2351 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot stat source file\n%s"), src_path); ctx 2353 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2359 src/filemanager/file.c progress_update_one (FALSE, ctx, 0); ctx 2377 src/filemanager/file.c else if (ctx->ignore_all) ctx 2382 src/filemanager/file.c ctx, TRUE, _ ("Cannot get ext2 attributes of source file\n%s"), src_path); ctx 2384 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2399 src/filemanager/file.c if (check_same_file (ctx, src_path, &src_stat, dst_path, &dst_stat, &return_status)) ctx 2403 src/filemanager/file.c if (ctx->ask_overwrite) ctx 2405 src/filemanager/file.c ctx->do_reget = 0; ctx 2406 src/filemanager/file.c return_status = query_replace (ctx, src_path, &src_stat, dst_path, &dst_stat); ctx 2414 src/filemanager/file.c if (!ctx->do_append) ctx 2417 src/filemanager/file.c if (!ctx->follow_links) ctx 2419 src/filemanager/file.c switch (check_hardlinks (ctx, src_vpath, &src_stat, dst_vpath, &ctx->ignore_all)) ctx 2437 src/filemanager/file.c return_status = make_symlink (ctx, src_vpath, dst_vpath); ctx 2438 src/filemanager/file.c if (return_status == FILE_CONT && ctx->preserve) ctx 2442 src/filemanager/file.c while (attrs_ok && mc_fsetflags (dst_vpath, attrs) != 0 && !ctx->ignore_all) ctx 2450 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2453 src/filemanager/file.c ctx, TRUE, _ ("Cannot set ext2 attributes of target file\n%s"), ctx 2475 src/filemanager/file.c while (mc_mknod (dst_vpath, src_stat.st_mode & ctx->umask_kill, rdev) < 0 ctx 2476 src/filemanager/file.c && !ctx->ignore_all) ctx 2479 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot create special file\n%s"), dst_path); ctx 2483 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2488 src/filemanager/file.c while (ctx->preserve_uidgid ctx 2490 src/filemanager/file.c && !ctx->ignore_all) ctx 2492 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot chown target file\n%s"), dst_path); ctx 2496 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2504 src/filemanager/file.c while (ctx->preserve && mc_chmod (dst_vpath, src_stat.st_mode & ctx->umask_kill) != 0 ctx 2505 src/filemanager/file.c && !ctx->ignore_all) ctx 2507 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot chmod target file\n%s"), dst_path); ctx 2511 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2519 src/filemanager/file.c while (attrs_ok && mc_fsetflags (dst_vpath, attrs) != 0 && !ctx->ignore_all) ctx 2528 src/filemanager/file.c ctx, TRUE, _ ("Cannot set ext2 attributes of target file\n%s"), dst_path); ctx 2532 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2549 src/filemanager/file.c ctx->transfer_start = g_get_monotonic_time (); ctx 2553 src/filemanager/file.c if (ctx->ignore_all) ctx 2557 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot open source file\n%s"), src_path); ctx 2561 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2562 src/filemanager/file.c ctx->do_append = FALSE; ctx 2567 src/filemanager/file.c if (ctx->do_reget != 0 && mc_lseek (src_desc, ctx->do_reget, SEEK_SET) != ctx->do_reget) ctx 2570 src/filemanager/file.c ctx->do_reget = 0; ctx 2571 src/filemanager/file.c ctx->do_append = FALSE; ctx 2576 src/filemanager/file.c if (ctx->ignore_all) ctx 2580 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot fstat source file\n%s"), src_path); ctx 2584 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2585 src/filemanager/file.c ctx->do_append = FALSE; ctx 2599 src/filemanager/file.c else if (ctx->do_append) ctx 2608 src/filemanager/file.c if (ctx->ignore_all) ctx 2613 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot create target file\n%s"), dst_path); ctx 2617 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2618 src/filemanager/file.c ctx->do_append = FALSE; ctx 2627 src/filemanager/file.c appending = ctx->do_append; ctx 2628 src/filemanager/file.c ctx->do_append = FALSE; ctx 2641 src/filemanager/file.c if (ctx->ignore_all) ctx 2645 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot fstat target file\n%s"), dst_path); ctx 2649 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2658 src/filemanager/file.c if (ctx->ignore_all) ctx 2666 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot preallocate space for target file\n%s"), dst_path); ctx 2669 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2671 src/filemanager/file.c if (ctx->ignore_all || return_status == FILE_IGNORE) ctx 2690 src/filemanager/file.c ctx->eta_secs = 0.0; ctx 2691 src/filemanager/file.c ctx->bps = 0; ctx 2695 src/filemanager/file.c if (ctx->total_bps == 0 || (file_size / ctx->total_bps) > FILEOP_UPDATE_INTERVAL) ctx 2696 src/filemanager/file.c file_progress_show (ctx, 0, file_size, "", TRUE); ctx 2698 src/filemanager/file.c file_progress_show (ctx, 1, 1, "", TRUE); ctx 2701 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 2707 src/filemanager/file.c gint64 tv_last_update = ctx->transfer_start; ctx 2720 src/filemanager/file.c while ((n_read = mc_read (src_desc, buf, bufsize)) < 0 && !ctx->ignore_all) ctx 2723 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot read source file\n%s"), src_path); ctx 2727 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2759 src/filemanager/file.c if (ctx->ignore_all) ctx 2763 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot write target file\n%s"), dst_path); ctx 2773 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2782 src/filemanager/file.c ctx->progress_bytes = file_part + ctx->do_reget; ctx 2788 src/filemanager/file.c calc_copy_file_progress (ctx, tv_current, file_part, file_size - ctx->do_reget); ctx 2796 src/filemanager/file.c const gint64 total_usecs = tv_current - ctx->total_transfer_start; ctx 2803 src/filemanager/file.c file_progress_show (ctx, ctx->progress_bytes, file_size, stalled_msg, force_update); ctx 2804 src/filemanager/file.c if (ctx->dialog_type == FILEGUI_DIALOG_MULTI_ITEM) ctx 2806 src/filemanager/file.c file_progress_show_count (ctx); ctx 2807 src/filemanager/file.c file_progress_show_total (ctx, ctx->total_progress_bytes + ctx->progress_bytes, ctx 2814 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 2824 src/filemanager/file.c ctx->pauses += t2 - t1; ctx 2827 src/filemanager/file.c calc_copy_file_progress (ctx, t2, file_part, file_size - ctx->do_reget); ctx 2856 src/filemanager/file.c while (src_desc != -1 && mc_close (src_desc) < 0 && !ctx->ignore_all) ctx 2858 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot close source file\n%s"), src_path); ctx 2864 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2868 src/filemanager/file.c while (dest_desc != -1 && mc_close (dest_desc) < 0 && !ctx->ignore_all) ctx 2870 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot close target file\n%s"), dst_path); ctx 2874 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2896 src/filemanager/file.c while (ctx->preserve_uidgid && mc_chown (dst_vpath, src_uid, src_gid) != 0 ctx 2897 src/filemanager/file.c && !ctx->ignore_all) ctx 2899 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot chown target file\n%s"), dst_path); ctx 2909 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2917 src/filemanager/file.c while (ctx->preserve && mc_chmod (dst_vpath, (src_mode & ctx->umask_kill)) != 0 ctx 2918 src/filemanager/file.c && !ctx->ignore_all) ctx 2920 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot chmod target file\n%s"), dst_path); ctx 2930 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2938 src/filemanager/file.c if (!ctx->preserve && !dst_exists) ctx 2943 src/filemanager/file.c mc_chmod (dst_vpath, (src_mode & ctx->umask_kill)); ctx 2952 src/filemanager/file.c while (attrs_ok && mc_fsetflags (dst_vpath, attrs) != 0 && !ctx->ignore_all) ctx 2964 src/filemanager/file.c ctx, TRUE, _ ("Cannot set ext2 attributes for target file\n%s"), dst_path); ctx 2974 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2983 src/filemanager/file.c progress_update_one (return_status == FILE_CONT, ctx, file_size); ctx 2985 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 3002 src/filemanager/file.c copy_dir_dir (file_op_context_t *ctx, const char *s, const char *d, gboolean toplevel, ctx 3021 src/filemanager/file.c while ((*ctx->stat_func) (src_vpath, &src_stat) != 0) ctx 3023 src/filemanager/file.c if (ctx->ignore_all) ctx 3027 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot stat source directory\n%s"), s); ctx 3029 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3043 src/filemanager/file.c else if (ctx->ignore_all) ctx 3048 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot get ext2 attributes of source directory\n%s"), s); ctx 3050 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3074 src/filemanager/file.c if (ctx->preserve) ctx 3076 src/filemanager/file.c switch (check_hardlinks (ctx, src_vpath, &src_stat, dst_vpath, &ctx->ignore_all)) ctx 3093 src/filemanager/file.c if (ctx->ignore_all) ctx 3097 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Source \"%s\" is not a directory\n%s"), s); ctx 3101 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3143 src/filemanager/file.c if (ctx->ignore_all) ctx 3148 src/filemanager/file.c file_error (ctx, TRUE, _ ("Destination\n%s\nmust be a directory\n%s"), d); ctx 3150 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3157 src/filemanager/file.c if (toplevel && ctx->dive_into_subdirs) ctx 3173 src/filemanager/file.c while (my_mkdir (dst_vpath, (src_stat.st_mode & ctx->umask_kill) | S_IRWXU) != 0) ctx 3175 src/filemanager/file.c if (ctx->ignore_all) ctx 3179 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot create target directory\n%s"), d); ctx 3181 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3195 src/filemanager/file.c if (ctx->preserve_uidgid) ctx 3199 src/filemanager/file.c if (ctx->ignore_all) ctx 3203 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot chown target directory\n%s"), d); ctx 3205 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3232 src/filemanager/file.c (*ctx->stat_func) (tmp_vpath, &dst_stat); ctx 3244 src/filemanager/file.c return_status = copy_dir_dir (ctx, path, mdpath, FALSE, FALSE, do_delete, parent_dirs); ctx 3252 src/filemanager/file.c return_status = copy_file_file (ctx, path, dest_file); ctx 3260 src/filemanager/file.c if (ctx->erase_at_end) ctx 3272 src/filemanager/file.c return_status = erase_dir_iff_empty (ctx, tmp_vpath); ctx 3274 src/filemanager/file.c return_status = erase_file (ctx, tmp_vpath); ctx 3280 src/filemanager/file.c if (ctx->preserve) ctx 3284 src/filemanager/file.c mc_chmod (dst_vpath, src_stat.st_mode & ctx->umask_kill); ctx 3297 src/filemanager/file.c mc_chmod (dst_vpath, src_stat.st_mode & ctx->umask_kill); ctx 3315 src/filemanager/file.c move_dir_dir (file_op_context_t *ctx, const char *s, const char *d) ctx 3317 src/filemanager/file.c return do_move_dir_dir (NULL, ctx, s, d); ctx 3326 src/filemanager/file.c erase_dir (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 3330 src/filemanager/file.c file_progress_show_deleting (ctx, vpath, NULL); ctx 3331 src/filemanager/file.c file_progress_show_count (ctx); ctx 3332 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 3344 src/filemanager/file.c const int res = check_dir_is_empty (ctx, vpath, &error); ctx 3352 src/filemanager/file.c error = query_recursive (ctx, vfs_path_as_str (vpath)); ctx 3354 src/filemanager/file.c error = recursive_erase (ctx, vpath); ctx 3358 src/filemanager/file.c return try_erase_dir (ctx, vpath); ctx 3504 src/filemanager/file.c file_op_context_t *ctx; ctx 3530 src/filemanager/file.c ctx = file_op_context_new (operation); ctx 3535 src/filemanager/file.c dest = do_confirm_copy_move (panel, force_single, source, &src_stat, ctx, &do_bg); ctx 3550 src/filemanager/file.c ctx->total_transfer_start = g_get_monotonic_time (); ctx 3558 src/filemanager/file.c v = do_background (ctx, ctx 3627 src/filemanager/file.c value = operate_single_file (panel, ctx, source, &src_stat, dest, dialog_type); ctx 3646 src/filemanager/file.c if (ctx->ignore_all ctx 3647 src/filemanager/file.c || file_error (ctx, TRUE, _ ("Destination\n%s\nmust be a directory\n%s"), dest) ctx 3658 src/filemanager/file.c panel_operate_init_totals (panel, NULL, NULL, ctx, file_op_compute_totals, dialog_type); ctx 3671 src/filemanager/file.c value = operate_one_file (panel, ctx, source2, &src_stat, dest); ctx 3700 src/filemanager/file.c MC_PTR_FREE (ctx->dest_mask); ctx 3708 src/filemanager/file.c ctx->pid = getpid (); ctx 3709 src/filemanager/file.c parent_call ((void *) end_bg_process, ctx, 0); ctx 3717 src/filemanager/file.c file_op_context_destroy (ctx); ctx 3732 src/filemanager/file.c file_error (file_op_context_t *ctx, gboolean allow_retry, const char *format, const char *file) ctx 3734 src/filemanager/file.c return files_error (ctx, allow_retry, format, file, NULL); ctx 44 src/filemanager/file.h FileProgressStatus copy_file_file (file_op_context_t *ctx, const char *src_path, ctx 46 src/filemanager/file.h FileProgressStatus move_dir_dir (file_op_context_t *ctx, const char *s, const char *d); ctx 47 src/filemanager/file.h FileProgressStatus copy_dir_dir (file_op_context_t *ctx, const char *s, const char *d, ctx 50 src/filemanager/file.h FileProgressStatus erase_dir (file_op_context_t *ctx, const vfs_path_t *vpath); ctx 57 src/filemanager/file.h FileProgressStatus file_error (file_op_context_t *ctx, gboolean allow_retry, const char *format, ctx 424 src/filemanager/filegui.c overwrite_query_dialog (file_op_context_t *ctx, enum OperationMode mode) ctx 506 src/filemanager/filegui.c file_progress_ui_t *ui = ctx->ui; ctx 695 src/filemanager/filegui.c ctx->pauses += g_get_monotonic_time () - t; ctx 778 src/filemanager/filegui.c file_op_context_t *ctx; ctx 780 src/filemanager/filegui.c ctx = g_new0 (file_op_context_t, 1); ctx 781 src/filemanager/filegui.c ctx->operation = op; ctx 782 src/filemanager/filegui.c ctx->preserve = TRUE; ctx 783 src/filemanager/filegui.c ctx->preserve_uidgid = (geteuid () == 0); ctx 784 src/filemanager/filegui.c ctx->umask_kill = (mode_t) (~0); ctx 785 src/filemanager/filegui.c ctx->erase_at_end = TRUE; ctx 786 src/filemanager/filegui.c ctx->do_reget = -1; ctx 787 src/filemanager/filegui.c ctx->stat_func = mc_lstat; ctx 788 src/filemanager/filegui.c ctx->ask_overwrite = TRUE; ctx 790 src/filemanager/filegui.c return ctx; ctx 803 src/filemanager/filegui.c file_op_context_destroy (file_op_context_t *ctx) ctx 805 src/filemanager/filegui.c if (ctx != NULL) ctx 807 src/filemanager/filegui.c file_progress_ui_destroy (ctx); ctx 808 src/filemanager/filegui.c mc_search_free (ctx->search_handle); ctx 809 src/filemanager/filegui.c g_free (ctx); ctx 816 src/filemanager/filegui.c file_progress_check_buttons (file_op_context_t *ctx) ctx 822 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 825 src/filemanager/filegui.c ui = ctx->ui; ctx 829 src/filemanager/filegui.c c = tty_get_event (&event, FALSE, ctx->suspended); ctx 840 src/filemanager/filegui.c if (ctx->suspended) ctx 846 src/filemanager/filegui.c ctx->suspended = FALSE; ctx 850 src/filemanager/filegui.c ctx->suspended = FALSE; ctx 853 src/filemanager/filegui.c ctx->suspended = !ctx->suspended; ctx 854 src/filemanager/filegui.c place_progress_buttons (ui->op_dlg, ctx->suspended); ctx 858 src/filemanager/filegui.c if (ctx->suspended) ctx 868 src/filemanager/filegui.c file_progress_ui_create (file_op_context_t *ctx, gboolean with_eta, ctx 879 src/filemanager/filegui.c if (ctx == NULL || ctx->ui != NULL) ctx 892 src/filemanager/filegui.c ctx->dialog_type = dialog_type; ctx 893 src/filemanager/filegui.c ctx->recursive_result = RECURSIVE_YES; ctx 894 src/filemanager/filegui.c ctx->ui = g_new0 (file_progress_ui_t, 1); ctx 896 src/filemanager/filegui.c ui = ctx->ui; ctx 900 src/filemanager/filegui.c file_ui_op_dlg_callback, NULL, NULL, op_names[ctx->operation]); ctx 906 src/filemanager/filegui.c ui->showing_eta = with_eta && ctx->totals_computed; ctx 934 src/filemanager/filegui.c if (ctx->totals_computed) ctx 1016 src/filemanager/filegui.c file_progress_ui_destroy (file_op_context_t *ctx) ctx 1018 src/filemanager/filegui.c if (ctx != NULL && ctx->ui != NULL) ctx 1020 src/filemanager/filegui.c file_progress_ui_t *ui = (file_progress_ui_t *) ctx->ui; ctx 1024 src/filemanager/filegui.c MC_PTR_FREE (ctx->ui); ctx 1034 src/filemanager/filegui.c file_progress_show (file_op_context_t *ctx, off_t done, off_t total, const char *stalled_msg, ctx 1039 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1042 src/filemanager/filegui.c ui = ctx->ui; ctx 1056 src/filemanager/filegui.c if (!ui->showing_eta || ctx->eta_secs <= 0.5) ctx 1062 src/filemanager/filegui.c file_eta_prepare_for_show (buffer2, ctx->eta_secs, FALSE); ctx 1063 src/filemanager/filegui.c if (ctx->bps == 0) ctx 1069 src/filemanager/filegui.c file_bps_prepare_for_show (buffer3, ctx->bps); ctx 1078 src/filemanager/filegui.c file_progress_show_count (file_op_context_t *ctx) ctx 1082 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1085 src/filemanager/filegui.c ui = ctx->ui; ctx 1090 src/filemanager/filegui.c if (ctx->totals_computed) ctx 1092 src/filemanager/filegui.c ctx->total_progress_count, ctx->total_count); ctx 1095 src/filemanager/filegui.c ctx->total_progress_count); ctx 1101 src/filemanager/filegui.c file_progress_show_total (file_op_context_t *ctx, uintmax_t copied_bytes, gint64 tv_current, ctx 1108 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1111 src/filemanager/filegui.c ui = ctx->ui; ctx 1115 src/filemanager/filegui.c if (ctx->total_bytes == 0) ctx 1120 src/filemanager/filegui.c (int) (1024 * copied_bytes / ctx->total_bytes)); ctx 1125 src/filemanager/filegui.c if (!show_summary && ctx->total_bps == 0) ctx 1133 src/filemanager/filegui.c (tv_current - ctx->pauses - ctx->total_transfer_start) / G_USEC_PER_SEC); ctx 1135 src/filemanager/filegui.c if (ctx->totals_computed) ctx 1137 src/filemanager/filegui.c file_eta_prepare_for_show (buffer3, ctx->total_eta_secs, TRUE); ctx 1138 src/filemanager/filegui.c if (ctx->total_bps == 0) ctx 1142 src/filemanager/filegui.c file_bps_prepare_for_show (buffer4, ctx->total_bps); ctx 1148 src/filemanager/filegui.c if (ctx->total_bps == 0) ctx 1152 src/filemanager/filegui.c file_bps_prepare_for_show (buffer4, ctx->total_bps); ctx 1162 src/filemanager/filegui.c if (!ctx->totals_computed) ctx 1166 src/filemanager/filegui.c size_trunc_len (buffer3, 5, ctx->total_bytes, 0, panels_options.kilobyte_si); ctx 1177 src/filemanager/filegui.c file_progress_show_source (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1181 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1184 src/filemanager/filegui.c ui = ctx->ui; ctx 1201 src/filemanager/filegui.c file_progress_show_target (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1205 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1208 src/filemanager/filegui.c ui = ctx->ui; ctx 1225 src/filemanager/filegui.c file_progress_show_deleting (file_op_context_t *ctx, const vfs_path_t *vpath, size_t *count) ctx 1233 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1243 src/filemanager/filegui.c ui = ctx->ui; ctx 1261 src/filemanager/filegui.c file_progress_real_query_replace (file_op_context_t *ctx, enum OperationMode mode, const char *src, ctx 1267 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1270 src/filemanager/filegui.c ui = ctx->ui; ctx 1279 src/filemanager/filegui.c ui->replace_result = overwrite_query_dialog (ctx, mode); ctx 1314 src/filemanager/filegui.c ctx->do_reget = dst_stat->st_size; ctx 1318 src/filemanager/filegui.c ctx->do_append = TRUE; ctx 1339 src/filemanager/filegui.c file_mask_dialog (file_op_context_t *ctx, gboolean only_one, const char *format, const void *text, ctx 1351 src/filemanager/filegui.c if (ctx == NULL) ctx 1357 src/filemanager/filegui.c ctx->stable_symlinks = FALSE; ctx 1420 src/filemanager/filegui.c QUICK_CHECKBOX (N_ ("Follow &links"), &ctx->follow_links, NULL), ctx 1426 src/filemanager/filegui.c QUICK_CHECKBOX (N_ ("Di&ve into subdir if exists"), &ctx->dive_into_subdirs, NULL), ctx 1427 src/filemanager/filegui.c QUICK_CHECKBOX (N_ ("&Stable symlinks"), &ctx->stable_symlinks, NULL), ctx 1443 src/filemanager/filegui.c .title = op_names[ctx->operation], ctx 1460 src/filemanager/filegui.c ctx->stat_func = ctx->follow_links ? mc_stat : mc_lstat; ctx 1464 src/filemanager/filegui.c ctx->preserve = TRUE; ctx 1465 src/filemanager/filegui.c ctx->umask_kill = (mode_t) (~0); ctx 1466 src/filemanager/filegui.c ctx->preserve_uidgid = (geteuid () == 0); ctx 1472 src/filemanager/filegui.c ctx->preserve = ctx->preserve_uidgid = FALSE; ctx 1475 src/filemanager/filegui.c ctx->umask_kill = i2 ^ ((mode_t) (~0)); ctx 1486 src/filemanager/filegui.c ctx->search_handle = mc_search_new (source_mask, NULL); ctx 1487 src/filemanager/filegui.c if (ctx->search_handle != NULL) ctx 1498 src/filemanager/filegui.c ctx->search_handle->is_case_sensitive = TRUE; ctx 1500 src/filemanager/filegui.c ctx->search_handle->search_type = MC_SEARCH_T_GLOB; ctx 1502 src/filemanager/filegui.c ctx->search_handle->search_type = MC_SEARCH_T_REGEX; ctx 1509 src/filemanager/filegui.c ctx->dest_mask = strrchr (dest_dir, PATH_SEP); ctx 1510 src/filemanager/filegui.c if (ctx->dest_mask == NULL) ctx 1511 src/filemanager/filegui.c ctx->dest_mask = dest_dir; ctx 1513 src/filemanager/filegui.c ctx->dest_mask++; ctx 1515 src/filemanager/filegui.c orig_mask = ctx->dest_mask; ctx 1517 src/filemanager/filegui.c if (*ctx->dest_mask == '\0' ctx 1518 src/filemanager/filegui.c || (!ctx->dive_into_subdirs && !is_wildcarded (ctx->dest_mask) ctx 1520 src/filemanager/filegui.c || (ctx->dive_into_subdirs ctx 1521 src/filemanager/filegui.c && ((!only_one && !is_wildcarded (ctx->dest_mask)) ctx 1523 src/filemanager/filegui.c ctx->dest_mask = g_strdup ("\\0"); ctx 1526 src/filemanager/filegui.c ctx->dest_mask = g_strdup (ctx->dest_mask); ctx 164 src/filemanager/filegui.h void file_op_context_destroy (file_op_context_t *ctx); ctx 166 src/filemanager/filegui.h void file_progress_ui_create (file_op_context_t *ctx, gboolean with_eta, ctx 168 src/filemanager/filegui.h void file_progress_ui_destroy (file_op_context_t *ctx); ctx 170 src/filemanager/filegui.h char *file_mask_dialog (file_op_context_t *ctx, gboolean only_one, const char *format, ctx 173 src/filemanager/filegui.h FileProgressStatus file_progress_check_buttons (file_op_context_t *ctx); ctx 175 src/filemanager/filegui.h void file_progress_show (file_op_context_t *ctx, off_t done, off_t total, const char *stalled_msg, ctx 177 src/filemanager/filegui.h void file_progress_show_count (file_op_context_t *ctx); ctx 178 src/filemanager/filegui.h void file_progress_show_total (file_op_context_t *ctx, uintmax_t copied_bytes, gint64 tv_current, ctx 180 src/filemanager/filegui.h void file_progress_show_source (file_op_context_t *ctx, const vfs_path_t *vpath); ctx 181 src/filemanager/filegui.h void file_progress_show_target (file_op_context_t *ctx, const vfs_path_t *vpath); ctx 182 src/filemanager/filegui.h gboolean file_progress_show_deleting (file_op_context_t *ctx, const vfs_path_t *vpath, ctx 186 src/filemanager/filegui.h FileProgressStatus file_progress_real_query_replace (file_op_context_t *ctx, ctx 725 src/filemanager/tree.c file_op_context_t *ctx; ctx 727 src/filemanager/tree.c ctx = file_op_context_new (OP_COPY); ctx 728 src/filemanager/tree.c file_progress_ui_create (ctx, FALSE, FILEGUI_DIALOG_MULTI_ITEM); ctx 729 src/filemanager/tree.c ctx->ask_overwrite = FALSE; ctx 730 src/filemanager/tree.c copy_dir_dir (ctx, vfs_path_as_str (tree->selected_ptr->name), dest, TRUE, FALSE, FALSE, ctx 732 src/filemanager/tree.c file_op_context_destroy (ctx); ctx 770 src/filemanager/tree.c file_op_context_t *ctx; ctx 772 src/filemanager/tree.c ctx = file_op_context_new (OP_MOVE); ctx 773 src/filemanager/tree.c file_progress_ui_create (ctx, FALSE, FILEGUI_DIALOG_ONE_ITEM); ctx 774 src/filemanager/tree.c move_dir_dir (ctx, vfs_path_as_str (tree->selected_ptr->name), dest); ctx 775 src/filemanager/tree.c file_op_context_destroy (ctx); ctx 808 src/filemanager/tree.c file_op_context_t *ctx; ctx 826 src/filemanager/tree.c ctx = file_op_context_new (OP_DELETE); ctx 827 src/filemanager/tree.c file_progress_ui_create (ctx, FALSE, FILEGUI_DIALOG_ONE_ITEM); ctx 828 src/filemanager/tree.c if (erase_dir (ctx, tree->selected_ptr->name) == FILE_CONT) ctx 830 src/filemanager/tree.c file_op_context_destroy (ctx); ctx 61 src/util.c file_op_context_t *ctx; ctx 66 src/util.c ctx = file_op_context_new (OP_COPY); ctx 67 src/util.c file_progress_ui_create (ctx, 0, FALSE); ctx 68 src/util.c copy_file_file (ctx, vfs_path_as_str (default_file_vpath), vfs_path_as_str (file_vpath)); ctx 69 src/util.c file_op_context_destroy (ctx);