diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-27 15:00:22 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-27 15:00:22 +0000 |
commit | 96332f0a7e1c70ef0a4bfe6497d3ebf225118aac (patch) | |
tree | d2bf5e48c0ac29e7e79d4b2ea588ed6c5573b4b1 /lib | |
parent | 336827087f451aedf369330f49f7e17767092cdf (diff) | |
download | coreutils-96332f0a7e1c70ef0a4bfe6497d3ebf225118aac.tar.xz |
(FTW_DCH, FTW_DCHP): Better comments.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ftw_.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lib/ftw_.h b/lib/ftw_.h index 9cabf859d..cdb3ed6bf 100644 --- a/lib/ftw_.h +++ b/lib/ftw_.h @@ -60,9 +60,17 @@ enum # define FTW_DNR FTW_DNR FTW_NS, /* Unstatable file. */ # define FTW_NS FTW_NS - FTW_DCH, /* Can't chdir to named directory. */ + + /* Can't chdir to named directory. This can happen only when using + FTW_CHDIR. Note that although we can't chdir into that directory, + we were able to stat it, so SB (2nd argument to callback) is valid. */ + FTW_DCH, # define FTW_DCH FTW_DCH - FTW_DCHP, /* Can't chdir to parent of named directory. */ + + /* Can't chdir to parent of named directory. This can happen only when + using FTW_CHDIR. Unlike for FTW_DCH, in this case, SB is not valid. + In fact, it is NULL. */ + FTW_DCHP, # define FTW_DCHP FTW_DCHP # if defined __USE_BSD || defined __USE_XOPEN_EXTENDED |