aboutsummaryrefslogtreecommitdiffstats
path: root/arch/parisc/include/uapi/asm/msgbuf.h
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2018-06-05 00:02:18 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2018-06-05 00:02:18 -0400
commitba252f16e4433e7599fec986e77722e6d0eed186 (patch)
tree01cdf643009b18091c8d8c7630accb5a82f01ba8 /arch/parisc/include/uapi/asm/msgbuf.h
parent0bbcce5d1ef3f771a349896f1c7574d20dc6f4bd (diff)
parente27c49291a7fe9dc415c9fcab5bd781ec82dfe04 (diff)
Merge branch 'timers-2038-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull time/Y2038 updates from Thomas Gleixner: - Consolidate SySV IPC UAPI headers - Convert SySV IPC to the new COMPAT_32BIT_TIME mechanism - Cleanup the core interfaces and standardize on the ktime_get_* naming convention. - Convert the X86 platform ops to timespec64 - Remove the ugly temporary timespec64 hack * 'timers-2038-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: (22 commits) x86: Convert x86_platform_ops to timespec64 timekeeping: Add more coarse clocktai/boottime interfaces timekeeping: Add ktime_get_coarse_with_offset timekeeping: Standardize on ktime_get_*() naming timekeeping: Clean up ktime_get_real_ts64 timekeeping: Remove timespec64 hack y2038: ipc: Redirect ipc(SEMTIMEDOP, ...) to compat_ksys_semtimedop y2038: ipc: Enable COMPAT_32BIT_TIME y2038: ipc: Use __kernel_timespec y2038: ipc: Report long times to user space y2038: ipc: Use ktime_get_real_seconds consistently y2038: xtensa: Extend sysvipc data structures y2038: powerpc: Extend sysvipc data structures y2038: sparc: Extend sysvipc data structures y2038: parisc: Extend sysvipc data structures y2038: mips: Extend sysvipc data structures y2038: arm64: Extend sysvipc compat data structures y2038: s390: Remove unneeded ipc uapi header files y2038: ia64: Remove unneeded ipc uapi header files y2038: alpha: Remove unneeded ipc uapi header files ...
Diffstat (limited to 'arch/parisc/include/uapi/asm/msgbuf.h')
-rw-r--r--arch/parisc/include/uapi/asm/msgbuf.h33
1 files changed, 16 insertions, 17 deletions
diff --git a/arch/parisc/include/uapi/asm/msgbuf.h b/arch/parisc/include/uapi/asm/msgbuf.h
index b48b810e626b..6a2e9ab2ef8d 100644
--- a/arch/parisc/include/uapi/asm/msgbuf.h
+++ b/arch/parisc/include/uapi/asm/msgbuf.h
@@ -10,31 +10,30 @@
10 * between kernel and user space. 10 * between kernel and user space.
11 * 11 *
12 * Pad space is left for: 12 * Pad space is left for:
13 * - 64-bit time_t to solve y2038 problem
14 * - 2 miscellaneous 32-bit values 13 * - 2 miscellaneous 32-bit values
15 */ 14 */
16 15
17struct msqid64_ds { 16struct msqid64_ds {
18 struct ipc64_perm msg_perm; 17 struct ipc64_perm msg_perm;
19#if __BITS_PER_LONG != 64 18#if __BITS_PER_LONG == 64
20 unsigned int __pad1;
21#endif
22 __kernel_time_t msg_stime; /* last msgsnd time */ 19 __kernel_time_t msg_stime; /* last msgsnd time */
23#if __BITS_PER_LONG != 64
24 unsigned int __pad2;
25#endif
26 __kernel_time_t msg_rtime; /* last msgrcv time */ 20 __kernel_time_t msg_rtime; /* last msgrcv time */
27#if __BITS_PER_LONG != 64
28 unsigned int __pad3;
29#endif
30 __kernel_time_t msg_ctime; /* last change time */ 21 __kernel_time_t msg_ctime; /* last change time */
31 unsigned long msg_cbytes; /* current number of bytes on queue */ 22#else
32 unsigned long msg_qnum; /* number of messages in queue */ 23 unsigned long msg_stime_high;
33 unsigned long msg_qbytes; /* max number of bytes on queue */ 24 unsigned long msg_stime; /* last msgsnd time */
34 __kernel_pid_t msg_lspid; /* pid of last msgsnd */ 25 unsigned long msg_rtime_high;
35 __kernel_pid_t msg_lrpid; /* last receive pid */ 26 unsigned long msg_rtime; /* last msgrcv time */
36 unsigned long __unused1; 27 unsigned long msg_ctime_high;
37 unsigned long __unused2; 28 unsigned long msg_ctime; /* last change time */
29#endif
30 unsigned long msg_cbytes; /* current number of bytes on queue */
31 unsigned long msg_qnum; /* number of messages in queue */
32 unsigned long msg_qbytes; /* max number of bytes on queue */
33 __kernel_pid_t msg_lspid; /* pid of last msgsnd */
34 __kernel_pid_t msg_lrpid; /* last receive pid */
35 unsigned long __unused1;
36 unsigned long __unused2;
38}; 37};
39 38
40#endif /* _PARISC_MSGBUF_H */ 39#endif /* _PARISC_MSGBUF_H */