.\" reorganized and rewrote much of the page
.\" 2006-05-24, Michael Kerrisk <mtk.manpages@gmail.com>
.\" Added an example program.
-.TH FTW 3 2008-08-06 "Linux" "Linux Programmer's Manual"
+.TH FTW 3 2010-06-10 "Linux" "Linux Programmer's Manual"
.SH NAME
ftw, nftw \- file tree walk
.SH SYNOPSIS
and
.IR typeflag .
.I fpath
-is the pathname of the entry relative to
-.IR dirpath .
+is the pathname of the entry,
+and is expressed either as a pathname relative to the calling process's
+current working directory at the time of the call to
+.BR ftw (),
+if
+.IR dirpath
+was expressed as a relative pathname,
+or as an absolute pathname, if
+.I dirpath
+was expressed as an absolute pathname.
.I sb
is a pointer to the
.I stat
.BR ftw ()
as obsolete.
.SH NOTES
+POSIX.1-2001 note that the results are unspecified if
+.I fn
+does not preserve the current working directory.
+.PP
The function
.BR nftw ()
and the use of \fBFTW_SL\fP with