Messages in this thread | | | From | Arnd Bergmann <> | Subject | Re: [RFC][PATCH] 2/6 POSIX message queues | Date | Fri, 20 Feb 2004 14:55:25 +0100 |
| |
Krzysztof Benedyczak wrote:
> + > +struct mq_attr { > + long mq_flags; /* message queue flags */ > + long mq_maxmsg; /* maximum number of messages */ > + long mq_msgsize; /* maximum message size */ > + long mq_curmsgs; /* number of messages currently queued */ > +}; > +
Does POSIX mandate that these have to be 'long'? If you can change them all to any of 'int', '__s32' or '__s64', the handlers for 32 bit system call emulation on 64 bit machines will get a lot simpler because the 32 bit user structures are then identical to the 64 bit ones.
Arnd <><
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |