1 #define SHMLBA 4096 2 3 struct shmid_ds { 4 struct ipc_perm shm_perm; 5 size_t shm_segsz; 6 time_t shm_atime; 7 time_t shm_dtime; 8 time_t shm_ctime; 9 pid_t shm_cpid; 10 pid_t shm_lpid; 11 unsigned long shm_nattch; 12 unsigned long __pad0; 13 unsigned long long __pad1; 14 unsigned long long __pad2; 15 }; 16 17 struct shminfo { 18 unsigned long shmmax, __pad0, shmmin, __pad1, shmmni, __pad2, 19 shmseg, __pad3, shmall, __pad4; 20 unsigned long long __unused[4]; 21 }; 22 23 struct shm_info { 24 int __used_ids; 25 int __pad_ids; 26 unsigned long shm_tot, __pad0, shm_rss, __pad1, shm_swp, __pad2; 27 unsigned long __swap_attempts, __pad3, __swap_successes, __pad4; 28 } 29 #ifdef __GNUC__ 30 __attribute__((__aligned__(8))) 31 #endif 32 ; 33