mirror of
https://github.com/fluencelabs/musl
synced 2025-06-27 05:32:06 +00:00
fix mips sysv ipc bits headers
msg.h was wrong for big-endian (wrong endiannness padding). shm.h was just plain wrong (mips is not supposed to have padding). both changes were tested using libc-test on qemu-system-mips.
This commit is contained in:
@ -1,12 +1,21 @@
|
|||||||
struct msqid_ds
|
struct msqid_ds
|
||||||
{
|
{
|
||||||
struct ipc_perm msg_perm;
|
struct ipc_perm msg_perm;
|
||||||
|
#if _MIPSEL || __MIPSEL || __MIPSEL__
|
||||||
time_t msg_stime;
|
time_t msg_stime;
|
||||||
int __unused1;
|
int __unused1;
|
||||||
time_t msg_rtime;
|
time_t msg_rtime;
|
||||||
int __unused2;
|
int __unused2;
|
||||||
time_t msg_ctime;
|
time_t msg_ctime;
|
||||||
int __unused3;
|
int __unused3;
|
||||||
|
#else
|
||||||
|
int __unused1;
|
||||||
|
time_t msg_stime;
|
||||||
|
int __unused2;
|
||||||
|
time_t msg_rtime;
|
||||||
|
int __unused3;
|
||||||
|
time_t msg_ctime;
|
||||||
|
#endif
|
||||||
unsigned long msg_cbytes;
|
unsigned long msg_cbytes;
|
||||||
msgqnum_t msg_qnum;
|
msgqnum_t msg_qnum;
|
||||||
msglen_t msg_qbytes;
|
msglen_t msg_qbytes;
|
||||||
|
@ -5,11 +5,8 @@ struct shmid_ds
|
|||||||
struct ipc_perm shm_perm;
|
struct ipc_perm shm_perm;
|
||||||
size_t shm_segsz;
|
size_t shm_segsz;
|
||||||
time_t shm_atime;
|
time_t shm_atime;
|
||||||
int __unused1;
|
|
||||||
time_t shm_dtime;
|
time_t shm_dtime;
|
||||||
int __unused2;
|
|
||||||
time_t shm_ctime;
|
time_t shm_ctime;
|
||||||
int __unused3;
|
|
||||||
pid_t shm_cpid;
|
pid_t shm_cpid;
|
||||||
pid_t shm_lpid;
|
pid_t shm_lpid;
|
||||||
unsigned long shm_nattch;
|
unsigned long shm_nattch;
|
||||||
|
Reference in New Issue
Block a user