2
0

shm.h 692 B

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