blob: dc149cc6e9d81bfd6bccca2381c70b3348cd5b3d [file] [log] [blame]
Elliott Hughes13da6002025-02-03 10:42:13 -08001// Copyright (C) 2017 The Android Open Source Project
2// SPDX-License-Identifier: BSD-2-Clause
Elliott Hughes21b56eb2017-10-20 17:57:17 -07003
4#include <ftw.h>
5
6#include "header_checks.h"
7
8static 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}