[illumos-Developer] nftw(3c) question

Gordon Ross gordon.w.ross at gmail.com
Thu Jan 13 15:30:52 PST 2011


Well, pretty much everything you find in public headers like
/usr/include/ftw.h is fair game, so I assume it was an oversight
that ftw(3c) does not document setting the .quit fieldd to some
combination of: FTW_SKD, FTW_FOLLOW, FTW_PRUNE.


On Thu, Jan 13, 2011 at 5:41 PM, Jason King <jason.brian.king at gmail.com> wrote:
> Having a need to use nftw(3c), I also needed a way to have it not
> descend certain directories.  Looking at the source, it appears if you
> set the quit field of the FTW struct passed into the callback to
> FTW_PRUNE, this accomplishes this.  For example:
[...]



More information about the Developer mailing list