mirror of
https://git.musl-libc.org/git/musl
synced 2025-04-04 00:42:55 +03:00
collapse out byte order conditions in bits/sem.h for fixed-endian archs
having preprocessor conditionals on byte order in the bits headers for fixed-endian archs is confusing at best. remove them.
This commit is contained in:
parent
6f2e5607d2
commit
28637bc407
@ -4,13 +4,8 @@ struct semid_ds {
|
|||||||
long __unused1;
|
long __unused1;
|
||||||
time_t sem_ctime;
|
time_t sem_ctime;
|
||||||
long __unused2;
|
long __unused2;
|
||||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
||||||
unsigned short sem_nsems;
|
unsigned short sem_nsems;
|
||||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
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 __unused3;
|
||||||
long __unused4;
|
long __unused4;
|
||||||
};
|
};
|
||||||
|
@ -4,13 +4,8 @@ struct semid_ds {
|
|||||||
long __unused1;
|
long __unused1;
|
||||||
time_t sem_ctime;
|
time_t sem_ctime;
|
||||||
long __unused2;
|
long __unused2;
|
||||||
#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)];
|
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||||
unsigned short sem_nsems;
|
unsigned short sem_nsems;
|
||||||
#endif
|
|
||||||
long __unused3;
|
long __unused3;
|
||||||
long __unused4;
|
long __unused4;
|
||||||
};
|
};
|
||||||
|
@ -4,13 +4,8 @@ struct semid_ds {
|
|||||||
long __unused1;
|
long __unused1;
|
||||||
time_t sem_ctime;
|
time_t sem_ctime;
|
||||||
long __unused2;
|
long __unused2;
|
||||||
#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)];
|
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
||||||
unsigned short sem_nsems;
|
unsigned short sem_nsems;
|
||||||
#endif
|
|
||||||
long __unused3;
|
long __unused3;
|
||||||
long __unused4;
|
long __unused4;
|
||||||
};
|
};
|
||||||
|
@ -4,13 +4,8 @@ struct semid_ds {
|
|||||||
long __unused1;
|
long __unused1;
|
||||||
time_t sem_ctime;
|
time_t sem_ctime;
|
||||||
long __unused2;
|
long __unused2;
|
||||||
#if __BYTE_ORDER == __LITTLE_ENDIAN
|
|
||||||
unsigned short sem_nsems;
|
unsigned short sem_nsems;
|
||||||
char __sem_nsems_pad[sizeof(long)-sizeof(short)];
|
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 __unused3;
|
||||||
long __unused4;
|
long __unused4;
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user