FTS_LOGICAL sorts before FTS_PHYSICAL, FTS_COMFOLLOW modifies FTS_PHYSICAL, the remaining flags follow in sorted order Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@xxxxxxxxxxxxxxxxxx> --- man3/fts.3 | 42 +++++++++++++++++++++--------------------- 1 file changed, 21 insertions(+), 21 deletions(-) diff --git a/man3/fts.3 b/man3/fts.3 index 7afaa0da5..b49d85adc 100644 --- a/man3/fts.3 +++ b/man3/fts.3 @@ -376,12 +376,6 @@ The options are selected by ORing the following values: .\" .Bl -tag -width "FTS_PHYSICAL" .TP -.B FTS_COMFOLLOW -This option causes any symbolic link specified as a root path to be -followed immediately, as if via -.BR FTS_LOGICAL , -regardless of the primary mode. -.TP .B FTS_LOGICAL This option causes the fts routines to return @@ -399,6 +393,27 @@ field is obtained via with a fallback to .BR lstat (2). .TP +.B FTS_PHYSICAL +This option causes the +fts routines to return +.I FTSENT +structures for symbolic links themselves instead +of the target files they point to. +If this option is set, +.I FTSENT +structures for all symbolic links in the +hierarchy are returned to the application: +the +.I fts_statp +field is obtained via +.BR lstat (2). +.TP +.B FTS_COMFOLLOW +This option causes any symbolic link specified as a root path to be +followed immediately, as if via +.BR FTS_LOGICAL , +regardless of the primary mode. +.TP .B FTS_NOCHDIR As a performance optimization, the fts functions change directories as they walk the file hierarchy. @@ -430,21 +445,6 @@ and leave the contents of the .I statp field undefined. .TP -.B FTS_PHYSICAL -This option causes the -fts routines to return -.I FTSENT -structures for symbolic links themselves instead -of the target files they point to. -If this option is set, -.I FTSENT -structures for all symbolic links in the -hierarchy are returned to the application: -the -.I fts_statp -field is obtained via -.BR lstat (2). -.TP .B FTS_SEEDOT By default, unless they are specified as path arguments to .BR fts_open (), -- 2.30.2
Attachment:
signature.asc
Description: PGP signature