ref: 87889383a11008a2e525f5abdfb3f9d367f66abd dir: /libnpe/dirfd.c/
#include <dirent.h> #include <errno.h> #include "_dirent.h" int dirfd(DIR *d) { return d->fd; }