Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 31 Jul 2002 09:11:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 31 Jul 2002 09:11:00 -0400 Received: from ns.suse.de ([213.95.15.193]:46855 "EHLO Cantor.suse.de") by vger.kernel.org with ESMTP id ; Wed, 31 Jul 2002 09:10:59 -0400 To: Alan Cox Cc: blp@cs.stanford.edu, linux-kernel@vger.kernel.org Subject: Re: [patch] Input cleanups for 2.5.29 [2/2] References: <87znw8anje.fsf@pfaff.Stanford.EDU> <1028122978.8510.59.camel@irongate.swansea.linux.org.uk> X-Yow: Today, THREE WINOS from DETROIT sold me a framed photo of TAB HUNTER before his MAKEOVER! From: Andreas Schwab Date: Wed, 31 Jul 2002 14:57:29 +0200 In-Reply-To: <1028122978.8510.59.camel@irongate.swansea.linux.org.uk> (Alan Cox's message of "31 Jul 2002 14:42:58 +0100") Message-ID: User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/21.3.50 (ia64-suse-linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1128 Lines: 26 Alan Cox writes: |> On Tue, 2002-07-30 at 22:55, Ben Pfaff wrote: |> > 1 The typedef name intN_t designates a signed integer type with |> > width N, no padding bits, and a two's complement |> > representation. Thus, int8_t denotes a signed integer type |> > with a width of exactly 8 bits. |> |> And arbitary alignment requirements. At least I see nothing in C99 |> saying that |> |> uint8_t foo; |> uint8_t bar; |> |> isnt allowed to give you interesting suprises If it's part of a structure, then yes. The C standard has always allowed arbitrary padding between structure members. It's an ABI issue. Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux AG, Deutschherrnstr. 15-19, D-90429 N?rnberg Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different." - 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/