basic: add generated statx_mask_one_to_name()/statx_attribute_to_name()
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
# SPDX-License-Identifier: LGPL-2.1-or-later
|
||||
|
||||
BEGIN{
|
||||
print "const char* statx_attribute_to_name(uint64_t attr) {"
|
||||
print " switch (attr) {"
|
||||
}
|
||||
{
|
||||
printf " case %s: return \"%s\";\n", $1, $1
|
||||
}
|
||||
END{
|
||||
print " default: return NULL;"
|
||||
print " }"
|
||||
print "}"
|
||||
}
|
||||
Reference in New Issue
Block a user