hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/include/uapi/asm-generic/msgbuf.h
....@@ -3,6 +3,8 @@
33 #define __ASM_GENERIC_MSGBUF_H
44
55 #include <asm/bitsperlong.h>
6
+#include <asm/ipcbuf.h>
7
+
68 /*
79 * generic msqid64_ds structure.
810 *
....@@ -13,9 +15,9 @@
1315 * everyone just ended up making identical copies without specific
1416 * optimizations, so we may just as well all use the same one.
1517 *
16
- * 64 bit architectures typically define a 64 bit __kernel_time_t,
17
- * so they do not need the first three padding words.
18
- * On big-endian systems, the padding is in the wrong place.
18
+ * 64 bit architectures use a 64-bit long time field here, while
19
+ * 32 bit architectures have a pair of unsigned long values.
20
+ * On big-endian systems, the lower half is in the wrong place.
1921 *
2022 * Pad space is left for:
2123 * - 2 miscellaneous 32-bit values
....@@ -24,9 +26,9 @@
2426 struct msqid64_ds {
2527 struct ipc64_perm msg_perm;
2628 #if __BITS_PER_LONG == 64
27
- __kernel_time_t msg_stime; /* last msgsnd time */
28
- __kernel_time_t msg_rtime; /* last msgrcv time */
29
- __kernel_time_t msg_ctime; /* last change time */
29
+ long msg_stime; /* last msgsnd time */
30
+ long msg_rtime; /* last msgrcv time */
31
+ long msg_ctime; /* last change time */
3032 #else
3133 unsigned long msg_stime; /* last msgsnd time */
3234 unsigned long msg_stime_high;