SCCS-vsn: lib/libc/gen/fts.3 5.17
.\"
.\" %sccs.include.redist.man%
.\"
.\"
.\" %sccs.include.redist.man%
.\"
-.\" @(#)fts.3 5.16 (Berkeley) %G%
+.\" @(#)fts.3 5.17 (Berkeley) %G%
struct ftsent *fts_parent; /* parent directory */
struct ftsent *fts_link; /* next file structure */
struct ftsent *fts_cycle; /* cycle structure */
struct ftsent *fts_parent; /* parent directory */
struct ftsent *fts_link; /* next file structure */
struct ftsent *fts_cycle; /* cycle structure */
- struct stat fts_statb; /* stat(2) information */
+ struct stat *fts_statp; /* stat(2) information */
.Xr stat 2
information was available.
The contents of the
.Xr stat 2
information was available.
The contents of the
field are undefined.
This is an error return, and the
.Fa fts_errno
field are undefined.
This is an error return, and the
.Fa fts_errno
.Xr stat 2
information was requested.
The contents of the
.Xr stat 2
information was requested.
The contents of the
field are undefined.
.It Dv FTS_SL
A symbolic link.
.It Dv FTS_SLNONE
A symbolic link with a non-existent target.
The contents of the
field are undefined.
.It Dv FTS_SL
A symbolic link.
.It Dv FTS_SLNONE
A symbolic link with a non-existent target.
The contents of the
-.Fa fts_statb
-field contain the file characteristic information for the symbolic link
+.Fa fts_statp
+field reference the file characteristic information for the symbolic link
itself.
.El
.It Fa fts_accpath
itself.
.El
.It Fa fts_accpath
Otherwise, the contents of the
.Fa fts_cycle
field are undefined.
Otherwise, the contents of the
.Fa fts_cycle
field are undefined.
-.It Fa fts_statb
-.Xr Stat 2
+.It Fa fts_statp
+A pointer to
+.Xr stat 2
information for the file.
.El
.Pp
information for the file.
.El
.Pp
.It Dv FTS_NOSTAT
By default, returned
.Fa FTSENT
.It Dv FTS_NOSTAT
By default, returned
.Fa FTSENT
-structures contain file characteristic
-information (the
-.Fa statb
+structures reference file characteristic information (the
+.Fa statp
field) for each file visited.
This option relaxes that requirement as a performance optimization,
allowing the
field) for each file visited.
This option relaxes that requirement as a performance optimization,
allowing the
field to
.Dv FTS_NSOK
and leave the contents of the
field to
.Dv FTS_NSOK
and leave the contents of the
field undefined.
.It Dv FTS_PHYSICAL
This option causes the
field undefined.
.It Dv FTS_PHYSICAL
This option causes the
field may not either.
If the
.Fn compar
field may not either.
If the
.Fn compar
returns the file with the
.Fa fts_info
and
returns the file with the
.Fa fts_info
and
fields reinitialized to reflect the target of the symbolic link instead
of the symbolic link itself.
If the file is one of those most recently returned by
fields reinitialized to reflect the target of the symbolic link instead
of the symbolic link itself.
If the file is one of those most recently returned by
fields of the structure, when returned by
.Fn fts_read ,
will reflect the target of the symbolic link instead of the symbolic link
fields of the structure, when returned by
.Fn fts_read ,
will reflect the target of the symbolic link instead of the symbolic link