Re: [klibc] [klibc 28/43] mips support for klibc

From: H. Peter Anvin
Date: Tue Jun 27 2006 - 11:30:58 EST


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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/