• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (C) 2017 The Android Open Source Project
2 // SPDX-License-Identifier: BSD-2-Clause
3 
4 #include <ftw.h>
5 
6 #include "header_checks.h"
7 
ftw_h()8 static void ftw_h() {
9   TYPE(struct FTW);
10   STRUCT_MEMBER(struct FTW, int, base);
11   STRUCT_MEMBER(struct FTW, int, level);
12 
13   MACRO(FTW_F);
14   MACRO(FTW_D);
15   MACRO(FTW_DNR);
16   MACRO(FTW_DP);
17   MACRO(FTW_NS);
18   MACRO(FTW_SL);
19   MACRO(FTW_SLN);
20 
21   MACRO(FTW_PHYS);
22   MACRO(FTW_MOUNT);
23   MACRO(FTW_DEPTH);
24   MACRO(FTW_CHDIR);
25 
26   FUNCTION(ftw, int (*f)(const char*, int (*)(const char*, const struct stat*, int), int));
27 
28   TYPE(struct stat);
29 
30   // POSIX: "The <ftw.h> header shall define the ... the symbolic names for
31   // st_mode and the file type test macros as described in <sys/stat.h>."
32 #include "sys_stat_h_mode_constants.h"
33 #include "sys_stat_h_file_type_test_macros.h"
34 }
35