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
2323 #define MQ_BYTES_MAX 819200
2424
2525 struct mq_attr {
26− long mq_flags; /* message queue flags */
27− long mq_maxmsg; /* maximum number of messages */
28− long mq_msgsize; /* maximum message size */
29− long mq_curmsgs; /* number of messages currently queued */
30− long __reserved[4]; /* ignored for input, zeroed for output */
26+ __kernel_long_t mq_flags; /* message queue flags */
27+ __kernel_long_t mq_maxmsg; /* maximum number of messages */
28+ __kernel_long_t mq_msgsize; /* maximum message size */
29+ __kernel_long_t mq_curmsgs; /* number of messages currently queued */
30+ __kernel_long_t __reserved[4]; /* ignored for input, zeroed for output */
3131 };
3232
3333 /*