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