Re: 64-bit shm: abi problems

Kanoj Sarcar (kanoj@google.engr.sgi.com)
Mon, 13 Dec 1999 10:32:51 -0800 (PST)


>
> From: kanoj@google.engr.sgi.com (Kanoj Sarcar)
> Date: Mon, 13 Dec 1999 10:02:15 -0800 (PST)
>
> Coming to the shmctl(IPC_SET) problem, doesn't gcc pad out the
> structure elements on 64 bit compiles to long (8 byte) sized? For
> shmid_ds, the first field "shm_perm" fits in 2 longs, the old
> "shm_segsz" would have taken up a long too, so all elemtns from
> "shm_atime" would have had their offsets preserved. What am I
> assuming wrong here?
>
> Endianness.

How does that changes offsets from the "shm_atime" field onwards?

"shm_segsz" might be flipped, yes.

Kanoj

>
> Later,
> David S. Miller
> davem@redhat.com
>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/