123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990 |
- #ifndef _SYS_SHM_H
- # error "Never include <bits/shm.h> directly; use <sys/shm.h> instead."
- #endif
- #include <bits/types.h>
- #define SHM_R 0400
- #define SHM_W 0200
- #define SHM_RDONLY 010000
- #define SHM_RND 020000
- #define SHM_REMAP 040000
- #define SHM_LOCK 11
- #define SHM_UNLOCK 12
- __BEGIN_DECLS
- #define SHMLBA (__getpagesize () << 2)
- extern int __getpagesize (void) __THROW __attribute__ ((__const__));
- typedef unsigned long int shmatt_t;
- struct shmid_ds
- {
- struct ipc_perm shm_perm;
- size_t shm_segsz;
- __time_t shm_atime;
- unsigned long int __uclibc_unused1;
- __time_t shm_dtime;
- unsigned long int __uclibc_unused2;
- __time_t shm_ctime;
- unsigned long int __uclibc_unused3;
- __pid_t shm_cpid;
- __pid_t shm_lpid;
- shmatt_t shm_nattch;
- unsigned long int __uclibc_unused4;
- unsigned long int __uclibc_unused5;
- };
- #ifdef __USE_MISC
- # define SHM_STAT 13
- # define SHM_INFO 14
- # define SHM_DEST 01000
- # define SHM_LOCKED 02000
- # define SHM_HUGETLB 04000
- # define SHM_NORESERVE 010000
- struct shminfo
- {
- unsigned long int shmmax;
- unsigned long int shmmin;
- unsigned long int shmmni;
- unsigned long int shmseg;
- unsigned long int shmall;
- unsigned long int __uclibc_unused1;
- unsigned long int __uclibc_unused2;
- unsigned long int __uclibc_unused3;
- unsigned long int __uclibc_unused4;
- };
- struct shm_info
- {
- int used_ids;
- unsigned long int shm_tot;
- unsigned long int shm_rss;
- unsigned long int shm_swp;
- unsigned long int swap_attempts;
- unsigned long int swap_successes;
- };
- #endif
- __END_DECLS
|