summaryrefslogtreecommitdiff
path: root/src/dirent/closedir.c
blob: 81e9591c60476f886aca588895c747bf0da68261 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
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;
}