diff options
| author | Andrew Morton <akpm@osdl.org> | 2004-04-11 22:55:45 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-04-11 22:55:45 -0700 |
| commit | 87c22e8470366e81aa82bcbadaf147c4ecdfb182 (patch) | |
| tree | 0c1e56a6b0f73b476f0c5ceeca9512a5c206a04b /include/linux/mqueue.h | |
| parent | 34b98f223bb21673f4cab2f5079a763c34a67946 (diff) | |
[PATCH] compat emulation for posix message queues
From: Arnd Bergmann <arnd@arndb.de>
I have tested the code with the open posix test suite and found the same
four failures for both 64-bit and compat mode, most tests pass. The patch
is against -mc1, but I guess it also applies to the other trees around.
What worries me more than mq_attr compatibility is the conversion of struct
sigevent, which might turn out really hard when more fields in there are
used. AFAICS, the only other part in the kernel ABI is sys_timer_create(),
so maybe it's not too late to deprecate the current structure and create a
structure that can be used properly for compat syscalls.
Diffstat (limited to 'include/linux/mqueue.h')
| -rw-r--r-- | include/linux/mqueue.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/mqueue.h b/include/linux/mqueue.h index fdab3b8ee242..fc40b774b913 100644 --- a/include/linux/mqueue.h +++ b/include/linux/mqueue.h @@ -18,9 +18,9 @@ #ifndef _LINUX_MQUEUE_H #define _LINUX_MQUEUE_H -#define MQ_PRIO_MAX 32768 +#include <linux/types.h> -typedef int mqd_t; +#define MQ_PRIO_MAX 32768 struct mq_attr { long mq_flags; /* message queue flags */ |
