Elliott Hughes | 13da600 | 2025-02-03 10:42:13 -0800 | [diff] [blame] | 1 | // Copyright (C) 2017 The Android Open Source Project |
| 2 | // SPDX-License-Identifier: BSD-2-Clause |
Elliott Hughes | 21b56eb | 2017-10-20 17:57:17 -0700 | [diff] [blame] | 3 | |
| 4 | #include <ftw.h> |
| 5 | |
| 6 | #include "header_checks.h" |
| 7 | |
| 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 | } |