nftw() crashes on Redhat 7.3 replacement ideas?!?

I am using nftw() to traverse the file system on most linux boxes. I was running into a problem on the HFS+ file system, until I used spotlight as my interface.

Now, I am running into the problem that on the older versions of UNIX, the <ftw.h> lib does not exist.

Has anyone run into this problem before, and if so what was your solution.

P.S. I tried <dirent.h> but I get errors on the files I do not have permissions to view, during a recursive search.

gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)

Thanks ahead of time,

OriginalKilroy
Last edited on
Topic archived. No new replies allowed.