/usr/include/x86_64-linux-musl/sys/acct.h is in musl-dev 0.9.15-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 | #ifndef _SYS_ACCT_H
#define _SYS_ACCT_H
#ifdef __cplusplus
extern "C" {
#endif
#include <features.h>
#include <endian.h>
#include <time.h>
#include <stdint.h>
#define ACCT_COMM 16
typedef uint16_t comp_t;
struct acct
{
char ac_flag;
uint16_t ac_uid;
uint16_t ac_gid;
uint16_t ac_tty;
uint32_t ac_btime;
comp_t ac_utime;
comp_t ac_stime;
comp_t ac_etime;
comp_t ac_mem;
comp_t ac_io;
comp_t ac_rw;
comp_t ac_minflt;
comp_t ac_majflt;
comp_t ac_swaps;
uint32_t ac_exitcode;
char ac_comm[ACCT_COMM+1];
char ac_pad[10];
};
struct acct_v3
{
char ac_flag;
char ac_version;
uint16_t ac_tty;
uint32_t ac_exitcode;
uint32_t ac_uid;
uint32_t ac_gid;
uint32_t ac_pid;
uint32_t ac_ppid;
uint32_t ac_btime;
float ac_etime;
comp_t ac_utime;
comp_t ac_stime;
comp_t ac_mem;
comp_t ac_io;
comp_t ac_rw;
comp_t ac_minflt;
comp_t ac_majflt;
comp_t ac_swaps;
char ac_comm[ACCT_COMM];
};
#define AFORK 1
#define ASU 2
#define ACORE 8
#define AXSIG 16
#define ACCT_BYTEORDER (128*(__BYTE_ORDER==__BIG_ENDIAN))
#define AHZ 100
int acct(const char *);
#ifdef __cplusplus
}
#endif
#endif
|