summaryrefslogtreecommitdiff
path: root/src/dirent/closedir.c
blob: e794ae9ca44b4aa91e54ea5102d87649c80f75ea (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#include <dirent.h>
#include <unistd.h>
#include <stdlib.h>
#include "__dirent.h"

int closedir(DIR *dir)
{
	int ret = close(dir->fd);
	free(dir);
	return ret;
}