lkml.org 
[lkml]   [2000]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: BUG/PATCH: include/asm-*/fcntl.h
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/

\
 
 \ /
  Last update: 2005-03-22 12:38    [W:0.060 / U:0.064 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site