From 65ea0d06479274cfad21f35fe1f83f1926c9502e Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sun, 28 Dec 2014 17:27:33 +0000 Subject: [PATCH] Drop struct stat.st_aclcnt and stat.st_level support Remove the code that supports struct stat.st_aclcnt and stat.st_level decoding -- these fields are not defined in system headers. * configure.ac (AC_CHECK_MEMBERS): Remove struct stat.st_aclcnt and struct stat.st_level. * file.c (realprintstat, printstat64) [HAVE_STRUCT_STAT_ST_ACLCNT || HAVE_STRUCT_STAT_ST_LEVEL]: Remove. --- configure.ac | 2 -- file.c | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/configure.ac b/configure.ac index fbd8a83d..5b0a38ff 100644 --- a/configure.ac +++ b/configure.ac @@ -184,13 +184,11 @@ AC_HEADER_STDBOOL AC_HEADER_DIRENT AC_HEADER_STAT AC_CHECK_MEMBERS(m4_normalize([ - struct stat.st_aclcnt, struct stat.st_blksize, struct stat.st_blocks, struct stat.st_flags, struct stat.st_fstype, struct stat.st_gen, - struct stat.st_level, struct stat.st_rdev ])) AC_STAT64 diff --git a/file.c b/file.c index 69e72b35..abc5c144 100644 --- a/file.c +++ b/file.c @@ -420,12 +420,6 @@ realprintstat(struct tcb *tcp, struct stat *statbuf) tprints(", st_flags="); printflags(fileflags, statbuf->st_flags, "UF_???"); #endif -#if HAVE_STRUCT_STAT_ST_ACLCNT - tprintf(", st_aclcnt=%d", statbuf->st_aclcnt); -#endif -#if HAVE_STRUCT_STAT_ST_LEVEL - tprintf(", st_level=%ld", statbuf->st_level); -#endif #if HAVE_STRUCT_STAT_ST_FSTYPE tprintf(", st_fstype=%.*s", (int) sizeof statbuf->st_fstype, statbuf->st_fstype); @@ -625,12 +619,6 @@ printstat64(struct tcb *tcp, long addr) tprints(", st_flags="); printflags(fileflags, statbuf.st_flags, "UF_???"); #endif -#if HAVE_STRUCT_STAT_ST_ACLCNT - tprintf(", st_aclcnt=%d", statbuf.st_aclcnt); -#endif -#if HAVE_STRUCT_STAT_ST_LEVEL - tprintf(", st_level=%ld", statbuf.st_level); -#endif #if HAVE_STRUCT_STAT_ST_FSTYPE tprintf(", st_fstype=%.*s", (int) sizeof statbuf.st_fstype, statbuf.st_fstype); -- 2.40.0