1 #include <inttypes.h> 2 typedef uint32_t mpers_ptr_t; 3 typedef 4 struct { 5 struct { 6 int32_t __key; 7 uint32_t uid; 8 uint32_t gid; 9 uint32_t cuid; 10 uint32_t cgid; 11 uint16_t mode; 12 uint16_t __pad1; 13 uint16_t __seq; 14 uint16_t __pad2; 15 uint32_t __glibc_reserved1; 16 uint32_t __glibc_reserved2; 17 } ATTRIBUTE_PACKED shm_perm; 18 uint32_t shm_segsz; 19 int32_t shm_atime; 20 uint32_t __glibc_reserved1; 21 int32_t shm_dtime; 22 uint32_t __glibc_reserved2; 23 int32_t shm_ctime; 24 uint32_t __glibc_reserved3; 25 int32_t shm_cpid; 26 int32_t shm_lpid; 27 uint32_t shm_nattch; 28 uint32_t __glibc_reserved4; 29 uint32_t __glibc_reserved5; 30 } ATTRIBUTE_PACKED m32_shmid_ds_t; 31 #define MPERS_m32_shmid_ds_t m32_shmid_ds_t 32