History

uapi: Use __kernel_long_t in struct mq_attr

Both x32 and x86-64 use the same struct mq_attr for system calls. But x32 long is 32-bit. This patch replaces long with __kernel_long_t in struct mq_attr.

H.J. Lu committed 12 years ago

Commit 63159f51 parent f8dcdf01 file · +5 −5Browse files

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

Unified · Split

include/uapi/linux/mqueue.h+5−5
@@ -23,11 +23,11 @@ · 22 unmodified lines
23#define MQ_BYTES_MAX 81920023#define MQ_BYTES_MAX 819200
24 24
25struct mq_attr {25struct mq_attr {
26 long mq_flags; /* message queue flags */26 __kernel_long_t mq_flags; /* message queue flags */
27 long mq_maxmsg; /* maximum number of messages */27 __kernel_long_t mq_maxmsg; /* maximum number of messages */
28 long mq_msgsize; /* maximum message size */28 __kernel_long_t mq_msgsize; /* maximum message size */
29 long mq_curmsgs; /* number of messages currently queued */29 __kernel_long_t mq_curmsgs; /* number of messages currently queued */
30 long __reserved[4]; /* ignored for input, zeroed for output */30 __kernel_long_t __reserved[4]; /* ignored for input, zeroed for output */
31};31};
32 32
33/*33/*