Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751320AbWCZPjF (ORCPT ); Sun, 26 Mar 2006 10:39:05 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751331AbWCZPjF (ORCPT ); Sun, 26 Mar 2006 10:39:05 -0500 Received: from albireo.ucw.cz ([84.242.65.108]:50311 "EHLO albireo.ucw.cz") by vger.kernel.org with ESMTP id S1751320AbWCZPjE (ORCPT ); Sun, 26 Mar 2006 10:39:04 -0500 Date: Sun, 26 Mar 2006 17:38:59 +0200 From: Martin Mares To: Kyle Moffett Cc: Arjan van de Ven , linux-kernel@vger.kernel.org, nix@esperi.org.uk, rob@landley.net, mmazur@kernel.pl, llh-discuss@lists.pld-linux.org Subject: Re: [RFC][PATCH 1/2] Create initial kernel ABI header infrastructure Message-ID: References: <200603241623.49861.rob@landley.net> <878xqzpl8g.fsf@hades.wkstn.nix> <20060326065205.d691539c.mrmacman_g4@mac.com> <20060326065416.93d5ce68.mrmacman_g4@mac.com> <1143376351.3064.9.camel@laptopd505.fenrus.org> <50ACA1D0-C376-491A-A927-872B04964663@mac.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50ACA1D0-C376-491A-A927-872B04964663@mac.com> User-Agent: Mutt/1.5.9i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 905 Lines: 26 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 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 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/