]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
ia64: msg.h: fix msg_qnum/msg_qbytes types
authorMike Frysinger <vapier@gentoo.org>
Wed, 22 Jul 2015 02:44:48 +0000 (22:44 -0400)
committerMike Frysinger <vapier@gentoo.org>
Wed, 22 Jul 2015 02:46:58 +0000 (22:46 -0400)
These two fields have dedicated types, so change the ia64 header to match
all the other arches.  This fixes the conform test for msg.h.

ChangeLog
sysdeps/unix/sysv/linux/ia64/bits/msq.h

index 991cb880c69ea2f30cfb6a46013d5e85f91fc4fb..652d96860459c4108b830bd14d3b4b74823405ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2015-07-22  Mike Frysinger  <vapier@gentoo.org>
+
+       * sysdeps/unix/sysv/linux/ia64/bits/msq.h: Change sys/types.h include
+       to bits/types.h.
+       (msgqnum_t): New typedef.
+       (msglen_t): Likewise.
+       (struct msqid_ds): Update comment.  Change msg_qnum type to msgqnum_t
+       and msg_qbytes type to msglen_t.
+
 2015-07-22  Mike Frysinger  <vapier@gentoo.org>
 
        * sysdeps/unix/sysv/linux/ia64/bits/stat.h (struct stat): Rename
index 8c043b436f4d7f72efc58691791b53a7884fe051..e7a3cf2ce1c67a34cdc8a6fb1b1dfd69e4fa632a 100644 (file)
@@ -20,7 +20,7 @@
 #error "Never use <bits/msq.h> directly; include <sys/msg.h> instead."
 #endif
 
-#include <sys/types.h>
+#include <bits/types.h>
 
 /* Define options for message queue functions.  */
 #define MSG_NOERROR    010000  /* no error if message is too big */
 # define MSG_COPY      040000  /* copy (not remove) all queue messages */
 #endif
 
+/* Types used in the structure definition.  */
+typedef unsigned long int msgqnum_t;
+typedef unsigned long int msglen_t;
+
+
 /* Structure of record for one message inside the kernel.
-   The type `struct __msg' is opaque.  */
+   The type `struct msg' is opaque.  */
 struct msqid_ds
 {
   struct ipc_perm msg_perm;    /* structure describing operation permission */
@@ -38,8 +43,8 @@ struct msqid_ds
   __time_t msg_rtime;          /* time of last msgrcv command */
   __time_t msg_ctime;          /* time of last change */
   unsigned long int __msg_cbytes;      /* current number of bytes on queue */
-  unsigned long int msg_qnum;  /* number of messages currently on queue */
-  unsigned long int msg_qbytes;        /* max number of bytes allowed on queue */
+  msgqnum_t msg_qnum;          /* number of messages currently on queue */
+  msglen_t msg_qbytes;         /* max number of bytes allowed on queue */
   __pid_t msg_lspid;           /* pid of last msgsnd() */
   __pid_t msg_lrpid;           /* pid of last msgrcv() */
   unsigned long int __glibc_reserved1;