diff options
author | Jim Meyering <jim@meyering.net> | 1998-05-11 04:04:16 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-05-11 04:04:16 +0000 |
commit | 4520ff31e278df3cea2b0025b12a6843e30bb160 (patch) | |
tree | 11a61cea96de2243d88bb5a013f57b46818899b7 /src | |
parent | 92ce6341775caae613d5bf04868118d94d5727cd (diff) | |
download | coreutils-4520ff31e278df3cea2b0025b12a6843e30bb160.tar.xz |
Better support for mv:
[struct cp_options] (move_mode): New member.
Diffstat (limited to 'src')
-rw-r--r-- | src/copy.h | 20 |
1 files 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 |