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.
This commit is contained in:
parent
65ea0d0647
commit
2928afe3b4
8
file.c
8
file.c
@ -372,8 +372,6 @@ printstat_powerpc32(struct tcb *tcp, long addr)
|
||||
}
|
||||
#endif /* POWERPC64 */
|
||||
|
||||
#include "xlat/fileflags.h"
|
||||
|
||||
static void
|
||||
realprintstat(struct tcb *tcp, struct stat *statbuf)
|
||||
{
|
||||
@ -417,8 +415,7 @@ realprintstat(struct tcb *tcp, struct stat *statbuf)
|
||||
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 @@ printstat64(struct tcb *tcp, long addr)
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user