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 <[email protected]> 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! - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
- Follow-Ups:
- Re: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
- From: Kyle Moffett <[email protected]>
- Re: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
- References:
- Re: State of userland headers
- From: Kyle Moffett <[email protected]>
- Re: State of userland headers
- From: Rob Landley <[email protected]>
- Re: State of userland headers
- From: Kyle Moffett <[email protected]>
- [RFC][PATCH 0/2] KABI example conversion and cleanup
- From: Kyle Moffett <[email protected]>
- [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
- From: Kyle Moffett <[email protected]>
- Re: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
- From: Arjan van de Ven <[email protected]>
- Re: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
- From: Kyle Moffett <[email protected]>
- Re: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
- From: Martin Mares <[email protected]>
- Re: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
- From: Kyle Moffett <[email protected]>
- Re: State of userland headers
- Prev by Date: Re: Papouch USB thermometer support
- Next by Date: Re: smp_locks reference_discarded errors
- Previous by thread: Re: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
- Next by thread: Re: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure
- Index(es):