aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/gnu/bits/msq.h
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-01 14:51:22 +0200
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2023-05-01 15:07:51 +0200
commite2b3d7f4853124746178148cf3f2af4e9c23f73d (patch)
treebc7ed2a890769ffb6dcf2127a45cc48fa9e3e11a /sysdeps/gnu/bits/msq.h
parente3a3616dbf620fa9f260a4c1a779efbb15b4a506 (diff)
downloadglibc-e2b3d7f4853124746178148cf3f2af4e9c23f73d.zip
glibc-e2b3d7f4853124746178148cf3f2af4e9c23f73d.tar.gz
glibc-e2b3d7f4853124746178148cf3f2af4e9c23f73d.tar.bz2
hurd 64bit: Fix struct msqid_ds and shmid_ds fields
The standards want msg_lspid/msg_lrpid/shm_cpid/shm_lpid to be pid_t, see BZ 23083 and 23085. We can leave them __rpc_pid_t on i386 for ABI compatibility, but avoid hitting the issue on 64bit.
Diffstat (limited to 'sysdeps/gnu/bits/msq.h')
-rw-r--r--sysdeps/gnu/bits/msq.h20
1 files changed, 1 insertions, 19 deletions
diff --git a/sysdeps/gnu/bits/msq.h b/sysdeps/gnu/bits/msq.h
index f85c923..a507c56 100644
--- a/sysdeps/gnu/bits/msq.h
+++ b/sysdeps/gnu/bits/msq.h
@@ -32,25 +32,7 @@
typedef unsigned short int msgqnum_t;
typedef unsigned short int msglen_t;
-
-/* Structure of record for one message inside the kernel.
- The type `struct msg' is opaque. */
-struct msqid_ds
-{
- struct ipc_perm msg_perm; /* structure describing operation permission */
- struct msg *__msg_first; /* pointer to first message on queue */
- struct msg *__msg_last; /* pointer to last message on queue */
- __time_t msg_stime; /* time of last msgsnd command */
- __time_t msg_rtime; /* time of last msgrcv command */
- __time_t msg_ctime; /* time of last change */
- struct __wait_queue *__wwait; /* ??? */
- struct __wait_queue *__rwait; /* ??? */
- unsigned short 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 */
- __ipc_pid_t msg_lspid; /* pid of last msgsnd() */
- __ipc_pid_t msg_lrpid; /* pid of last msgrcv() */
-};
+#include <bits/types/struct_msqid_ds.h>
#ifdef __USE_MISC