I would like to contribute an fts module for inclusion into gnulib. Systems that are not based on glibc may not have fts_open, fts_close, fts_read, fts_children or fts_set. I have extracted the fts.c and fts.h from glibc-2.3.5/io and modified them (providing a few #defines and removing __ from calls to open, close, fchdir, and set_errno). I have written an fts.m4 which includes a code block to verify the value for USHRT_MAX, but this may be unnecessary or there may be a better way. I have attached a gzipped tar file with lib/fts.c lib/fts.h, m4/fts.m4 and modules/fts.
-Henry Culver -Culver Consulting
fts.tar.gz
Description: application/compressed-tar
signature.asc
Description: This is a digitally signed message part
_______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib