Messages in this thread | | | Date | Thu, 19 Feb 2004 20:44:17 +0100 | From | Manfred Spraul <> | Subject | Re: [RFC][PATCH] 2/6 POSIX message queues |
| |
Sam Ravnborg wrote:
>Maybe something like: >mqueue.h for kernel-only >mqueue_abi.h for kernel+user > > I don't think that this is necessary. Everything in <linux/> is kernel only. user space should copy the headers and remove the kernel only parts. kernel+user files mean that it's not possible rename structures or move them around. Perhaps someone wants to move all 16-bit uid structures into a <linux/compat/> directly - shared headers make that impossible.
I agree that the placement of the #ifdef is a bit arbitrary - it's a hint that the structures outside are visible to user space and must remain unchanged.
Christoph: I'm sure there will be users that must call the message queue functions directly from C code. E.g. the 32-bit emulation layers on 64/32 bit archs. And they need the prototypes.
-- Manfred
- 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/
| |