in pathconf, -1, not 0, means unsupported.. syncio presumably works, too.
[musl] / src / dirent / dirfd.c
1 #include <dirent.h>
2 #include "__dirent.h"
3
4 int dirfd(DIR *d)
5 {
6         return d->fd;
7 }