xref: /third_party/musl/porting/linux/user/src/dirent/closedir.c
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/musl/porting/linux/user/src/dirent/
1570af302Sopenharmony_ci#include <dirent.h>
2570af302Sopenharmony_ci#include <unistd.h>
3570af302Sopenharmony_ci#include <stdlib.h>
4570af302Sopenharmony_ci#include <stdio.h>
5570af302Sopenharmony_ci#include "__dirent.h"
6570af302Sopenharmony_ci
7570af302Sopenharmony_ciextern uint64_t __get_dir_tag(DIR* dir);
8570af302Sopenharmony_ci
9570af302Sopenharmony_ciint closedir(DIR *dir)
10570af302Sopenharmony_ci{
11570af302Sopenharmony_ci	int ret = fdsan_close_with_tag(dir->fd, __get_dir_tag(dir));
12570af302Sopenharmony_ci	free(dir);
13570af302Sopenharmony_ci	return ret;
14570af302Sopenharmony_ci}
15

Indexes created Thu Nov 07 10:32:03 CST 2024