ctx 58 lib/event-types.h gpointer *ctx; ctx 203 lib/widget/wtools.c wtools_parent_call (void *routine, gpointer ctx, int argc, ...) ctx 208 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 230 src/background.c unregister_task_running (ctx->pid, fd); ctx 232 src/background.c if (waitpid (ctx->pid, &status, WNOHANG) == 0) ctx 235 src/background.c kill (ctx->pid, SIGTERM); ctx 259 src/background.c if (have_ctx != 0 && read (fd, ctx, sizeof (*ctx)) != sizeof (*ctx)) ctx 319 src/background.c result = routine.non_have_ctx0 (ctx, Background); ctx 322 src/background.c result = routine.non_have_ctx1 (ctx, Background, data[0]); ctx 325 src/background.c result = routine.non_have_ctx2 (ctx, Background, data[0], data[1]); ctx 328 src/background.c result = routine.non_have_ctx3 (ctx, Background, data[0], data[1], data[2]); ctx 332 src/background.c routine.non_have_ctx4 (ctx, Background, data[0], data[1], data[2], data[3]); ctx 341 src/background.c ret = write (to_child_fd, ctx, sizeof (*ctx)); ctx 405 src/background.c parent_call_header (void *routine, int argc, enum ReturnType type, file_op_context_t *ctx) ctx 410 src/background.c have_ctx = ctx != NULL ? 1 : 0; ctx 417 src/background.c ret = write (parent_fd, ctx, sizeof (*ctx)); ctx 429 src/background.c file_op_context_t *ctx = (file_op_context_t *) data; ctx 431 src/background.c parent_call_header (routine, argc, Return_Integer, ctx); ctx 444 src/background.c if (ctx != NULL) ctx 445 src/background.c ret = read (from_parent_fd, ctx, sizeof (*ctx)); ctx 519 src/background.c do_background (file_op_context_t *ctx, char *info) ctx 586 src/background.c ctx->pid = pid; ctx 587 src/background.c register_task_running (ctx, pid, comm[0], back_comm[1], info); ctx 595 src/background.c parent_call (void *routine, file_op_context_t *ctx, int argc, ...) ctx 601 src/background.c ret = parent_va_call (routine, (gpointer) ctx, argc, ap); ctx 636 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 838 src/diffviewer/ydiff.c printer_for (char ch, DFUNC printer, void *ctx, FBUF *f, int *line, off_t *off) ctx 848 src/diffviewer/ydiff.c printer (ctx, ch, *line, *off, sz, buf); ctx 856 src/diffviewer/ydiff.c printer (ctx, 0, 0, 0, 1, "\n"); ctx 860 src/diffviewer/ydiff.c printer (ctx, 0, 0, 0, sz, buf); ctx 882 src/diffviewer/ydiff.c dff_reparse (diff_place_t ord, const char *filename, const GArray *ops, DFUNC printer, void *ctx) ctx 924 src/diffviewer/ydiff.c while (line < n && printer_for (EQU_CH, printer, ctx, f, &line, &off)) ctx 932 src/diffviewer/ydiff.c printer (ctx, DEL_CH, 0, 0, 1, "\n"); ctx 937 src/diffviewer/ydiff.c n != 0 && printer_for (ADD_CH, printer, ctx, f, &line, &off); n--) ctx 947 src/diffviewer/ydiff.c n != 0 && printer_for (CHG_CH, printer, ctx, f, &line, &off); n--) ctx 954 src/diffviewer/ydiff.c printer (ctx, CHG_CH, 0, 0, 1, "\n"); ctx 962 src/diffviewer/ydiff.c while (printer_for (EQU_CH, printer, ctx, f, &line, &off)) ctx 1613 src/diffviewer/ydiff.c printer (void *ctx, int ch, int line, off_t off, size_t sz, const char *str) ctx 1615 src/diffviewer/ydiff.c GArray *a = ((PRINTER_CTX *) ctx)->a; ctx 1616 src/diffviewer/ydiff.c DSRC dsrc = ((PRINTER_CTX *) ctx)->dsrc; ctx 1657 src/diffviewer/ydiff.c FBUF *f = ((PRINTER_CTX *) ctx)->f; ctx 1669 src/diffviewer/ydiff.c PRINTER_CTX ctx; ctx 1706 src/diffviewer/ydiff.c ctx.dsrc = dview->dsrc; ctx 1707 src/diffviewer/ydiff.c ctx.a = dview->a[DIFF_LEFT]; ctx 1708 src/diffviewer/ydiff.c ctx.f = f[DIFF_LEFT]; ctx 1709 src/diffviewer/ydiff.c rv |= dff_reparse (DIFF_LEFT, dview->file[DIFF_LEFT], ops, printer, &ctx); ctx 1711 src/diffviewer/ydiff.c ctx.a = dview->a[DIFF_RIGHT]; ctx 1712 src/diffviewer/ydiff.c ctx.f = f[DIFF_RIGHT]; ctx 1713 src/diffviewer/ydiff.c rv |= dff_reparse (DIFF_RIGHT, dview->file[DIFF_RIGHT], ops, printer, &ctx); ctx 237 src/filemanager/file.c build_dest (file_op_context_t *ctx, const char *src, const char *dest, FileProgressStatus *status) ctx 254 src/filemanager/file.c if (!mc_search_run (ctx->search_handle, fnsource, 0, strlen (fnsource), NULL)) ctx 261 src/filemanager/file.c q = mc_search_prepare_replace_str2 (ctx->search_handle, ctx->dest_mask); ctx 262 src/filemanager/file.c if (ctx->search_handle->error != MC_SEARCH_E_OK) ctx 264 src/filemanager/file.c if (ctx->search_handle->error_str != NULL) ctx 265 src/filemanager/file.c message (D_ERROR, MSG_ERROR, "%s", ctx->search_handle->error_str); ctx 277 src/filemanager/file.c repl_dest = mc_search_prepare_replace_str2 (ctx->search_handle, dest); ctx 278 src/filemanager/file.c if (ctx->search_handle->error == MC_SEARCH_E_OK) ctx 282 src/filemanager/file.c if (ctx->search_handle->error_str != NULL) ctx 283 src/filemanager/file.c message (D_ERROR, MSG_ERROR, "%s", ctx->search_handle->error_str); ctx 360 src/filemanager/file.c check_hardlinks (file_op_context_t *ctx, const vfs_path_t *src_vpath, const struct stat *src_stat, ctx 403 src/filemanager/file.c status = file_error (ctx, TRUE, _ ("Cannot stat hardlink source file\n%s"), ctx 422 src/filemanager/file.c status = file_error (ctx, TRUE, _ ("Cannot create target hardlink\n%s"), ctx 457 src/filemanager/file.c status = file_error (ctx, FALSE, _ ("Cannot create target hardlink\n%s"), ctx 496 src/filemanager/file.c make_symlink (file_op_context_t *ctx, const vfs_path_t *src_vpath, const vfs_path_t *dst_vpath) ctx 516 src/filemanager/file.c if (ctx->ignore_all) ctx 520 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot read source link\n%s"), src_path); ctx 522 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 531 src/filemanager/file.c if (ctx->stable_symlinks && !(vfs_file_is_local (src_vpath) && vfs_file_is_local (dst_vpath))) ctx 536 src/filemanager/file.c ctx->stable_symlinks = FALSE; ctx 539 src/filemanager/file.c if (ctx->stable_symlinks && !g_path_is_absolute (link_target)) ctx 600 src/filemanager/file.c if (ctx->ignore_all) ctx 604 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot create target symlink\n%s"), dst_path); ctx 606 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 738 src/filemanager/file.c const struct stat *source_stat, file_op_context_t *ctx, ctx 758 src/filemanager/file.c ctx->total_count = 0; ctx 759 src/filemanager/file.c ctx->total_bytes = 0; ctx 762 src/filemanager/file.c status = panel_compute_totals (panel, &dsm, &ctx->total_count, &ctx->total_bytes, ctx 763 src/filemanager/file.c ctx->follow_links); ctx 765 src/filemanager/file.c || (ctx->follow_links ctx 771 src/filemanager/file.c status = do_compute_dir_size (source, &dsm, &dir_count, &ctx->total_count, ctx 772 src/filemanager/file.c &ctx->total_bytes, ctx->stat_func); ctx 776 src/filemanager/file.c ctx->total_count++; ctx 777 src/filemanager/file.c ctx->total_bytes += (uintmax_t) source_stat->st_size; ctx 783 src/filemanager/file.c ctx->totals_computed = (status == FILE_CONT); ctx 791 src/filemanager/file.c ctx->total_count = panel->marked; ctx 792 src/filemanager/file.c ctx->total_bytes = panel->total; ctx 793 src/filemanager/file.c ctx->totals_computed = verbose && dialog_type == FILEGUI_DIALOG_ONE_ITEM; ctx 797 src/filemanager/file.c file_progress_ui_destroy (ctx); ctx 799 src/filemanager/file.c file_progress_ui_create (ctx, TRUE, dialog_type); ctx 807 src/filemanager/file.c progress_update_one (gboolean success, file_op_context_t *ctx, off_t add) ctx 812 src/filemanager/file.c ctx->total_progress_count++; ctx 813 src/filemanager/file.c ctx->total_progress_bytes += (uintmax_t) add; ctx 824 src/filemanager/file.c if (verbose && ctx->dialog_type == FILEGUI_DIALOG_MULTI_ITEM) ctx 826 src/filemanager/file.c file_progress_show_count (ctx); ctx 827 src/filemanager/file.c file_progress_show_total (ctx, ctx->total_progress_bytes, tv_current, TRUE); ctx 837 src/filemanager/file.c real_warn_same_file (file_op_context_t *ctx, enum OperationMode mode, const char *fmt, ctx 882 src/filemanager/file.c ctx->pauses += g_get_monotonic_time () - t; ctx 890 src/filemanager/file.c warn_same_file (file_op_context_t *ctx, const char *fmt, const char *a, const char *b) ctx 896 src/filemanager/file.c FileProgressStatus (*f) (file_op_context_t *ctx, enum OperationMode, const char *fmt, ctx 903 src/filemanager/file.c return parent_call (pntr.p, ctx, 3, strlen (fmt), fmt, strlen (a), a, strlen (b), b); ctx 905 src/filemanager/file.c return real_warn_same_file (ctx, Foreground, fmt, a, b); ctx 911 src/filemanager/file.c check_same_file (file_op_context_t *ctx, const char *a, const struct stat *ast, const char *b, ctx 918 src/filemanager/file.c *status = warn_same_file (ctx, _ ("\"%s\"\nand\n\"%s\"\nare the same directory"), a, b); ctx 920 src/filemanager/file.c *status = warn_same_file (ctx, _ ("\"%s\"\nand\n\"%s\"\nare the same file"), a, b); ctx 929 src/filemanager/file.c real_do_file_error (file_op_context_t *ctx, enum OperationMode mode, gboolean allow_retry, ctx 936 src/filemanager/file.c if (ctx != NULL) ctx 948 src/filemanager/file.c if (ctx != NULL) ctx 949 src/filemanager/file.c ctx->pauses += g_get_monotonic_time () - t; ctx 978 src/filemanager/file.c real_query_recursive (file_op_context_t *ctx, enum OperationMode mode, const char *s) ctx 980 src/filemanager/file.c if (ctx->recursive_result < RECURSIVE_ALWAYS) ctx 996 src/filemanager/file.c ctx->recursive_result = query_dialog (op_names[OP_DELETE], text, D_ERROR, 5, _ ("&Yes"), ctx 1000 src/filemanager/file.c if (ctx->recursive_result != RECURSIVE_ABORT) ctx 1003 src/filemanager/file.c ctx->pauses += g_get_monotonic_time () - t; ctx 1006 src/filemanager/file.c switch (ctx->recursive_result) ctx 1026 src/filemanager/file.c do_file_error (file_op_context_t *ctx, gboolean allow_retry, const char *str) ctx 1031 src/filemanager/file.c FileProgressStatus (*f) (file_op_context_t *ctx, enum OperationMode, gboolean, ctx 1038 src/filemanager/file.c return parent_call (pntr.p, ctx, 2, sizeof (allow_retry), allow_retry, strlen (str), str); ctx 1040 src/filemanager/file.c return real_do_file_error (ctx, Foreground, allow_retry, str); ctx 1046 src/filemanager/file.c query_recursive (file_op_context_t *ctx, const char *s) ctx 1057 src/filemanager/file.c return parent_call (pntr.p, ctx, 1, strlen (s), s); ctx 1059 src/filemanager/file.c return real_query_recursive (ctx, Foreground, s); ctx 1065 src/filemanager/file.c query_replace (file_op_context_t *ctx, const char *src, struct stat *src_stat, const char *dst, ctx 1078 src/filemanager/file.c return parent_call (pntr.p, ctx, 4, strlen (src), src, sizeof (struct stat), src_stat, ctx 1081 src/filemanager/file.c return file_progress_real_query_replace (ctx, Foreground, src, src_stat, dst, dst_stat); ctx 1088 src/filemanager/file.c do_file_error (file_op_context_t *ctx, gboolean allow_retry, const char *str) ctx 1090 src/filemanager/file.c return real_do_file_error (ctx, Foreground, allow_retry, str); ctx 1096 src/filemanager/file.c query_recursive (file_op_context_t *ctx, const char *s) ctx 1098 src/filemanager/file.c return real_query_recursive (ctx, Foreground, s); ctx 1104 src/filemanager/file.c query_replace (file_op_context_t *ctx, const char *src, struct stat *src_stat, const char *dst, ctx 1107 src/filemanager/file.c return file_progress_real_query_replace (ctx, Foreground, src, src_stat, dst, dst_stat); ctx 1116 src/filemanager/file.c files_error (file_op_context_t *ctx, gboolean allow_retry, const char *format, const char *file1, ctx 1132 src/filemanager/file.c const FileProgressStatus ret = do_file_error (ctx, allow_retry, message); ctx 1144 src/filemanager/file.c calc_copy_file_progress (file_op_context_t *ctx, gint64 tv_current, off_t file_part, ctx 1153 src/filemanager/file.c dt = (tv_current - ctx->pauses - ctx->transfer_start) / (double) G_USEC_PER_SEC; ctx 1156 src/filemanager/file.c ctx->eta_secs = 0.0; ctx 1158 src/filemanager/file.c ctx->eta_secs = ((double) file_size / file_part - 1) * dt; ctx 1162 src/filemanager/file.c ctx->bps = (long) (file_part / dt); ctx 1165 src/filemanager/file.c if (ctx->total_bytes != 0) ctx 1167 src/filemanager/file.c dt = (tv_current - ctx->pauses - ctx->total_transfer_start) / (double) G_USEC_PER_SEC; ctx 1169 src/filemanager/file.c const uintmax_t copied_bytes = ctx->total_progress_bytes + file_part; ctx 1171 src/filemanager/file.c ctx->total_eta_secs = 0; ctx 1173 src/filemanager/file.c ctx->total_eta_secs = ((double) ctx->total_bytes / copied_bytes - 1) * dt; ctx 1176 src/filemanager/file.c ctx->total_bps = (long) (copied_bytes / dt); ctx 1183 src/filemanager/file.c try_remove_file (file_op_context_t *ctx, const vfs_path_t *vpath, FileProgressStatus *status) ctx 1185 src/filemanager/file.c while (mc_unlink (vpath) != 0 && !ctx->ignore_all) ctx 1187 src/filemanager/file.c *status = file_error (ctx, TRUE, _ ("Cannot remove file\n%s"), vfs_path_as_str (vpath)); ctx 1191 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1213 src/filemanager/file.c move_file_file (const WPanel *panel, file_op_context_t *ctx, const char *s, const char *d) ctx 1224 src/filemanager/file.c file_progress_show_source (ctx, src_vpath); ctx 1225 src/filemanager/file.c file_progress_show_target (ctx, dst_vpath); ctx 1228 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1239 src/filemanager/file.c if (ctx->ignore_all) ctx 1243 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot stat file\n%s"), s); ctx 1245 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1254 src/filemanager/file.c if (check_same_file (ctx, s, &src_stat, d, &dst_stat, &return_status)) ctx 1267 src/filemanager/file.c return_status = query_replace (ctx, s, &src_stat, d, &dst_stat); ctx 1274 src/filemanager/file.c if (!ctx->do_append) ctx 1276 src/filemanager/file.c if (S_ISLNK (src_stat.st_mode) && ctx->stable_symlinks) ctx 1278 src/filemanager/file.c return_status = make_symlink (ctx, src_vpath, dst_vpath); ctx 1281 src/filemanager/file.c if (ctx->preserve) ctx 1306 src/filemanager/file.c if (ctx->ignore_all) ctx 1310 src/filemanager/file.c return_status = files_error (ctx, TRUE, _("Cannot move file\n%s\nto\n%s"), s, d); ctx 1312 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1326 src/filemanager/file.c return_status = panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE, ctx 1332 src/filemanager/file.c old_ask_overwrite = ctx->ask_overwrite; ctx 1333 src/filemanager/file.c ctx->ask_overwrite = FALSE; ctx 1334 src/filemanager/file.c return_status = copy_file_file (ctx, s, d); ctx 1335 src/filemanager/file.c ctx->ask_overwrite = old_ask_overwrite; ctx 1345 src/filemanager/file.c file_progress_show_source (ctx, NULL); ctx 1347 src/filemanager/file.c file_progress_show (ctx, 0, 0, "", FALSE); ctx 1349 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 1357 src/filemanager/file.c if (!try_remove_file (ctx, src_vpath, &return_status) && panel == NULL) ctx 1365 src/filemanager/file.c progress_update_one (TRUE, ctx, src_stat.st_size); ctx 1366 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 1382 src/filemanager/file.c erase_file (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1388 src/filemanager/file.c if (file_progress_show_deleting (ctx, vpath, &ctx->total_progress_count)) ctx 1390 src/filemanager/file.c file_progress_show_count (ctx); ctx 1391 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1397 src/filemanager/file.c if (ctx->total_progress_count != 0 && mc_lstat (vpath, &buf) != 0) ctx 1403 src/filemanager/file.c if (!try_remove_file (ctx, vpath, &return_status) && return_status == FILE_ABORT) ctx 1406 src/filemanager/file.c if (ctx->total_progress_count == 0) ctx 1409 src/filemanager/file.c return file_progress_check_buttons (ctx); ctx 1415 src/filemanager/file.c try_erase_dir (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1419 src/filemanager/file.c while (mc_rmdir (vpath) != 0 && !ctx->ignore_all) ctx 1422 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot remove directory\n%s"), vfs_path_as_str (vpath)); ctx 1424 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1441 src/filemanager/file.c recursive_erase (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1467 src/filemanager/file.c return_status = recursive_erase (ctx, tmp_vpath); ctx 1469 src/filemanager/file.c return_status = erase_file (ctx, tmp_vpath); ctx 1477 src/filemanager/file.c file_progress_show_deleting (ctx, vpath, NULL); ctx 1478 src/filemanager/file.c file_progress_show_count (ctx); ctx 1479 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1484 src/filemanager/file.c return try_erase_dir (ctx, vpath); ctx 1504 src/filemanager/file.c check_dir_is_empty (file_op_context_t *ctx, const vfs_path_t *vpath, FileProgressStatus *error) ctx 1512 src/filemanager/file.c if (ctx->ignore_all) ctx 1517 src/filemanager/file.c ctx, TRUE, _ ("Cannot enter into directory\n%s"), vfs_path_as_str (vpath)); ctx 1522 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1545 src/filemanager/file.c erase_dir_iff_empty (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1549 src/filemanager/file.c file_progress_show_deleting (ctx, vpath, NULL); ctx 1550 src/filemanager/file.c file_progress_show_count (ctx); ctx 1551 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1556 src/filemanager/file.c const int res = check_dir_is_empty (ctx, vpath, &error); ctx 1565 src/filemanager/file.c return try_erase_dir (ctx, vpath); ctx 1571 src/filemanager/file.c erase_dir_after_copy (file_op_context_t *ctx, const vfs_path_t *vpath, FileProgressStatus *status) ctx 1573 src/filemanager/file.c if (ctx->erase_at_end && erase_list != NULL) ctx 1576 src/filemanager/file.c ctx->total_progress_count = ctx->prev_total_progress_count; ctx 1585 src/filemanager/file.c *status = erase_dir_iff_empty (ctx, lp->src_vpath); ctx 1587 src/filemanager/file.c *status = erase_file (ctx, lp->src_vpath); ctx 1593 src/filemanager/file.c ctx->prev_total_progress_count = ctx->total_progress_count; ctx 1596 src/filemanager/file.c erase_dir_iff_empty (ctx, vpath); ctx 1614 src/filemanager/file.c do_move_dir_dir (const WPanel *panel, file_op_context_t *ctx, const char *s, const char *d) ctx 1625 src/filemanager/file.c file_progress_show_source (ctx, src_vpath); ctx 1626 src/filemanager/file.c file_progress_show_target (ctx, dst_vpath); ctx 1629 src/filemanager/file.c if (panel != NULL && file_progress_check_buttons (ctx) == FILE_ABORT) ctx 1641 src/filemanager/file.c if (dstat_ok && check_same_file (ctx, s, &src_stat, d, &dst_stat, &return_status)) ctx 1646 src/filemanager/file.c else if (!ctx->dive_into_subdirs) ctx 1669 src/filemanager/file.c return_status = panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE, ctx 1675 src/filemanager/file.c return_status = copy_dir_dir (ctx, s, d, FALSE, TRUE, TRUE, NULL); ctx 1681 src/filemanager/file.c else if (ctx->ignore_all) ctx 1686 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot overwrite directory\n%s"), d); ctx 1688 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot overwrite file\n%s"), d); ctx 1690 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1707 src/filemanager/file.c if (!ctx->ignore_all) ctx 1709 src/filemanager/file.c return_status = files_error (ctx, TRUE, _ ("Cannot move directory\n%s\nto\n%s"), s, d); ctx 1711 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 1723 src/filemanager/file.c return_status = panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE, ctx 1729 src/filemanager/file.c return_status = copy_dir_dir (ctx, s, d, FALSE, FALSE, TRUE, NULL); ctx 1739 src/filemanager/file.c file_progress_show_source (ctx, NULL); ctx 1740 src/filemanager/file.c file_progress_show_target (ctx, NULL); ctx 1742 src/filemanager/file.c file_progress_show (ctx, 0, 0, "", FALSE); ctx 1744 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 1751 src/filemanager/file.c erase_dir_after_copy (ctx, src_vpath, &return_status); ctx 1944 src/filemanager/file.c struct stat *src_stat, file_op_context_t *ctx, gboolean *do_bg) ctx 1983 src/filemanager/file.c format = panel_operate_generate_prompt (panel, ctx->operation, src_stat); ctx 1986 src/filemanager/file.c file_mask_dialog (ctx, source != NULL, format, ctx 2033 src/filemanager/file.c operate_single_file (const WPanel *panel, file_op_context_t *ctx, const char *src, ctx 2052 src/filemanager/file.c is_file = !(is_link && ctx->follow_links); ctx 2055 src/filemanager/file.c if (ctx->operation == OP_DELETE) ctx 2057 src/filemanager/file.c value = panel_operate_init_totals (panel, src_vpath, src_stat, ctx, !is_file, dialog_type); ctx 2061 src/filemanager/file.c value = erase_file (ctx, src_vpath); ctx 2063 src/filemanager/file.c value = erase_dir (ctx, src_vpath); ctx 2072 src/filemanager/file.c temp = build_dest (ctx, src, dest, &value); ctx 2077 src/filemanager/file.c switch (ctx->operation) ctx 2081 src/filemanager/file.c ctx->stat_func (src_vpath, src_stat); ctx 2083 src/filemanager/file.c value = panel_operate_init_totals (panel, src_vpath, src_stat, ctx, !is_file, ctx 2094 src/filemanager/file.c is_file = !(is_link && ctx->follow_links); ctx 2098 src/filemanager/file.c value = copy_file_file (ctx, src, dest); ctx 2100 src/filemanager/file.c value = copy_dir_dir (ctx, src, dest, TRUE, FALSE, FALSE, NULL); ctx 2109 src/filemanager/file.c file_progress_ui_create (ctx, TRUE, FILEGUI_DIALOG_ONE_ITEM); ctx 2112 src/filemanager/file.c value = move_file_file (panel, ctx, src, dest); ctx 2114 src/filemanager/file.c value = do_move_dir_dir (panel, ctx, src, dest); ctx 2134 src/filemanager/file.c operate_one_file (const WPanel *panel, file_op_context_t *ctx, const char *src, ctx 2148 src/filemanager/file.c if (ctx->operation == OP_DELETE) ctx 2151 src/filemanager/file.c value = erase_file (ctx, src_vpath); ctx 2153 src/filemanager/file.c value = erase_dir (ctx, src_vpath); ctx 2161 src/filemanager/file.c temp = build_dest (ctx, src, dest, &value); ctx 2166 src/filemanager/file.c switch (ctx->operation) ctx 2170 src/filemanager/file.c ctx->stat_func (src_vpath, src_stat); ctx 2174 src/filemanager/file.c value = copy_file_file (ctx, src, dest); ctx 2176 src/filemanager/file.c value = copy_dir_dir (ctx, src, dest, TRUE, FALSE, FALSE, NULL); ctx 2182 src/filemanager/file.c value = move_file_file (NULL, ctx, src, dest); ctx 2184 src/filemanager/file.c value = do_move_dir_dir (NULL, ctx, src, dest); ctx 2205 src/filemanager/file.c end_bg_process (file_op_context_t *ctx, enum OperationMode mode) ctx 2207 src/filemanager/file.c int pid = ctx->pid; ctx 2210 src/filemanager/file.c ctx->pid = 0; ctx 2279 src/filemanager/file.c copy_file_file (file_op_context_t *ctx, const char *src_path, const char *dst_path) ctx 2301 src/filemanager/file.c if (ctx->do_reget < 0) ctx 2302 src/filemanager/file.c ctx->do_reget = 0; ctx 2309 src/filemanager/file.c file_progress_show_source (ctx, src_vpath); ctx 2310 src/filemanager/file.c file_progress_show_target (ctx, dst_vpath); ctx 2312 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 2324 src/filemanager/file.c if (ctx->ignore_all) ctx 2329 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot overwrite directory\n%s"), dst_path); ctx 2331 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2342 src/filemanager/file.c while ((*ctx->stat_func) (src_vpath, &src_stat) != 0) ctx 2344 src/filemanager/file.c if (ctx->ignore_all) ctx 2348 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot stat source file\n%s"), src_path); ctx 2350 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2356 src/filemanager/file.c progress_update_one (FALSE, ctx, 0); ctx 2374 src/filemanager/file.c else if (ctx->ignore_all) ctx 2379 src/filemanager/file.c ctx, TRUE, _ ("Cannot get ext2 attributes of source file\n%s"), src_path); ctx 2381 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2396 src/filemanager/file.c if (check_same_file (ctx, src_path, &src_stat, dst_path, &dst_stat, &return_status)) ctx 2400 src/filemanager/file.c if (ctx->ask_overwrite) ctx 2402 src/filemanager/file.c ctx->do_reget = 0; ctx 2403 src/filemanager/file.c return_status = query_replace (ctx, src_path, &src_stat, dst_path, &dst_stat); ctx 2411 src/filemanager/file.c if (!ctx->do_append) ctx 2414 src/filemanager/file.c if (!ctx->follow_links) ctx 2416 src/filemanager/file.c switch (check_hardlinks (ctx, src_vpath, &src_stat, dst_vpath, &ctx->ignore_all)) ctx 2434 src/filemanager/file.c return_status = make_symlink (ctx, src_vpath, dst_vpath); ctx 2435 src/filemanager/file.c if (return_status == FILE_CONT && ctx->preserve) ctx 2439 src/filemanager/file.c while (attrs_ok && mc_fsetflags (dst_vpath, attrs) != 0 && !ctx->ignore_all) ctx 2447 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2450 src/filemanager/file.c ctx, TRUE, _ ("Cannot set ext2 attributes of target file\n%s"), ctx 2472 src/filemanager/file.c while (mc_mknod (dst_vpath, src_stat.st_mode & ctx->umask_kill, rdev) < 0 ctx 2473 src/filemanager/file.c && !ctx->ignore_all) ctx 2476 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot create special file\n%s"), dst_path); ctx 2480 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2485 src/filemanager/file.c while (ctx->preserve_uidgid ctx 2487 src/filemanager/file.c && !ctx->ignore_all) ctx 2489 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot chown target file\n%s"), dst_path); ctx 2493 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2501 src/filemanager/file.c while (ctx->preserve && mc_chmod (dst_vpath, src_stat.st_mode & ctx->umask_kill) != 0 ctx 2502 src/filemanager/file.c && !ctx->ignore_all) ctx 2504 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot chmod target file\n%s"), dst_path); ctx 2508 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2516 src/filemanager/file.c while (attrs_ok && mc_fsetflags (dst_vpath, attrs) != 0 && !ctx->ignore_all) ctx 2525 src/filemanager/file.c ctx, TRUE, _ ("Cannot set ext2 attributes of target file\n%s"), dst_path); ctx 2529 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2546 src/filemanager/file.c ctx->transfer_start = g_get_monotonic_time (); ctx 2550 src/filemanager/file.c if (ctx->ignore_all) ctx 2554 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot open source file\n%s"), src_path); ctx 2558 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2559 src/filemanager/file.c ctx->do_append = FALSE; ctx 2564 src/filemanager/file.c if (ctx->do_reget != 0 && mc_lseek (src_desc, ctx->do_reget, SEEK_SET) != ctx->do_reget) ctx 2567 src/filemanager/file.c ctx->do_reget = 0; ctx 2568 src/filemanager/file.c ctx->do_append = FALSE; ctx 2573 src/filemanager/file.c if (ctx->ignore_all) ctx 2577 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot fstat source file\n%s"), src_path); ctx 2581 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2582 src/filemanager/file.c ctx->do_append = FALSE; ctx 2596 src/filemanager/file.c else if (ctx->do_append) ctx 2605 src/filemanager/file.c if (ctx->ignore_all) ctx 2610 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot create target file\n%s"), dst_path); ctx 2614 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2615 src/filemanager/file.c ctx->do_append = FALSE; ctx 2624 src/filemanager/file.c appending = ctx->do_append; ctx 2625 src/filemanager/file.c ctx->do_append = FALSE; ctx 2638 src/filemanager/file.c if (ctx->ignore_all) ctx 2642 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot fstat target file\n%s"), dst_path); ctx 2646 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2655 src/filemanager/file.c if (ctx->ignore_all) ctx 2663 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot preallocate space for target file\n%s"), dst_path); ctx 2666 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2668 src/filemanager/file.c if (ctx->ignore_all || return_status == FILE_IGNORE) ctx 2687 src/filemanager/file.c ctx->eta_secs = 0.0; ctx 2688 src/filemanager/file.c ctx->bps = 0; ctx 2692 src/filemanager/file.c if (ctx->total_bps == 0 || (file_size / ctx->total_bps) > FILEOP_UPDATE_INTERVAL) ctx 2693 src/filemanager/file.c file_progress_show (ctx, 0, file_size, "", TRUE); ctx 2695 src/filemanager/file.c file_progress_show (ctx, 1, 1, "", TRUE); ctx 2698 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 2704 src/filemanager/file.c gint64 tv_last_update = ctx->transfer_start; ctx 2717 src/filemanager/file.c while ((n_read = mc_read (src_desc, buf, bufsize)) < 0 && !ctx->ignore_all) ctx 2720 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot read source file\n%s"), src_path); ctx 2724 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2756 src/filemanager/file.c if (ctx->ignore_all) ctx 2760 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot write target file\n%s"), dst_path); ctx 2770 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2779 src/filemanager/file.c ctx->progress_bytes = file_part + ctx->do_reget; ctx 2785 src/filemanager/file.c calc_copy_file_progress (ctx, tv_current, file_part, file_size - ctx->do_reget); ctx 2793 src/filemanager/file.c const gint64 total_usecs = tv_current - ctx->total_transfer_start; ctx 2800 src/filemanager/file.c file_progress_show (ctx, ctx->progress_bytes, file_size, stalled_msg, force_update); ctx 2801 src/filemanager/file.c if (ctx->dialog_type == FILEGUI_DIALOG_MULTI_ITEM) ctx 2803 src/filemanager/file.c file_progress_show_count (ctx); ctx 2804 src/filemanager/file.c file_progress_show_total (ctx, ctx->total_progress_bytes + ctx->progress_bytes, ctx 2811 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 2821 src/filemanager/file.c ctx->pauses += t2 - t1; ctx 2824 src/filemanager/file.c calc_copy_file_progress (ctx, t2, file_part, file_size - ctx->do_reget); ctx 2853 src/filemanager/file.c while (src_desc != -1 && mc_close (src_desc) < 0 && !ctx->ignore_all) ctx 2855 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot close source file\n%s"), src_path); ctx 2861 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2865 src/filemanager/file.c while (dest_desc != -1 && mc_close (dest_desc) < 0 && !ctx->ignore_all) ctx 2867 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot close target file\n%s"), dst_path); ctx 2871 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2893 src/filemanager/file.c while (ctx->preserve_uidgid && mc_chown (dst_vpath, src_uid, src_gid) != 0 ctx 2894 src/filemanager/file.c && !ctx->ignore_all) ctx 2896 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot chown target file\n%s"), dst_path); ctx 2906 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2914 src/filemanager/file.c while (ctx->preserve && mc_chmod (dst_vpath, (src_mode & ctx->umask_kill)) != 0 ctx 2915 src/filemanager/file.c && !ctx->ignore_all) ctx 2917 src/filemanager/file.c temp_status = file_error (ctx, TRUE, _ ("Cannot chmod target file\n%s"), dst_path); ctx 2927 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2935 src/filemanager/file.c if (!ctx->preserve && !dst_exists) ctx 2940 src/filemanager/file.c mc_chmod (dst_vpath, (src_mode & ctx->umask_kill)); ctx 2943 src/filemanager/file.c while (attrs_ok && mc_fsetflags (dst_vpath, attrs) != 0 && !ctx->ignore_all) ctx 2955 src/filemanager/file.c ctx, TRUE, _ ("Cannot set ext2 attributes for target file\n%s"), dst_path); ctx 2968 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 2981 src/filemanager/file.c progress_update_one (return_status == FILE_CONT, ctx, file_size); ctx 2983 src/filemanager/file.c return_status = file_progress_check_buttons (ctx); ctx 3000 src/filemanager/file.c copy_dir_dir (file_op_context_t *ctx, const char *s, const char *d, gboolean toplevel, ctx 3019 src/filemanager/file.c while ((*ctx->stat_func) (src_vpath, &src_stat) != 0) ctx 3021 src/filemanager/file.c if (ctx->ignore_all) ctx 3025 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot stat source directory\n%s"), s); ctx 3027 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3041 src/filemanager/file.c else if (ctx->ignore_all) ctx 3046 src/filemanager/file.c file_error (ctx, TRUE, _ ("Cannot get ext2 attributes of source directory\n%s"), s); ctx 3048 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3072 src/filemanager/file.c if (ctx->preserve) ctx 3074 src/filemanager/file.c switch (check_hardlinks (ctx, src_vpath, &src_stat, dst_vpath, &ctx->ignore_all)) ctx 3091 src/filemanager/file.c if (ctx->ignore_all) ctx 3095 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Source \"%s\" is not a directory\n%s"), s); ctx 3099 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3141 src/filemanager/file.c if (ctx->ignore_all) ctx 3146 src/filemanager/file.c file_error (ctx, TRUE, _ ("Destination\n%s\nmust be a directory\n%s"), d); ctx 3148 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3155 src/filemanager/file.c if (toplevel && ctx->dive_into_subdirs) ctx 3171 src/filemanager/file.c while (mc_mkdir (dst_vpath, (src_stat.st_mode & ctx->umask_kill) | S_IRWXU) != 0) ctx 3173 src/filemanager/file.c if (ctx->ignore_all) ctx 3177 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot create target directory\n%s"), d); ctx 3179 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3193 src/filemanager/file.c if (ctx->preserve_uidgid) ctx 3197 src/filemanager/file.c if (ctx->ignore_all) ctx 3201 src/filemanager/file.c return_status = file_error (ctx, TRUE, _ ("Cannot chown target directory\n%s"), d); ctx 3203 src/filemanager/file.c ctx->ignore_all = TRUE; ctx 3230 src/filemanager/file.c (*ctx->stat_func) (tmp_vpath, &dst_stat); ctx 3242 src/filemanager/file.c return_status = copy_dir_dir (ctx, path, mdpath, FALSE, FALSE, do_delete, parent_dirs); ctx 3250 src/filemanager/file.c return_status = copy_file_file (ctx, path, dest_file); ctx 3258 src/filemanager/file.c if (ctx->erase_at_end) ctx 3270 src/filemanager/file.c return_status = erase_dir_iff_empty (ctx, tmp_vpath); ctx 3272 src/filemanager/file.c return_status = erase_file (ctx, tmp_vpath); ctx 3278 src/filemanager/file.c if (ctx->preserve) ctx 3282 src/filemanager/file.c mc_chmod (dst_vpath, src_stat.st_mode & ctx->umask_kill); ctx 3295 src/filemanager/file.c mc_chmod (dst_vpath, src_stat.st_mode & ctx->umask_kill); ctx 3313 src/filemanager/file.c move_dir_dir (file_op_context_t *ctx, const char *s, const char *d) ctx 3315 src/filemanager/file.c return do_move_dir_dir (NULL, ctx, s, d); ctx 3324 src/filemanager/file.c erase_dir (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 3328 src/filemanager/file.c file_progress_show_deleting (ctx, vpath, NULL); ctx 3329 src/filemanager/file.c file_progress_show_count (ctx); ctx 3330 src/filemanager/file.c if (file_progress_check_buttons (ctx) == FILE_ABORT) ctx 3335 src/filemanager/file.c const int res = check_dir_is_empty (ctx, vpath, &error); ctx 3343 src/filemanager/file.c error = query_recursive (ctx, vfs_path_as_str (vpath)); ctx 3345 src/filemanager/file.c error = recursive_erase (ctx, vpath); ctx 3349 src/filemanager/file.c return try_erase_dir (ctx, vpath); ctx 3490 src/filemanager/file.c file_op_context_t *ctx; ctx 3508 src/filemanager/file.c ctx = file_op_context_new (operation); ctx 3513 src/filemanager/file.c dest = do_confirm_copy_move (panel, force_single, source, &src_stat, ctx, &do_bg); ctx 3528 src/filemanager/file.c ctx->total_transfer_start = g_get_monotonic_time (); ctx 3536 src/filemanager/file.c v = do_background (ctx, ctx 3605 src/filemanager/file.c value = operate_single_file (panel, ctx, source, &src_stat, dest, dialog_type); ctx 3624 src/filemanager/file.c if (ctx->ignore_all ctx 3625 src/filemanager/file.c || file_error (ctx, TRUE, _ ("Destination\n%s\nmust be a directory\n%s"), dest) ctx 3636 src/filemanager/file.c panel_operate_init_totals (panel, NULL, NULL, ctx, file_op_compute_totals, dialog_type); ctx 3649 src/filemanager/file.c value = operate_one_file (panel, ctx, source2, &src_stat, dest); ctx 3678 src/filemanager/file.c MC_PTR_FREE (ctx->dest_mask); ctx 3686 src/filemanager/file.c ctx->pid = getpid (); ctx 3687 src/filemanager/file.c parent_call ((void *) end_bg_process, ctx, 0); ctx 3695 src/filemanager/file.c file_op_context_destroy (ctx); ctx 3710 src/filemanager/file.c file_error (file_op_context_t *ctx, gboolean allow_retry, const char *format, const char *file) ctx 3712 src/filemanager/file.c return files_error (ctx, allow_retry, format, file, ""); 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 422 src/filemanager/filegui.c overwrite_query_dialog (file_op_context_t *ctx, enum OperationMode mode) ctx 504 src/filemanager/filegui.c file_progress_ui_t *ui = ctx->ui; ctx 683 src/filemanager/filegui.c ctx->pauses += g_get_monotonic_time () - t; ctx 765 src/filemanager/filegui.c file_op_context_t *ctx; ctx 774 src/filemanager/filegui.c ctx = g_new0 (file_op_context_t, 1); ctx 775 src/filemanager/filegui.c ctx->operation = op; ctx 776 src/filemanager/filegui.c ctx->preserve = TRUE; ctx 777 src/filemanager/filegui.c ctx->preserve_uidgid = (geteuid () == 0); ctx 778 src/filemanager/filegui.c ctx->umask_kill = (mode_t) (~0); ctx 779 src/filemanager/filegui.c ctx->erase_at_end = TRUE; ctx 780 src/filemanager/filegui.c ctx->do_reget = -1; ctx 781 src/filemanager/filegui.c ctx->stat_func = mc_lstat; ctx 782 src/filemanager/filegui.c ctx->ask_overwrite = TRUE; ctx 784 src/filemanager/filegui.c return ctx; ctx 797 src/filemanager/filegui.c file_op_context_destroy (file_op_context_t *ctx) ctx 799 src/filemanager/filegui.c if (ctx != NULL) ctx 801 src/filemanager/filegui.c file_progress_ui_destroy (ctx); ctx 802 src/filemanager/filegui.c mc_search_free (ctx->search_handle); ctx 803 src/filemanager/filegui.c g_free (ctx); ctx 810 src/filemanager/filegui.c file_progress_check_buttons (file_op_context_t *ctx) ctx 815 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 818 src/filemanager/filegui.c const file_progress_ui_t *ui = ctx->ui; ctx 822 src/filemanager/filegui.c c = tty_get_event (&event, FALSE, ctx->suspended); ctx 833 src/filemanager/filegui.c if (ctx->suspended) ctx 839 src/filemanager/filegui.c ctx->suspended = FALSE; ctx 843 src/filemanager/filegui.c ctx->suspended = FALSE; ctx 846 src/filemanager/filegui.c ctx->suspended = !ctx->suspended; ctx 847 src/filemanager/filegui.c place_progress_buttons (ui->op_dlg, ctx->suspended); ctx 851 src/filemanager/filegui.c if (ctx->suspended) ctx 861 src/filemanager/filegui.c file_progress_ui_create (file_op_context_t *ctx, gboolean with_eta, ctx 872 src/filemanager/filegui.c if (ctx == NULL || ctx->ui != NULL) ctx 885 src/filemanager/filegui.c ctx->dialog_type = dialog_type; ctx 886 src/filemanager/filegui.c ctx->recursive_result = RECURSIVE_YES; ctx 887 src/filemanager/filegui.c ctx->ui = g_new0 (file_progress_ui_t, 1); ctx 889 src/filemanager/filegui.c ui = ctx->ui; ctx 893 src/filemanager/filegui.c file_ui_op_dlg_callback, NULL, NULL, op_names[ctx->operation]); ctx 899 src/filemanager/filegui.c ui->showing_eta = with_eta && ctx->totals_computed; ctx 927 src/filemanager/filegui.c if (ctx->totals_computed) ctx 1008 src/filemanager/filegui.c file_progress_ui_destroy (file_op_context_t *ctx) ctx 1010 src/filemanager/filegui.c if (ctx != NULL && ctx->ui != NULL) ctx 1012 src/filemanager/filegui.c const file_progress_ui_t *ui = ctx->ui; ctx 1016 src/filemanager/filegui.c MC_PTR_FREE (ctx->ui); ctx 1023 src/filemanager/filegui.c file_progress_show (file_op_context_t *ctx, off_t done, off_t total, const char *stalled_msg, ctx 1026 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1029 src/filemanager/filegui.c const file_progress_ui_t *ui = ctx->ui; ctx 1043 src/filemanager/filegui.c if (!ui->showing_eta || ctx->eta_secs <= 0.5) ctx 1049 src/filemanager/filegui.c file_eta_prepare_for_show (buffer2, ctx->eta_secs, FALSE); ctx 1050 src/filemanager/filegui.c if (ctx->bps == 0) ctx 1056 src/filemanager/filegui.c file_bps_prepare_for_show (buffer3, ctx->bps); ctx 1065 src/filemanager/filegui.c file_progress_show_count (file_op_context_t *ctx) ctx 1067 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1070 src/filemanager/filegui.c const file_progress_ui_t *ui = ctx->ui; ctx 1075 src/filemanager/filegui.c if (ctx->totals_computed) ctx 1077 src/filemanager/filegui.c ctx->total_progress_count, ctx->total_count); ctx 1080 src/filemanager/filegui.c ctx->total_progress_count); ctx 1086 src/filemanager/filegui.c file_progress_show_total (file_op_context_t *ctx, uintmax_t copied_bytes, gint64 tv_current, ctx 1092 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1095 src/filemanager/filegui.c const file_progress_ui_t *ui = ctx->ui; ctx 1099 src/filemanager/filegui.c if (ctx->total_bytes == 0) ctx 1104 src/filemanager/filegui.c (int) (1024 * copied_bytes / ctx->total_bytes)); ctx 1109 src/filemanager/filegui.c if (!show_summary && ctx->total_bps == 0) ctx 1117 src/filemanager/filegui.c (tv_current - ctx->pauses - ctx->total_transfer_start) / G_USEC_PER_SEC); ctx 1119 src/filemanager/filegui.c if (ctx->totals_computed) ctx 1121 src/filemanager/filegui.c file_eta_prepare_for_show (buffer3, ctx->total_eta_secs, TRUE); ctx 1122 src/filemanager/filegui.c if (ctx->total_bps == 0) ctx 1126 src/filemanager/filegui.c file_bps_prepare_for_show (buffer4, ctx->total_bps); ctx 1132 src/filemanager/filegui.c if (ctx->total_bps == 0) ctx 1136 src/filemanager/filegui.c file_bps_prepare_for_show (buffer4, ctx->total_bps); ctx 1146 src/filemanager/filegui.c if (!ctx->totals_computed) ctx 1150 src/filemanager/filegui.c size_trunc_len (buffer3, 5, ctx->total_bytes, 0, panels_options.kilobyte_si); ctx 1159 src/filemanager/filegui.c file_progress_show_source (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1161 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1164 src/filemanager/filegui.c const file_progress_ui_t *ui = ctx->ui; ctx 1181 src/filemanager/filegui.c file_progress_show_target (file_op_context_t *ctx, const vfs_path_t *vpath) ctx 1183 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1186 src/filemanager/filegui.c const file_progress_ui_t *ui = ctx->ui; ctx 1203 src/filemanager/filegui.c file_progress_show_deleting (file_op_context_t *ctx, const vfs_path_t *vpath, size_t *count) ctx 1208 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1218 src/filemanager/filegui.c ui = ctx->ui; ctx 1236 src/filemanager/filegui.c file_progress_real_query_replace (file_op_context_t *ctx, enum OperationMode mode, const char *src, ctx 1242 src/filemanager/filegui.c if (ctx == NULL || ctx->ui == NULL) ctx 1245 src/filemanager/filegui.c ui = ctx->ui; ctx 1254 src/filemanager/filegui.c ui->replace_result = overwrite_query_dialog (ctx, mode); ctx 1289 src/filemanager/filegui.c ctx->do_reget = dst_stat->st_size; ctx 1293 src/filemanager/filegui.c ctx->do_append = TRUE; ctx 1314 src/filemanager/filegui.c file_mask_dialog (file_op_context_t *ctx, gboolean only_one, const char *format, const void *text, ctx 1326 src/filemanager/filegui.c if (ctx == NULL) ctx 1332 src/filemanager/filegui.c ctx->stable_symlinks = FALSE; ctx 1395 src/filemanager/filegui.c QUICK_CHECKBOX (_ ("Follow &links"), &ctx->follow_links, NULL), ctx 1401 src/filemanager/filegui.c QUICK_CHECKBOX (_ ("Di&ve into subdir if exists"), &ctx->dive_into_subdirs, NULL), ctx 1402 src/filemanager/filegui.c QUICK_CHECKBOX (_ ("&Stable symlinks"), &ctx->stable_symlinks, NULL), ctx 1418 src/filemanager/filegui.c .title = op_names[ctx->operation], ctx 1435 src/filemanager/filegui.c ctx->stat_func = ctx->follow_links ? mc_stat : mc_lstat; ctx 1439 src/filemanager/filegui.c ctx->preserve = TRUE; ctx 1440 src/filemanager/filegui.c ctx->umask_kill = (mode_t) (~0); ctx 1441 src/filemanager/filegui.c ctx->preserve_uidgid = (geteuid () == 0); ctx 1447 src/filemanager/filegui.c ctx->preserve = ctx->preserve_uidgid = FALSE; ctx 1450 src/filemanager/filegui.c ctx->umask_kill = i2 ^ ((mode_t) (~0)); ctx 1461 src/filemanager/filegui.c ctx->search_handle = mc_search_new (source_mask, NULL); ctx 1462 src/filemanager/filegui.c if (ctx->search_handle != NULL) ctx 1473 src/filemanager/filegui.c ctx->search_handle->is_case_sensitive = TRUE; ctx 1475 src/filemanager/filegui.c ctx->search_handle->search_type = MC_SEARCH_T_GLOB; ctx 1477 src/filemanager/filegui.c ctx->search_handle->search_type = MC_SEARCH_T_REGEX; ctx 1484 src/filemanager/filegui.c ctx->dest_mask = strrchr (dest_dir, PATH_SEP); ctx 1485 src/filemanager/filegui.c if (ctx->dest_mask == NULL) ctx 1486 src/filemanager/filegui.c ctx->dest_mask = dest_dir; ctx 1488 src/filemanager/filegui.c ctx->dest_mask++; ctx 1490 src/filemanager/filegui.c orig_mask = ctx->dest_mask; ctx 1492 src/filemanager/filegui.c if (*ctx->dest_mask == '\0' ctx 1493 src/filemanager/filegui.c || (!ctx->dive_into_subdirs && !is_wildcarded (ctx->dest_mask) ctx 1495 src/filemanager/filegui.c || (ctx->dive_into_subdirs ctx 1496 src/filemanager/filegui.c && ((!only_one && !is_wildcarded (ctx->dest_mask)) ctx 1498 src/filemanager/filegui.c ctx->dest_mask = g_strdup ("\\0"); ctx 1501 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 721 src/filemanager/tree.c file_op_context_t *ctx; ctx 723 src/filemanager/tree.c ctx = file_op_context_new (OP_COPY); ctx 724 src/filemanager/tree.c file_progress_ui_create (ctx, FALSE, FILEGUI_DIALOG_MULTI_ITEM); ctx 725 src/filemanager/tree.c ctx->ask_overwrite = FALSE; ctx 726 src/filemanager/tree.c copy_dir_dir (ctx, vfs_path_as_str (tree->selected_ptr->name), dest, TRUE, FALSE, FALSE, ctx 728 src/filemanager/tree.c file_op_context_destroy (ctx); ctx 766 src/filemanager/tree.c file_op_context_t *ctx; ctx 768 src/filemanager/tree.c ctx = file_op_context_new (OP_MOVE); ctx 769 src/filemanager/tree.c file_progress_ui_create (ctx, FALSE, FILEGUI_DIALOG_ONE_ITEM); ctx 770 src/filemanager/tree.c move_dir_dir (ctx, vfs_path_as_str (tree->selected_ptr->name), dest); ctx 771 src/filemanager/tree.c file_op_context_destroy (ctx); ctx 804 src/filemanager/tree.c file_op_context_t *ctx; ctx 822 src/filemanager/tree.c ctx = file_op_context_new (OP_DELETE); ctx 823 src/filemanager/tree.c file_progress_ui_create (ctx, FALSE, FILEGUI_DIALOG_ONE_ITEM); ctx 824 src/filemanager/tree.c if (erase_dir (ctx, tree->selected_ptr->name) == FILE_CONT) ctx 826 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);