ref: dc2a27ba8cbac9c58ebd316f91db66dabe5baed5 dir: /libnpe/closedir.c/
#include <dirent.h> #include "_dirent.h" int closedir(DIR *d) { free(d->d); close(d->fd); free(d); return 0; }