From: Jesper Skov <jskov@redhat.com>
To: ecos-discuss@sourceware.cygnus.com
Subject: Re: [ECOS] RedBoot sending incorrect TCP window size
Date: Fri, 09 Feb 2001 06:00:00 -0000 [thread overview]
Message-ID: <ww4itmkvuix.fsf@host176.cambridge.redhat.com> (raw)
In-Reply-To: <200102091340.f19De5J22761@sheesh.cambridge.redhat.com>
>>>>> "Bart" == Bart Veer <bartv@redhat.com> writes:
Bart> Possibly there should be a gcc extension __packed_sizeof(),
Bart> returning a number that excludes external padding. This would
Bart> not be a complete solution: people would still use sizeof() in a
Bart> non-portable fashion. However it might make it easier to write
Bart> portable code.
IIRC GCC treats one-off struct variables different from arrays of the
same struct. So you may have something like:
typedef struct {
int foo;
char bar;
} __attribute__ ((packed)) icky;
icky a;
icky b[10];
sizeof(a) == 5
sizeof(b[0]) == 8
Or something to that effect (*hand wave*)
Jesper
prev parent reply other threads:[~2001-02-09 6:00 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-08 8:47 Grant Edwards
2001-02-08 11:42 ` Grant Edwards
2001-02-08 12:15 ` Donnat Eric
2001-02-08 12:54 ` Grant Edwards
2001-02-09 5:40 ` Bart Veer
2001-02-09 6:00 ` Jesper Skov [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=ww4itmkvuix.fsf@host176.cambridge.redhat.com \
--to=jskov@redhat.com \
--cc=ecos-discuss@sourceware.cygnus.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).