Question

I am currently writing a filesystem library and have come across readdir64() while coding the *nix side of the lib. The documentation for this function says that it takes a dirent64* and adds support for large file systems; does that mean it only works on x86-64 systems?

Was it helpful?

Solution

According to old linux discussions from the time of 32bit PCs (http://lists.gnu.org/archive/html/bug-glibc/2001-03/msg00047.html), readdir64 CAN be used on 32-bit systems.

Ulrich Drepper's (glibc lead contributor and maintainer) reply also says you SHOULD use readdir64. Post is from way back in 2001: http://lists.gnu.org/archive/html/bug-glibc/2001-03/msg00048.html

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top