diff options
author | rofl0r <retnyg@gmx.net> | 2014-01-11 13:41:50 +0100 |
---|---|---|
committer | rofl0r <retnyg@gmx.net> | 2014-02-23 11:07:18 +0100 |
commit | 0f169cbb79c39a5b15f7a27d9283cdeb6e122b8f (patch) | |
tree | e9235f57fecb9a9fa27a9232cbfbee7ecef62dcc | |
parent | 1a2e55b95a2cf51616cce7b46f9a30e820679314 (diff) | |
download | musl-0f169cbb79c39a5b15f7a27d9283cdeb6e122b8f.tar.gz musl-0f169cbb79c39a5b15f7a27d9283cdeb6e122b8f.tar.bz2 musl-0f169cbb79c39a5b15f7a27d9283cdeb6e122b8f.tar.xz musl-0f169cbb79c39a5b15f7a27d9283cdeb6e122b8f.zip |
sys/shm.h: move arch specific structs to bits/
-rw-r--r-- | arch/arm/bits/shm.h | 11 | ||||
-rw-r--r-- | arch/i386/bits/shm.h | 11 | ||||
-rw-r--r-- | arch/microblaze/bits/shm.h | 11 | ||||
-rw-r--r-- | arch/mips/bits/shm.h | 11 | ||||
-rw-r--r-- | arch/powerpc/bits/shm.h | 11 | ||||
-rw-r--r-- | arch/x86_64/bits/shm.h | 11 | ||||
-rw-r--r-- | include/sys/shm.h | 23 |
7 files changed, 73 insertions, 16 deletions
diff --git a/arch/arm/bits/shm.h b/arch/arm/bits/shm.h index 8807c4fb..547581f1 100644 --- a/arch/arm/bits/shm.h +++ b/arch/arm/bits/shm.h @@ -16,3 +16,14 @@ struct shmid_ds unsigned long __pad1; unsigned long __pad2; }; + +struct shminfo { + unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4]; +}; + +struct shm_info { + int __used_ids; + unsigned long shm_tot, shm_rss, shm_swp; + unsigned long __swap_attempts, __swap_successes; +}; + diff --git a/arch/i386/bits/shm.h b/arch/i386/bits/shm.h index 8807c4fb..547581f1 100644 --- a/arch/i386/bits/shm.h +++ b/arch/i386/bits/shm.h @@ -16,3 +16,14 @@ struct shmid_ds unsigned long __pad1; unsigned long __pad2; }; + +struct shminfo { + unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4]; +}; + +struct shm_info { + int __used_ids; + unsigned long shm_tot, shm_rss, shm_swp; + unsigned long __swap_attempts, __swap_successes; +}; + diff --git a/arch/microblaze/bits/shm.h b/arch/microblaze/bits/shm.h index 8807c4fb..547581f1 100644 --- a/arch/microblaze/bits/shm.h +++ b/arch/microblaze/bits/shm.h @@ -16,3 +16,14 @@ struct shmid_ds unsigned long __pad1; unsigned long __pad2; }; + +struct shminfo { + unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4]; +}; + +struct shm_info { + int __used_ids; + unsigned long shm_tot, shm_rss, shm_swp; + unsigned long __swap_attempts, __swap_successes; +}; + diff --git a/arch/mips/bits/shm.h b/arch/mips/bits/shm.h index abf1d506..f4b87126 100644 --- a/arch/mips/bits/shm.h +++ b/arch/mips/bits/shm.h @@ -13,3 +13,14 @@ struct shmid_ds unsigned long __pad1; unsigned long __pad2; }; + +struct shminfo { + unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4]; +}; + +struct shm_info { + int __used_ids; + unsigned long shm_tot, shm_rss, shm_swp; + unsigned long __swap_attempts, __swap_successes; +}; + diff --git a/arch/powerpc/bits/shm.h b/arch/powerpc/bits/shm.h index 8807c4fb..547581f1 100644 --- a/arch/powerpc/bits/shm.h +++ b/arch/powerpc/bits/shm.h @@ -16,3 +16,14 @@ struct shmid_ds unsigned long __pad1; unsigned long __pad2; }; + +struct shminfo { + unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4]; +}; + +struct shm_info { + int __used_ids; + unsigned long shm_tot, shm_rss, shm_swp; + unsigned long __swap_attempts, __swap_successes; +}; + diff --git a/arch/x86_64/bits/shm.h b/arch/x86_64/bits/shm.h index abf1d506..f4b87126 100644 --- a/arch/x86_64/bits/shm.h +++ b/arch/x86_64/bits/shm.h @@ -13,3 +13,14 @@ struct shmid_ds unsigned long __pad1; unsigned long __pad2; }; + +struct shminfo { + unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4]; +}; + +struct shm_info { + int __used_ids; + unsigned long shm_tot, shm_rss, shm_swp; + unsigned long __swap_attempts, __swap_successes; +}; + diff --git a/include/sys/shm.h b/include/sys/shm.h index d97e582c..67be822b 100644 --- a/include/sys/shm.h +++ b/include/sys/shm.h @@ -14,6 +14,13 @@ extern "C" { #include <bits/alltypes.h> #include <sys/ipc.h> + +#ifdef _GNU_SOURCE +#define __used_ids used_ids +#define __swap_attempts swap_attempts +#define __swap_successes swap_successes +#endif + #include <bits/shm.h> #define SHM_R 0400 @@ -33,22 +40,6 @@ extern "C" { #define SHM_HUGETLB 04000 #define SHM_NORESERVE 010000 -struct shminfo { - unsigned long shmmax, shmmin, shmmni, shmseg, shmall, __unused[4]; -}; - -#ifdef _GNU_SOURCE -#define __used_ids used_ids -#define __swap_attempts swap_attempts -#define __swap_successes swap_successes -#endif - -struct shm_info { - int __used_ids; - unsigned long shm_tot, shm_rss, shm_swp; - unsigned long __swap_attempts, __swap_successes; -}; - typedef unsigned long shmatt_t; void *shmat(int, const void *, int); |