diff options
Diffstat (limited to 'src/dirent/closedir.c')
-rw-r--r-- | src/dirent/closedir.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/dirent/closedir.c b/src/dirent/closedir.c new file mode 100644 index 00000000..81e9591c --- /dev/null +++ b/src/dirent/closedir.c @@ -0,0 +1,11 @@ +#include <dirent.h> +#include <unistd.h> +#include "__dirent.h" +#include "libc.h" + +int closedir(DIR *dir) +{ + int ret = close(dir->fd); + free(dir); + return ret; +} |