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
I just wrote:
> > Albert D. Calahan writes:
[ alignment problems with struct flock64 ]
> >
> I didn't invent the definition for struct flock64.
> The definition is in the test7-patch, and it's identical in
> include/asm-i386/fcntl.h and in include/asm-sparc/fcntl.h

And in include/asm-sparc64/fcntl.h, we have

struct flock {
short l_type;
short l_whence;
off_t l_start;
off_t l_len;
pid_t l_pid;
short __unused;
};
...
#ifdef __KERNEL__
#define flock64 flock
#endif
This definition for flock64 was also introduced in the test7-patch.
I reused it for the ia64-architecture fcntl.h in my patch.
On a 64 bit plattform there most probably are alignment problems with the
struct.

Bernd

--
- Bernd Kischnick

email kisch@mindless.com tel +49-(0)511-18375

Sent through GMX FreeMail - http://www.gmx.net

-
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    [from the cache]
©2003-2011 Jasper Spaans