From: Carlos O'Donell <carlos@baldric.uwo.ca>
To: parisc-linux@lists.parisc-linux.org
Subject: Re: [parisc-linux] semid64_ds compiled on a 32-bit system has wrong expected size for sem_ctime
Date: Mon, 26 Jan 2004 15:34:30 -0500 [thread overview]
Message-ID: <20040126203429.GJ5351@baldric.uwo.ca> (raw)
In-Reply-To: <20040126194400.GI5351@baldric.uwo.ca>
On Mon, Jan 26, 2004 at 02:44:00PM -0500, Carlos O'Donell wrote:
> > struct semid64_ds {
> > struct ipc64_perm sem_perm; /* permissions .. see ipc.h */
> > #ifndef __LP64__
> > unsigned int __pad1;
> > #endif
> > __kernel_time_t sem_otime; /* last semop time */
> > #ifndef __LP64__
> > unsigned int __pad2;
> > #endif
> > __kernel_time_t sem_ctime; /* last change time */
> > unsigned int sem_nsems; /* no. of semaphores in array */
> > unsigned int __unused1;
> > unsigned int __unused2;
> > };
>
> Our 32-bit userspace will see different values for this depending on
> running a 32-bit kernel or 64-bit. That last sem_ctime should probably
> have a padding so our 32-bit userspace sees the right thing all the
> time.
Sorry, I got confused with sem_perm, __pad2 is the padding for ctime,
thanks for pointing that out Matthew. Changing the base posix type for
32-bit builds to "long" fixes all the compiler complaints.
False alarm :)
c.
prev parent reply other threads:[~2004-01-26 20:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-01-26 19:27 [parisc-linux] semid64_ds compiled on a 32-bit system has wrong expected size for sem_ctime Carlos O'Donell
2004-01-26 19:44 ` Carlos O'Donell
2004-01-26 20:34 ` Carlos O'Donell [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=20040126203429.GJ5351@baldric.uwo.ca \
--to=carlos@baldric.uwo.ca \
--cc=parisc-linux@lists.parisc-linux.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.