linux-mips
[Top] [All Lists]

sysv ipc msg functions

To: linux-mips@linux-mips.org
Subject: sysv ipc msg functions
From: Greg Weeks <greg.weeks@timesys.com>
Date: Tue, 19 Apr 2005 10:42:24 -0400
Original-recipient: rfc822;linux-mips@linux-mips.org
Sender: linux-mips-bounce@linux-mips.org
User-agent: Mozilla Thunderbird 1.0 (X11/20041206)
I needed this glibc patch to get the sysv ipc msgctl functions to work correctly. This looks a bit hackish to me, so I wanted to run it past everybody here before filing it with glibc.

Greg Weeks
--- glibc-2.3.3-200407050320/sysdeps/unix/sysv/linux/mips/bits/msq.h.orig       
2005-04-19 09:04:15.000000000 -0400
+++ glibc-2.3.3-200407050320/sysdeps/unix/sysv/linux/mips/bits/msq.h    
2005-04-19 09:22:21.000000000 -0400
@@ -38,9 +38,27 @@ typedef unsigned long int msglen_t;
 struct msqid_ds
 {
   struct ipc_perm msg_perm;    /* structure describing operation permission */
+#if __WORDSIZE == 32 && defined(__MIPSEB__)
+   unsigned long       __unused3;
+#endif
   __time_t msg_stime;          /* time of last msgsnd command */
+#if __WORDSIZE == 32 && defined(__MIPSEL__)
+   unsigned long       __unused3;
+#endif
+#if __WORDSIZE == 32 && defined(__MIPSEB__)
+  unsigned long        __unused4;
+#endif
   __time_t msg_rtime;          /* time of last msgrcv command */
+#if __WORDSIZE == 32 && defined(__MIPSEL__)
+  unsigned long        __unused4;
+#endif
+#if __WORDSIZE == 32 && defined(__MIPSEB__)
+  unsigned long        __unused5;
+#endif
   __time_t msg_ctime;          /* time of last change */
+#if __WORDSIZE == 32 && defined(__MIPSEL__)
+  unsigned long        __unused5;
+#endif
   unsigned long int __msg_cbytes; /* current number of bytes on queue */
   msgqnum_t msg_qnum;          /* number of messages currently on queue */
   msglen_t msg_qbytes;         /* max number of bytes allowed on queue */
<Prev in Thread] Current Thread [Next in Thread>