>> Here some text from section 5.2.1 of the kpathsea link. Think of
>> replacing `texmf.cnf' with grops's `download' file (together with
>> more fiddling, but I think you get the idea):
>
> Ah, OK. So
> http://git.savannah.gnu.org/cgit/groff.git/tree/src/libs/libgroff/searchpath.cpp#n96
> currently does the work of searching `path' for `name' but stops at
> the first successful fopen(3).
Yes. For configuration files this is not the best behaviour IMHO.
> BTW, I note POSIX defines ftw(3) and nftw(3).
Hehe, the groff code is 10 years older than POSIX.2001.
Werner