OSDN Git Service

(split) LDP man-pages の original/ を v3.25 に更新。
[linuxjm/LDP_man-pages.git] / original / man3 / ftw.3
index 5df6a1b..7ab9c18 100644 (file)
@@ -31,7 +31,7 @@
 .\"    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
@@ -81,8 +81,16 @@ calls
 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
@@ -310,6 +318,10 @@ POSIX.1-2008 marks
 .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