26 May
2020
26 May
'20
12:22 a.m.
May 25, 2020 10:56 PM, "Daniel Lehman" <dlehman25(a)gmail.com> wrote:
v2: use getdents instead of open/closedir
Or, you could dup(2) the fd before passing it to fdopendir(3); then it would work everywhere, not just Linux, and the original fd wouldn't be closed. Though it might be a bit slower than using the raw syscall underlying readdir(3). Chip