summaryrefslogtreecommitdiff
path: root/src/copy.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1998-05-11 04:04:16 +0000
committerJim Meyering <jim@meyering.net>1998-05-11 04:04:16 +0000
commit4520ff31e278df3cea2b0025b12a6843e30bb160 (patch)
tree11a61cea96de2243d88bb5a013f57b46818899b7 /src/copy.h
parent92ce6341775caae613d5bf04868118d94d5727cd (diff)
downloadcoreutils-4520ff31e278df3cea2b0025b12a6843e30bb160.tar.xz
Better support for mv:
[struct cp_options] (move_mode): New member.
Diffstat (limited to 'src/copy.h')
-rw-r--r--src/copy.h20
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