X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=include%2Fasm-mips%2Ffcntl.h;h=06c5d13faf6629f933c22c7f70cb9ceea14495dd;hb=5ce7852cdf07ab903fb1c72d0915ac492c6e07c7;hp=67b309d34c095d6909b2159c4bdc1229e8e54a35;hpb=e64ca97fd80a129e538ca42d0b12c379746b83db;p=linux-2.6 diff --git a/include/asm-mips/fcntl.h b/include/asm-mips/fcntl.h index 67b309d34c..06c5d13faf 100644 --- a/include/asm-mips/fcntl.h +++ b/include/asm-mips/fcntl.h @@ -33,18 +33,6 @@ #define F_SETLKW64 35 #endif -/* for posix fcntl() and lockf() */ -#define F_RDLCK 0 -#define F_WRLCK 1 -#define F_UNLCK 2 - -/* for old implementation of bsd flock () */ -#define F_EXLCK 4 /* or 3 */ -#define F_SHLCK 8 /* or 4 */ - -/* for leases */ -#define F_INPROGRESS 16 - /* * The flavours of struct flock. "struct flock" is the ABI compliant * variant. Finally struct flock64 is the LFS variant of struct flock. As @@ -62,32 +50,17 @@ struct flock { long l_sysid; __kernel_pid_t l_pid; long pad[4]; -} flock_t; +}; -typedef struct flock64 { - short l_type; - short l_whence; - loff_t l_start; - loff_t l_len; - pid_t l_pid; -} flock64_t; - -#else /* 64-bit definitions */ - -typedef struct flock { - short l_type; - short l_whence; - __kernel_off_t l_start; - __kernel_off_t l_len; - __kernel_pid_t l_pid; -} flock_t; - -#ifdef __KERNEL__ -#define flock64 flock -#endif +#define HAVE_ARCH_STRUCT_FLOCK #endif #include +typedef struct flock flock_t; +#ifndef __mips64 +typedef struct flock64 flock64_t; +#endif + #endif /* _ASM_FCNTL_H */