remove duplicates of new generic bits/sem.h
authorRich Felker <dalias@aerifal.cx>
Mon, 29 Jul 2019 22:17:43 +0000 (18:17 -0400)
committerRich Felker <dalias@aerifal.cx>
Mon, 29 Jul 2019 22:17:43 +0000 (18:17 -0400)
some of these were not exact duplicates, but had gratuitously
different naming for padding, or omitted the endian checks because the
arch is fixed-endian.

arch/aarch64/bits/sem.h [deleted file]
arch/mips64/bits/sem.h [deleted file]
arch/powerpc64/bits/sem.h [deleted file]
arch/riscv64/bits/sem.h [deleted file]
arch/s390x/bits/sem.h [deleted file]

diff --git a/arch/aarch64/bits/sem.h b/arch/aarch64/bits/sem.h
deleted file mode 100644 (file)
index 5184eb5..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-struct semid_ds {
-       struct ipc_perm sem_perm;
-       time_t sem_otime;
-       time_t sem_ctime;
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-       unsigned short sem_nsems;
-       char __sem_nsems_pad[sizeof(long)-sizeof(short)];
-#else
-       char __sem_nsems_pad[sizeof(long)-sizeof(short)];
-       unsigned short sem_nsems;
-#endif
-       long __unused3;
-       long __unused4;
-};
diff --git a/arch/mips64/bits/sem.h b/arch/mips64/bits/sem.h
deleted file mode 100644 (file)
index 5184eb5..0000000
+++ /dev/null
@@ -1,14 +0,0 @@
-struct semid_ds {
-       struct ipc_perm sem_perm;
-       time_t sem_otime;
-       time_t sem_ctime;
-#if __BYTE_ORDER == __LITTLE_ENDIAN
-       unsigned short sem_nsems;
-       char __sem_nsems_pad[sizeof(long)-sizeof(short)];
-#else
-       char __sem_nsems_pad[sizeof(long)-sizeof(short)];
-       unsigned short sem_nsems;
-#endif
-       long __unused3;
-       long __unused4;
-};
diff --git a/arch/powerpc64/bits/sem.h b/arch/powerpc64/bits/sem.h
deleted file mode 100644 (file)
index 558184d..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#include <endian.h>
-
-struct semid_ds {
-       struct ipc_perm sem_perm;
-       time_t sem_otime;
-       time_t sem_ctime;
-#if __BYTE_ORDER == __BIG_ENDIAN
-       unsigned short __pad[3], sem_nsems;
-#else
-       unsigned short sem_nsems, __pad[3];
-#endif
-       unsigned long __unused[2];
-};
diff --git a/arch/riscv64/bits/sem.h b/arch/riscv64/bits/sem.h
deleted file mode 100644 (file)
index 7b43441..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-struct semid_ds {
-       struct ipc_perm sem_perm;
-       time_t sem_otime;
-       time_t sem_ctime;
-       unsigned short sem_nsems;
-       char __sem_nsems_pad[sizeof(long)-sizeof(short)];
-       long __unused3;
-       long __unused4;
-};
diff --git a/arch/s390x/bits/sem.h b/arch/s390x/bits/sem.h
deleted file mode 100644 (file)
index 644f68a..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-struct semid_ds {
-       struct ipc_perm sem_perm;
-       time_t sem_otime;
-       time_t sem_ctime;
-       unsigned short __pad[3], sem_nsems;
-       unsigned long __unused[2];
-};