typedef struct acct_v3 struct_acct;
#define HAVE_AC_EXITCODE
#define HAVE_AC_FLT
+#define FIELD_AC_FLAG(as) ((as)->ac_flag)
#elif defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#include <sys/acct.h>
typedef struct acctv2 struct_acct;
+#define FIELD_AC_FLAG(as) ((as)->ac_flagx & ~ANVER)
#else
}
}
- r= as->ac_flag;
+ r= FIELD_AC_FLAG(as);
for (i=1, fp= "FS4DX"; *fp; fp++, i<<=1) {
if (r&i) {
putchar(*fp);
platforms.
* Tolerate lack of ac_exitcode.
* Tolerate lack of ac_minflt and ac_majflt (and use %lu as is right).
+ * Tolerate variation in ac_flag field name, and, to an extent, value.
--