From 4520ff31e278df3cea2b0025b12a6843e30bb160 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Mon, 11 May 1998 04:04:16 +0000 Subject: [PATCH] Better support for mv: [struct cp_options] (move_mode): New member. --- src/copy.h | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/src/copy.h b/src/copy.h index 76f6c931a..b845313c9 100644 --- a/src/copy.h +++ b/src/copy.h @@ -56,6 +56,10 @@ struct cp_options with regular files. */ int interactive; + /* If nonzero, rather than copying, first attempt to use rename. + If that fails, then resort to copying. */ + int move_mode; + /* This process's effective user ID. */ uid_t myeuid; @@ -79,13 +83,6 @@ struct cp_options as themselves rather than copying their contents. */ int recursive; - /* Control creation of sparse files. */ - enum Sparse_type sparse_mode; - - /* If nonzero, create symbolic links instead of copying files. - Create destination directories as usual. */ - int symbolic_link; - /* If nonzero, set file mode to value of MODE. Otherwise, set it based on current umask modified by UMASK_KILL. */ int set_mode; @@ -94,6 +91,13 @@ struct cp_options if USE_MODE is nonzero. */ mode_t mode; + /* Control creation of sparse files. */ + enum Sparse_type sparse_mode; + + /* If nonzero, create symbolic links instead of copying files. + Create destination directories as usual. */ + int symbolic_link; + /* The bits to preserve in created files' modes. */ unsigned int umask_kill; @@ -112,6 +116,6 @@ struct cp_options int copy PARAMS ((const char *src_path, const char *dst_path, int nonexistent_dst, const struct cp_options *options, - int *copy_into_self)); + int *copy_into_self, int *rename_succeeded)); #endif -- 2.34.1