aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2025-04-10 11:34:41 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2025-04-10 11:35:46 +0000
commit80e06d621ac545ac0a69d4e95e7392be38013a78 (patch)
tree07efb58671f9fbfb50f3ef0ac9c8d7e4368b265a /include
parent06b69937a87e0e2472f2c9241da53dd7cd45bcad (diff)
Diffstat (limited to 'include')
-rw-r--r--include/fts.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/include/fts.h b/include/fts.h
index dae1df80ddd7..1e35727ad3e1 100644
--- a/include/fts.h
+++ b/include/fts.h
@@ -46,18 +46,22 @@ typedef struct {
int (*fts_compar) /* compare function */
(const struct _ftsent * const *, const struct _ftsent * const *);
-#define FTS_COMFOLLOW 0x001 /* follow command line symlinks */
-#define FTS_LOGICAL 0x002 /* logical walk */
-#define FTS_NOCHDIR 0x004 /* don't change directories */
-#define FTS_NOSTAT 0x008 /* don't get stat info */
-#define FTS_PHYSICAL 0x010 /* physical walk */
-#define FTS_SEEDOT 0x020 /* return dot and dot-dot */
-#define FTS_XDEV 0x040 /* don't cross devices */
-#define FTS_WHITEOUT 0x080 /* return whiteout information */
-#define FTS_OPTIONMASK 0x0ff /* valid user option mask */
+/* valid for fts_open() */
+#define FTS_COMFOLLOW 0x000001 /* follow command line symlinks */
+#define FTS_LOGICAL 0x000002 /* logical walk */
+#define FTS_NOCHDIR 0x000004 /* don't change directories */
+#define FTS_NOSTAT 0x000008 /* don't get stat info */
+#define FTS_PHYSICAL 0x000010 /* physical walk */
+#define FTS_SEEDOT 0x000020 /* return dot and dot-dot */
+#define FTS_XDEV 0x000040 /* don't cross devices */
+#define FTS_WHITEOUT 0x000080 /* return whiteout information */
+#define FTS_OPTIONMASK 0x0000ff /* valid user option mask */
-#define FTS_NAMEONLY 0x100 /* (private) child names only */
-#define FTS_STOP 0x200 /* (private) unrecoverable error */
+/* valid only for fts_children() */
+#define FTS_NAMEONLY 0x000100 /* child names only */
+
+/* internal use only */
+#define FTS_STOP 0x010000 /* unrecoverable error */
int fts_options; /* fts_open options, global flags */
void *fts_clientptr; /* thunk for sort function */
} FTS;