Skip to content

Commit

Permalink
Merge pull request dlang#1253 from redstar/msq
Browse files Browse the repository at this point in the history
Add missing definitions to core.sys.posix.sys.msg
  • Loading branch information
MartinNowak committed May 11, 2015
2 parents 93e6c9c + 32fa18d commit dd9c509
Showing 1 changed file with 66 additions and 5 deletions.
71 changes: 66 additions & 5 deletions src/core/sys/posix/sys/msg.d
Original file line number Diff line number Diff line change
Expand Up @@ -82,12 +82,53 @@ else version(HPPA)
};

}
else version(MIPS)
else version(MIPS)
{
// I have no idea what to do here regarding msqid_ds
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/mips/bits/msq.h
alias c_ulong msgqnum_t;
alias c_ulong msglen_t;
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/mips/bits/msq.h
alias c_ulong msgqnum_t;
alias c_ulong msglen_t;

struct msqid_ds
{
ipc_perm msg_perm;
version(BigEndian) c_ulong __glibc_reserved1;
time_t msg_stime;
version(LittleEndian) c_ulong __glibc_reserved1;
version(BigEndian) c_ulong __glibc_reserved2;
time_t msg_rtime;
version(LittleEndian) c_ulong __glibc_reserved2;
version(BigEndian) c_ulong __glibc_reserved3;
time_t msg_ctime;
version(LittleEndian) c_ulong __glibc_reserved3;
c_ulong __msg_cbytes;
msgqnum_t msg_qnum;
msglen_t msg_qbytes;
pid_t msg_lspid;
pid_t msg_lrpid;
c_ulong __glibc_reserved4;
c_ulong __glibc_reserved5;
};
}
else version(MIPS64)
{
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/mips/bits/msq.h
alias c_ulong msgqnum_t;
alias c_ulong msglen_t;

struct msqid_ds
{
ipc_perm msg_perm;
time_t msg_stime;
time_t msg_rtime;
time_t msg_ctime;
c_ulong __msg_cbytes;
msgqnum_t msg_qnum;
msglen_t msg_qbytes;
pid_t msg_lspid;
pid_t msg_lrpid;
c_ulong __glibc_reserved4;
c_ulong __glibc_reserved5;
};
}
else version (PPC)
{
Expand All @@ -113,6 +154,26 @@ else version (PPC)
c_ulong __glibc_reserved5;
};
}
else version (PPC64)
{
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/powerpc/bits/msq.h
alias c_ulong msgqnum_t;
alias c_ulong msglen_t;

struct msqid_ds {
ipc_perm msg_perm;
time_t msg_stime;
time_t msg_rtime;
time_t msg_ctime;
c_ulong __msg_cbytes;
msgqnum_t msg_qnum;
msglen_t msg_qbytes;
pid_t msg_lspid;
pid_t msg_lrpid;
c_ulong __glibc_reserved4;
c_ulong __glibc_reserved5;
};
}
else version (S390)
{
// https://sourceware.org/git/?p=glibc.git;a=blob;f=sysdeps/unix/sysv/linux/s390/bits/msq.h
Expand Down

0 comments on commit dd9c509

Please sign in to comment.