mirror of
git://git.musl-libc.org/musl
synced 2025-01-10 00:29:41 +00:00
5bb4d71754
this layout is slightly less common than the old generic one, but only because x86_64 and x32 wrongly (according to comments in the kernel headers) copied the i386 padding. for future archs, and with 64-bit time_t on 32-bit archs, the new layout here will become the most common, and it makes sense to treat it as the generic.
15 lines
325 B
C
15 lines
325 B
C
struct semid_ds {
|
|
struct ipc_perm sem_perm;
|
|
time_t sem_otime;
|
|
time_t sem_ctime;
|
|
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
unsigned short sem_nsems;
|
|
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
|
#else
|
|
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
|
unsigned short sem_nsems;
|
|
#endif
|
|
long __unused3;
|
|
long __unused4;
|
|
};
|