summaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/uapi/asm/sembuf.h
diff options
context:
space:
mode:
authorJames Bottomley <JBottomley@Parallels.com>2012-10-19 10:26:06 -0700
committerJames Bottomley <JBottomley@Parallels.com>2012-10-19 10:26:06 -0700
commit6238559f0b709c02f680f584b9a1aaa3eb660d39 (patch)
tree45890738781abe3ec50e3604cb222ee0dd9bfb2c /arch/parisc/include/uapi/asm/sembuf.h
parentdd8e8c4a2c902d8350b702e7bc7c2799e5e7e331 (diff)
parent70c1674f62026e455c0c821fb7f4baf24d2d1139 (diff)
Merge tag 'disintegrate-parisc-20121016' into for-linus
UAPI Disintegration 2012-10-16 Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'arch/parisc/include/uapi/asm/sembuf.h')
-rw-r--r--arch/parisc/include/uapi/asm/sembuf.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/arch/parisc/include/uapi/asm/sembuf.h b/arch/parisc/include/uapi/asm/sembuf.h
new file mode 100644
index 00000000000..1e59ffd3bd1
--- /dev/null
+++ b/arch/parisc/include/uapi/asm/sembuf.h
@@ -0,0 +1,29 @@
+#ifndef _PARISC_SEMBUF_H
+#define _PARISC_SEMBUF_H
+
+/*
+ * The semid64_ds structure for parisc architecture.
+ * Note extra padding because this structure is passed back and forth
+ * between kernel and user space.
+ *
+ * Pad space is left for:
+ * - 64-bit time_t to solve y2038 problem
+ * - 2 miscellaneous 32-bit values
+ */
+
+struct semid64_ds {
+ struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
+#ifndef CONFIG_64BIT
+ unsigned int __pad1;
+#endif
+ __kernel_time_t sem_otime; /* last semop time */
+#ifndef CONFIG_64BIT
+ unsigned int __pad2;
+#endif
+ __kernel_time_t sem_ctime; /* last change time */
+ unsigned int sem_nsems; /* no. of semaphores in array */
+ unsigned int __unused1;
+ unsigned int __unused2;
+};
+
+#endif /* _PARISC_SEMBUF_H */