[RFC][PATCH 1/2] Create initial kernel ABI header infrastructure

Martin Mares mj at ucw.cz
Sun Mar 26 17:38:59 CEST 2006


Hello!

> 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;"

Actually, something like that can be achieved using anonymous structure
members:

struct xxx {
	struct yyy;
};

However, I'm not sure how old versions of GCC support this feature.

				Have a nice fortnight
-- 
Martin `MJ' Mares   <mj at ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
And God said: E = 1/2mv^2 - Ze^2/r ...and there *WAS* light!


More information about the llh-discuss mailing list