lkml.org 
[lkml]   [2004]   [Feb]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [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/

\
 
 \ /
  Last update: 2005-03-22 14:01    [W:0.051 / U:0.128 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site