Cleanup struct stat.st_flags decoding
There are no symbolic constants defined for struct stat.st_flags,
so decode this rare field as unsigned int.
* xlat/fileflags.in: Remove.
* file.c (realprintstat, printstat64) [HAVE_STRUCT_STAT_ST_FLAGS]:
Decode struct stat.st_flags as unsigned int.
diff --git a/file.c b/file.c
index abc5c14..ae1fdf1 100644
--- a/file.c
+++ b/file.c
@@ -372,8 +372,6 @@
}
#endif /* POWERPC64 */
-#include "xlat/fileflags.h"
-
static void
realprintstat(struct tcb *tcp, struct stat *statbuf)
{
@@ -417,8 +415,7 @@
tprintf("st_mtime=%s, ", sprinttime(statbuf->st_mtime));
tprintf("st_ctime=%s", sprinttime(statbuf->st_ctime));
#if HAVE_STRUCT_STAT_ST_FLAGS
- tprints(", st_flags=");
- printflags(fileflags, statbuf->st_flags, "UF_???");
+ tprintf(", st_flags=%u", statbuf->st_flags);
#endif
#if HAVE_STRUCT_STAT_ST_FSTYPE
tprintf(", st_fstype=%.*s",
@@ -616,8 +613,7 @@
tprintf("st_mtime=%s, ", sprinttime(statbuf.st_mtime));
tprintf("st_ctime=%s", sprinttime(statbuf.st_ctime));
#if HAVE_STRUCT_STAT_ST_FLAGS
- tprints(", st_flags=");
- printflags(fileflags, statbuf.st_flags, "UF_???");
+ tprintf(", st_flags=%u", statbuf->st_flags);
#endif
#if HAVE_STRUCT_STAT_ST_FSTYPE
tprintf(", st_fstype=%.*s",