sys/shm.h: move arch specific structs to bits/
authorrofl0r <retnyg@gmx.net>
Sat, 11 Jan 2014 12:41:50 +0000 (13:41 +0100)
committerrofl0r <retnyg@gmx.net>
Sun, 23 Feb 2014 10:07:18 +0000 (11:07 +0100)
arch/arm/bits/shm.h
arch/i386/bits/shm.h
arch/microblaze/bits/shm.h
arch/mips/bits/shm.h
arch/powerpc/bits/shm.h
arch/x86_64/bits/shm.h
include/sys/shm.h

index 8807c4fb2691870fc1ce9b3f157de75cddec76a1..547581f1a7f5c6986ba477a824c08cd2ff514bc6 100644 (file)
@@ -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;
+};
+
index 8807c4fb2691870fc1ce9b3f157de75cddec76a1..547581f1a7f5c6986ba477a824c08cd2ff514bc6 100644 (file)
@@ -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;
+};
+
index 8807c4fb2691870fc1ce9b3f157de75cddec76a1..547581f1a7f5c6986ba477a824c08cd2ff514bc6 100644 (file)
@@ -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;
+};
+
index abf1d506db8d888087687bd4f209668074348d40..f4b8712618f6f0e7be3b021cbbe325f8d56c414e 100644 (file)
@@ -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;
+};
+
index 8807c4fb2691870fc1ce9b3f157de75cddec76a1..547581f1a7f5c6986ba477a824c08cd2ff514bc6 100644 (file)
@@ -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;
+};
+
index abf1d506db8d888087687bd4f209668074348d40..f4b8712618f6f0e7be3b021cbbe325f8d56c414e 100644 (file)
@@ -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;
+};
+
index d97e582c370f68dca12be452bc0550f5c4521342..67be822bc3baacfbf7f426f3512e5f35b5555c91 100644 (file)
@@ -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);