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.
Showing the changes to include/uapi/linux (1 of 1 file). Show all
Unified · Split
| @@ -23,11 +23,11 @@ · 22 unmodified lines | |||
| 23 | #define MQ_BYTES_MAX 819200 | 23 | #define MQ_BYTES_MAX 819200 |
| 24 | 24 | ||
| 25 | struct mq_attr { | 25 | struct 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 | /* |