basic: add generated statx_mask_one_to_name()/statx_attribute_to_name()

This commit is contained in:
Mike Yuan
2026-02-05 14:14:39 +01:00
parent 539e2b75aa
commit 6b039272e9
6 changed files with 83 additions and 23 deletions
+10
View File
@@ -0,0 +1,10 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -eu
set -o pipefail
CC=${1:?}
shift
$CC -E -dM -include linux/stat.h "$@" - </dev/null | \
awk '/^#define[ \t]+STATX_ATTR_[A-Z][A-Z_]*[ \t]+/ { print $2; }'