From: Kay Sievers <kay.sievers@vrfy.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: udev compile problem: udevd
Date: Tue, 21 Dec 2004 01:33:24 +0000 [thread overview]
Message-ID: <1103592804.5435.78.camel@localhost.localdomain> (raw)
In-Reply-To: <41C70E8B.5030506@2wire.ch>
On Mon, 2004-12-20 at 18:29 -0500, Dave Dodge wrote:
> On Mon, Dec 20, 2004 at 09:17:39PM +0100, Kay Sievers wrote:
> > A variable sized array is not a pointer! You will get a different
> > sizeof(), which may cause problems.
>
> Beware that gcc does not conform to C99 in regards to the size of a
> structure containing a flexible array. For example:
>
> struct foo{ int i; char c; char arr[]; };
>
> gcc-3.4.2/i386 reports sizeof(struct foo) as 8 and offsetof(struct foo,arr)
> as 5; but C99 requires those values to be the same. More here:
>
> http://gcc.gnu.org/gcc-3.4/c99status.html
> http://gcc.gnu.org/ml/gcc/2002-05/msg02844.html
Interesting. Thanks for pointing this out.
Kay
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
prev parent reply other threads:[~2004-12-21 1:33 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-20 17:40 udev compile problem: udevd Thomas Strösslin
2004-12-20 20:17 ` Kay Sievers
2004-12-20 23:29 ` Dave Dodge
2004-12-21 1:33 ` Kay Sievers [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1103592804.5435.78.camel@localhost.localdomain \
--to=kay.sievers@vrfy.org \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.