lkml.org 
[lkml]   [2006]   [Jun]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [klibc] [klibc 28/43] mips support for klibc
Ralf Baechle wrote:
> On Sun, Jun 25, 2006 at 05:58:05PM -0700, H. Peter Anvin wrote:
>
>> +typedef struct flock {
>> + short l_type;
>> + short l_whence;
>> + loff_t l_start;
>> + loff_t l_len;
>> + pid_t l_pid;
>> +} flock_t;
>
> 32-bit MIPS uses this:
>
> struct flock {
> short l_type;
> short l_whence;
> off_t l_start;
> off_t l_len;
> long l_sysid;
> __kernel_pid_t l_pid;
> long pad[4];
> };

Does it use that for F_GETLK64 and friends? klibc overrides the
definitions so that F_GETLK is really F_GETLK64 etc; thus, "struct
flock" in klibc userspace is really "struct flock64". (To put it
differently, klibc is always large-file compliant.)

As far as I can tell, MIPS uses the generic definition for struct
flock64, which is the one I have above, so it should be correct.

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

\
 
 \ /
  Last update: 2006-06-27 17:35    [W:0.043 / U:0.068 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site