summaryrefslogtreecommitdiff
path: root/src/copy.h
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-08-20 20:35:25 +0000
committerJim Meyering <jim@meyering.net>2000-08-20 20:35:25 +0000
commit33db1748a0ebfa5a44289f00c5c3c98aaf34f9d0 (patch)
treed2901b29ef5a54e9fe661b67f0114c03b979297d /src/copy.h
parent9c55b67dd44699bb6ebb49ef22d94df65224a718 (diff)
downloadcoreutils-33db1748a0ebfa5a44289f00c5c3c98aaf34f9d0.tar.xz
(enum Dereference_symlink): Define.
(struct cp_options) [dereference]: Change type to Dereference_symlink.
Diffstat (limited to 'src/copy.h')
-rw-r--r--src/copy.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/copy.h b/src/copy.h
index 36833460e..81d916f89 100644
--- a/src/copy.h
+++ b/src/copy.h
@@ -22,6 +22,14 @@ enum Sparse_type
SPARSE_ALWAYS
};
+enum Dereference_symlink
+{
+ DEREF_UNDEFINED = 1,
+ DEREF_ALWAYS,
+ DEREF_NEVER,
+ DEREF_COMMAND_LINE_ARGUMENTS
+};
+
# define VALID_SPARSE_MODE(Mode) \
((Mode) == SPARSE_NEVER \
|| (Mode) == SPARSE_AUTO \
@@ -36,7 +44,7 @@ struct cp_options
int copy_as_regular;
/* If nonzero, dereference symbolic links (copy the files they point to). */
- int dereference;
+ enum Dereference_symlink dereference;
/* If nonzero, remove existing destination nondirectories. */
int force;