History

uapi: Use __kernel_long_t in struct msgbuf

x32 msgsnd/msgrcv system calls are the same as x86-64 msgsnd/msgrcv system calls, which use 64-bit integer for long in struct msgbuf . But x32 long is 32 bit. This patch replaces long in struct msgbuf with __kernel_long_t.

H.J. Lu committed 12 years ago

Commit 443d5671 parent 071ed241 file · +2 −2Browse files

Showing the changes to include/uapi/linux (1 of 1 file). Show all

Unified · Split

include/uapi/linux/msg.h+2−2
@@ -34,8 +34,8 @@ struct msqid_ds { · 33 unmodified lines
3434
3535 /* message buffer for msgsnd and msgrcv calls */
3636 struct msgbuf {
37− long mtype; /* type of message */
38− char mtext[1]; /* message text */
37+ __kernel_long_t mtype; /* type of message */
38+ char mtext[1]; /* message text */
3939 };
4040
4141 /* buffer for msgctl calls IPC_INFO, MSG_INFO */