• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include <dirent.h>
2 #include <unistd.h>
3 #include <stdlib.h>
4 #include <stdio.h>
5 #include "__dirent.h"
6 
7 extern uint64_t __get_dir_tag(DIR* dir);
8 
closedir(DIR * dir)9 int closedir(DIR *dir)
10 {
11 #ifdef __LITEOS__
12 	int ret = close(dir->fd);
13 #else
14 	int ret = fdsan_close_with_tag(dir->fd, __get_dir_tag(dir));
15 #endif
16 	free(dir);
17 	return ret;
18 }
19