summary refs log tree commit diff
path: root/sysdeps/gnu/bits/shm.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/shm.h
parente3a3616dbf620fa9f260a4c1a779efbb15b4a506 (diff)
downloadglibc-e2b3d7f4853124746178148cf3f2af4e9c23f73d.tar.gz
glibc-e2b3d7f4853124746178148cf3f2af4e9c23f73d.tar.xz
glibc-e2b3d7f4853124746178148cf3f2af4e9c23f73d.zip
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/shm.h')
-rw-r--r--sysdeps/gnu/bits/shm.h16
1 files changed, 1 insertions, 15 deletions
diff --git a/sysdeps/gnu/bits/shm.h b/sysdeps/gnu/bits/shm.h
index 43f1362bc5..8908e910f7 100644
--- a/sysdeps/gnu/bits/shm.h
+++ b/sysdeps/gnu/bits/shm.h
@@ -45,21 +45,7 @@ extern int __getpagesize (void) __THROW __attribute__ ((__const__));
 /* Type to count number of attaches.  */
 typedef unsigned short int shmatt_t;
 
-/* Data structure describing a shared memory segment.  */
-struct shmid_ds
-  {
-    struct ipc_perm shm_perm;		/* operation permission struct */
-    size_t shm_segsz;			/* size of segment in bytes */
-    __time_t shm_atime;			/* time of last shmat() */
-    __time_t shm_dtime;			/* time of last shmdt() */
-    __time_t shm_ctime;			/* time of last change by shmctl() */
-    __ipc_pid_t shm_cpid;		/* pid of creator */
-    __ipc_pid_t shm_lpid;		/* pid of last shmop */
-    shmatt_t shm_nattch;		/* number of current attaches */
-    unsigned short int __shm_npages;	/* size of segment (pages) */
-    unsigned long int *__shm_pages;	/* array of ptrs to frames -> SHMMAX */
-    struct __vm_area_struct *__attaches;	/* descriptors for attaches */
-  };
+#include <bits/types/struct_shmid_ds.h>
 
 #ifdef __USE_MISC