summaryrefslogtreecommitdiffstats
path: root/lib/libc/gen
diff options
context:
space:
mode:
authorru <ru@FreeBSD.org>2001-09-20 12:32:45 +0000
committerru <ru@FreeBSD.org>2001-09-20 12:32:45 +0000
commit88406011aade95eec8726111b722674dd2f4e944 (patch)
treecb07d26afacae70bfeba730cabe5163cec76ece5 /lib/libc/gen
parent68d1e526050b19fca5e7f54ddd8617180d8c4526 (diff)
downloadFreeBSD-src-88406011aade95eec8726111b722674dd2f4e944.zip
FreeBSD-src-88406011aade95eec8726111b722674dd2f4e944.tar.gz
Document the FTS_ROOTPARENTLEVEL and FTS_ROOTLEVEL constants.
Diffstat (limited to 'lib/libc/gen')
-rw-r--r--lib/libc/gen/fts.314
1 files changed, 9 insertions, 5 deletions
diff --git a/lib/libc/gen/fts.3 b/lib/libc/gen/fts.3
index b453ef0..1e40a81 100644
--- a/lib/libc/gen/fts.3
+++ b/lib/libc/gen/fts.3
@@ -41,9 +41,9 @@
.Sh LIBRARY
.Lb libc
.Sh SYNOPSIS
-.Fd #include <sys/types.h>
-.Fd #include <sys/stat.h>
-.Fd #include <fts.h>
+.In sys/types.h
+.In sys/stat.h
+.In fts.h
.Ft FTS *
.Fn fts_open "char * const *path_argv" "int options" "int (*compar)(const FTSENT **, const FTSENT **)"
.Ft FTSENT *
@@ -233,10 +233,14 @@ was found.
The
.Fa FTSENT
structure representing the parent of the starting point (or root)
-of the traversal is numbered \-1, and the
+of the traversal is numbered
+.Dv FTS_ROOTPARENTLEVEL
+(\-1), and the
.Fa FTSENT
structure for the root
-itself is numbered 0.
+itself is numbered
+.Dv FTS_ROOTLEVEL
+(0).
.It Fa fts_errno
Upon return of a
.Fa FTSENT
OpenPOWER on IntegriCloud