]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
(VALID_SPARSE_MODE): Define.
authorJim Meyering <jim@meyering.net>
Wed, 21 Jan 1998 16:16:00 +0000 (16:16 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 21 Jan 1998 16:16:00 +0000 (16:16 +0000)
[struct cp_options] (backup_type): New member.

src/copy.h

index 78482d3c7875b6435a8e901b0f98158263750c87..9409e99be109b6e4924b14d3df8c72cefde8c3c5 100644 (file)
@@ -22,8 +22,15 @@ enum Sparse_type
   SPARSE_ALWAYS
 };
 
+# define VALID_SPARSE_MODE(Mode)       \
+  ((Mode) == SPARSE_NEVER              \
+   || (Mode) == SPARSE_AUTO            \
+   || (Mode) == SPARSE_ALWAYS)
+
 struct cp_options
 {
+  enum backup_type backup_type;
+
   /* If nonzero, copy all files except (directories and, if not dereferencing
      them, symbolic links,) as if they were regular files. */
   int copy_as_regular;