musl/arch/x32/bits/sem.h
Rich Felker 1afe5f3e5b extricate bits/sem.h from x32 time_t hack
various padding fields in the generic bits/sem.h were defined in terms
of time_t as a cheap hack standing in for "kernel long", to allow x32
to use the generic version of the file. this was a really bad idea, as
it ended up getting copied into lots of arch-specific versions of the
bits file, and is a blocker to changing time_t to 64-bit on 32-bit
archs.

this commit adds an x32-specific version of the header, and changes
padding type back from time_t to long (currently the same type on all
archs but x32) in the generic header and all the others the hack got
copied into.
2019-07-29 18:03:41 -04:00

11 lines
257 B
C

struct semid_ds {
struct ipc_perm sem_perm;
time_t sem_otime;
long long __unused1;
time_t sem_ctime;
long long __unused2;
unsigned short sem_nsems;
char __sem_nsems_pad[sizeof(long long)-sizeof(short)];
long long __unused3;
long long __unused4;
};