aboutsummaryrefslogtreecommitdiff
path: root/include/fstree.h
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-20 14:08:34 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2023-04-20 14:08:34 +0200
commitc5f0334e87deea2b54f33f62ee879455a814633c (patch)
tree8d384482c8cd29d3ebe5b280b7d853968aff816c /include/fstree.h
parentd7be81367997536dceb08a7be0014136a1f89df2 (diff)
libfstree: Remove special modes for hard links
Instead of adding special sentinel modes, simply treat hard links as special case of symlinks, setting a flag to indicate that it is a hard link and another flag to indicate that it has been resolved. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'include/fstree.h')
-rw-r--r--include/fstree.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/fstree.h b/include/fstree.h
index 72cbc29..d08ccae 100644
--- a/include/fstree.h
+++ b/include/fstree.h
@@ -18,9 +18,6 @@
#include "io/istream.h"
#include "compat.h"
-#define FSTREE_MODE_HARD_LINK (0)
-#define FSTREE_MODE_HARD_LINK_RESOLVED (1)
-
typedef struct fstree_defaults_t fstree_defaults_t;
typedef struct tree_node_t tree_node_t;
typedef struct fstree_t fstree_t;
@@ -28,6 +25,8 @@ typedef struct fstree_t fstree_t;
enum {
FLAG_DIR_CREATED_IMPLICITLY = 0x01,
FLAG_FILE_ALREADY_MATCHED = 0x02,
+ FLAG_LINK_IS_HARD = 0x04,
+ FLAG_LINK_RESOVED = 0x08,
};
/* A node in a file system tree */