Lines Matching refs:src_stat

347 check_hardlinks (const vfs_path_t * src_vpath, const struct stat *src_stat,  in check_hardlinks()  argument
351 ino_t ino = src_stat->st_ino; in check_hardlinks()
352 dev_t dev = src_stat->st_dev; in check_hardlinks()
354 if (src_stat->st_nlink < 2) in check_hardlinks()
359 lnk = (struct link *) is_in_linklist (linklist, src_vpath, src_stat); in check_hardlinks()
1028 query_replace (file_op_context_t * ctx, const char *src, struct stat *src_stat, const char *dst, in query_replace() argument
1043 return parent_call (pntr.p, ctx, 4, strlen (src), src, sizeof (struct stat), src_stat, in query_replace()
1046 return file_progress_real_query_replace (ctx, Foreground, src, src_stat, dst, dst_stat); in query_replace()
1069 query_replace (file_op_context_t * ctx, const char *src, struct stat *src_stat, const char *dst, in query_replace() argument
1072 return file_progress_real_query_replace (ctx, Foreground, src, src_stat, dst, dst_stat); in query_replace()
1188 struct stat src_stat, dst_stat; in move_file_file() local
1209 while (mc_lstat (src_vpath, &src_stat) != 0) in move_file_file()
1227 if (check_same_file (s, &src_stat, d, &dst_stat, &return_status)) in move_file_file()
1240 return_status = query_replace (ctx, s, &src_stat, d, &dst_stat); in move_file_file()
1249 if (S_ISLNK (src_stat.st_mode) && ctx->stable_symlinks) in move_file_file()
1258 get_times (&src_stat, &times); in move_file_file()
1269 return_status = progress_update_one (tctx, ctx, src_stat.st_size); in move_file_file()
1304 panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE, in move_file_file()
1338 return_status = progress_update_one (tctx, ctx, src_stat.st_size); in move_file_file()
1559 struct stat src_stat, dst_stat; in do_move_dir_dir() local
1580 mc_stat (src_vpath, &src_stat); in do_move_dir_dir()
1584 if (dstat_ok && check_same_file (s, &src_stat, d, &dst_stat, &return_status)) in do_move_dir_dir()
1613 panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE, in do_move_dir_dir()
1668 panel_operate_init_totals (panel, src_vpath, &src_stat, ctx, TRUE, in do_move_dir_dir()
1742 check_single_entry (const WPanel * panel, gboolean force_single, struct stat *src_stat) in check_single_entry() argument
1763 ok = mc_lstat (source_vpath, src_stat) == 0; in check_single_entry()
1796 const struct stat *src_stat) in panel_operate_generate_prompt() argument
1841 cp = (src_stat != NULL ? one_format : many_format); in panel_operate_generate_prompt()
1853 if (src_stat != NULL) in panel_operate_generate_prompt()
1854 cp = S_ISDIR (src_stat->st_mode) ? prompt_parts[2] : prompt_parts[0]; in panel_operate_generate_prompt()
1877 const char *source, struct stat *src_stat, file_op_context_t * ctx, in do_confirm_copy_move() argument
1914 src_stat = NULL; in do_confirm_copy_move()
1917 format = panel_operate_generate_prompt (panel, operation, src_stat); in do_confirm_copy_move()
1932 do_confirm_erase (const WPanel * panel, const char *source, struct stat *src_stat) in do_confirm_erase() argument
1939 src_stat = NULL; in do_confirm_erase()
1942 format = panel_operate_generate_prompt (panel, OP_DELETE, src_stat); in do_confirm_erase()
1968 file_op_context_t * ctx, const char *src, struct stat *src_stat, in operate_single_file() argument
1980 is_file = !S_ISDIR (src_stat->st_mode); in operate_single_file()
1986 is_link = file_is_symlink_to_dir (src_vpath, src_stat, NULL); in operate_single_file()
1993 value = panel_operate_init_totals (panel, src_vpath, src_stat, ctx, !is_file, dialog_type); in operate_single_file()
2017 ctx->stat_func (src_vpath, src_stat); in operate_single_file()
2020 panel_operate_init_totals (panel, src_vpath, src_stat, ctx, !is_file, in operate_single_file()
2024 is_file = !S_ISDIR (src_stat->st_mode); in operate_single_file()
2030 is_link = file_is_symlink_to_dir (src_vpath, src_stat, NULL); in operate_single_file()
2071 file_op_context_t * ctx, const char *src, struct stat *src_stat, const char *dest) in operate_one_file() argument
2082 is_file = !S_ISDIR (src_stat->st_mode); in operate_one_file()
2106 ctx->stat_func (src_vpath, src_stat); in operate_one_file()
2107 is_file = !S_ISDIR (src_stat->st_mode); in operate_one_file()
2210 struct stat src_stat, dst_stat; in copy_file_file() local
2261 while ((*ctx->stat_func) (src_vpath, &src_stat) != 0) in copy_file_file()
2279 if (check_same_file (src_path, &src_stat, dst_path, &dst_stat, &return_status)) in copy_file_file()
2286 return_status = query_replace (ctx, src_path, &src_stat, dst_path, &dst_stat); in copy_file_file()
2292 get_times (&src_stat, &times); in copy_file_file()
2299 switch (check_hardlinks (src_vpath, &src_stat, dst_vpath, &ctx->skip_all)) in copy_file_file()
2315 if (S_ISLNK (src_stat.st_mode)) in copy_file_file()
2323 if (S_ISCHR (src_stat.st_mode) || S_ISBLK (src_stat.st_mode) || S_ISFIFO (src_stat.st_mode) in copy_file_file()
2324 || S_ISNAM (src_stat.st_mode) || S_ISSOCK (src_stat.st_mode)) in copy_file_file()
2329 rdev = src_stat.st_rdev; in copy_file_file()
2332 while (mc_mknod (dst_vpath, src_stat.st_mode & ctx->umask_kill, rdev) < 0 in copy_file_file()
2346 && mc_chown (dst_vpath, src_stat.st_uid, src_stat.st_gid) != 0 && !ctx->skip_all) in copy_file_file()
2360 while (ctx->preserve && mc_chmod (dst_vpath, src_stat.st_mode & ctx->umask_kill) != 0 in copy_file_file()
2403 while (mc_fstat (src_desc, &src_stat) != 0) in copy_file_file()
2419 src_mode = src_stat.st_mode; in copy_file_file()
2420 src_uid = src_stat.st_uid; in copy_file_file()
2421 src_gid = src_stat.st_gid; in copy_file_file()
2422 file_size = src_stat.st_size; in copy_file_file()
2755 struct stat dst_stat, src_stat; in copy_dir_dir() local
2768 if ((*ctx->stat_func) (src_vpath, &src_stat) != 0) in copy_dir_dir()
2783 if (is_in_linklist (dest_dirs, src_vpath, &src_stat) != NULL) in copy_dir_dir()
2797 switch (check_hardlinks (src_vpath, &src_stat, dst_vpath, &ctx->skip_all)) in copy_dir_dir()
2812 if (!S_ISDIR (src_stat.st_mode)) in copy_dir_dir()
2827 if (is_in_linklist (parent_dirs, src_vpath, &src_stat) != NULL) in copy_dir_dir()
2837 lp->ino = src_stat.st_ino; in copy_dir_dir()
2838 lp->dev = src_stat.st_dev; in copy_dir_dir()
2895 while (my_mkdir (dst_vpath, (src_stat.st_mode & ctx->umask_kill) | S_IRWXU) != 0) in copy_dir_dir()
2920 while (mc_chown (dst_vpath, src_stat.st_uid, src_stat.st_gid) != 0) in copy_dir_dir()
3005 mc_chmod (dst_vpath, src_stat.st_mode & ctx->umask_kill); in copy_dir_dir()
3006 get_times (&src_stat, &times); in copy_dir_dir()
3011 src_stat.st_mode = umask (-1); in copy_dir_dir()
3012 umask (src_stat.st_mode); in copy_dir_dir()
3013 src_stat.st_mode = 0100777 & ~src_stat.st_mode; in copy_dir_dir()
3014 mc_chmod (dst_vpath, src_stat.st_mode & ctx->umask_kill); in copy_dir_dir()
3206 struct stat src_stat; in panel_operate() local
3230 source = check_single_entry (panel, force_single, &src_stat); in panel_operate()
3242 do_confirm_copy_move (panel, operation, force_single, source, &src_stat, ctx, &do_bg); in panel_operate()
3252 else if (confirm_delete && !do_confirm_erase (panel, source, &src_stat)) in panel_operate()
3334 operate_single_file (panel, operation, tctx, ctx, source, &src_stat, dest, dialog_type); in panel_operate()
3377 src_stat = panel->dir.list[i].st; in panel_operate()
3379 value = operate_one_file (panel, operation, tctx, ctx, source2, &src_stat, dest); in panel_operate()