Messages in this thread | | | Date | Fri, 20 Feb 2004 19:11:46 +0100 (CET) | From | Krzysztof Benedyczak <> | Subject | Re: [RFC][PATCH] 2/6 POSIX message queues |
| |
On Fri, 20 Feb 2004, Arnd Bergmann wrote:
> 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. > Yes, POSIX defines it to longs. And quess that compability issues should be handled in kernel?
Krzysztof Benedyczak - 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/
| |