On Sat, 8 Apr 2017 15:21:47 +0900, arisawa <karis...@gmail.com> wrote:
> but how to? > > unix doesn’t have something like fdreaddir(int fd). > my guess: russ unwillingly used a low level function such as > int getdirentries(int fd, char *buf, int nbytes, long *basep). > > readdirall() might be OK in regular usage. I don't use OSX regularly, although I do maintain the syscall layer for Myrddin on it. Getdirentries64 exists, and rudimentary testing doesn't show any difficulties with using it. -- Ori Bernstein