X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=include%2Fasm-generic%2Ffcntl.h;h=c154b9d6e7e51a8593d06b0d6e3104aa7008e5d4;hb=9bb25bf36f0d7b06368432e2324dbbc2e98b5e60;hp=b001d7fe03848e1560da0dd5a75951b4d9f61832;hpb=5ac353f9baf7169298ebb7de86b2d697b25bca44;p=powerpc.git diff --git a/include/asm-generic/fcntl.h b/include/asm-generic/fcntl.h index b001d7fe03..c154b9d6e7 100644 --- a/include/asm-generic/fcntl.h +++ b/include/asm-generic/fcntl.h @@ -121,4 +121,28 @@ struct flock { }; #endif +#ifndef CONFIG_64BIT + +#ifndef F_GETLK64 +#define F_GETLK64 12 /* using 'struct flock64' */ +#define F_SETLK64 13 +#define F_SETLKW64 14 +#endif + +#ifndef HAVE_ARCH_STRUCT_FLOCK64 +#ifndef __ARCH_FLOCK64_PAD +#define __ARCH_FLOCK64_PAD +#endif + +struct flock64 { + short l_type; + short l_whence; + loff_t l_start; + loff_t l_len; + pid_t l_pid; + __ARCH_FLOCK64_PAD +}; +#endif +#endif /* !CONFIG_64BIT */ + #endif /* _ASM_GENERIC_FCNTL_H */