[lkml]   [2006]   [Mar]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
On Mar 26, 2006, at 07:59:26, Martin Mares wrote:
> Hello!
>> As a result, I kinda want to stay away from anything that remotely
>> looks like a conflicting namespace. Using such a unique namespace
>> means we can also safely do this if necessary (Since you can't
>> "typedef struct foo struct bar"):
>> kabi/foo.h:
>> struct __kabi_foo {
>> int x;
>> int y;
>> };
>> linux/foo.h:
>> #define __kabi_foo foo
>> #include <kabi/foo.h>
> This looks very fragile -- <kabi/foo.h> can be included earlier by
> another header.

It _is_ fragile, but for a number of POSIX-defined structs that's
actually the only way to do it without duplicating the data structure
in entirety, unless the GCC people can implement a "typedef struct
foo struct bar;" Hopefully it would be a relatively rare occurrence
and carefully thought out in any case. We may end up with some
duplication regardless :-\.

Kyle Moffett

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to
More majordomo info at
Please read the FAQ at

 \ /
  Last update: 2006-03-26 15:17    [W:0.109 / U:2.524 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site