Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: Greg Weeks <greg.weeks@timesys.com>
To: linux-mips@linux-mips.org
Subject: sysv ipc msg functions
Date: Tue, 19 Apr 2005 10:42:24 -0400	[thread overview]
Message-ID: <426518D0.5080506@timesys.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 199 bytes --]

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

[-- Attachment #2: glibc-2.3.3-timesys-mips-msq.h.patch --]
[-- Type: text/x-patch, Size: 1231 bytes --]

--- 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 */

             reply	other threads:[~2005-04-19 14:42 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-19 14:42 Greg Weeks [this message]
2005-04-19 14:35 ` sysv ipc msg functions Thiemo Seufer
2005-04-19 15:23   ` Daniel Jacobowitz
2005-04-19 14:51 ` sjhill
2005-04-19 14:54   ` Greg Weeks
2005-04-19 15:05 ` Daniel Jacobowitz
2005-04-19 15:52   ` Greg Weeks

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=426518D0.5080506@timesys.com \
    --to=greg.weeks@timesys.com \
    --cc=linux-mips@linux-mips.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox