| ▲ | stabbles 3 hours ago | |
What comes closest is scandir [1], which gives you an iterator of direntries, and can be used to avoid lstat syscalls for each file. Otherwise you can open a dir and pass its fd to openat together with a relative path to a file, to reduce the kernel overhead of resolving absolute paths for each file. | ||
| ▲ | zokier 30 minutes ago | parent [-] | |
in what way does scandir avoid stat syscalls? | ||