Re: BUG/PATCH: include/asm-*/fcntl.h

From: Andrea Arcangeli (andrea@suse.de)
Date: Sat Aug 26 2000 - 13:46:10 EST


On Sat, 26 Aug 2000, Albert D. Cahalan wrote:

>Your struct likely looks like this on some systems:
>
>2 bytes l_type
>2 bytes l_whence
>4 bytes COMPILER GENERATED CRAP <-- Eeew, gross.
>8 bytes l_start
>8 bytes l_len
>4 bytes l_pid

The new flock64 structure is defined per-architecture. 64bit systems
doesn't need flock64 (even the ones that supports 32bit legacy userspace)
so the flock64 structure should never suffer from the above issue.

The not explicit padding you point out above is just happening all the
time in the 64bit platforms with the default `struct flock`.

Andrea

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



This archive was generated by hypermail 2b29 : Thu Aug 31 2000 - 21:00:18 EST