aboutsummaryrefslogtreecommitdiffstats
path: root/include/asm-mips
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2005-09-06 18:18:00 -0400
committerLinus Torvalds <torvalds@g5.osdl.org>2005-09-07 19:57:38 -0400
commit5ac353f9baf7169298ebb7de86b2d697b25bca44 (patch)
tree2591e241e07c96d19db85d418ff6623ec394f984 /include/asm-mips
parent1abf62afb6e9cdc1b2618b69067a186b94281587 (diff)
[PATCH] Clean up struct flock definitions
This patch just gathers together all the struct flock definitions except xtensa into asm-generic/fcntl.h. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/asm-mips')
-rw-r--r--include/asm-mips/fcntl.h17
1 files changed, 4 insertions, 13 deletions
diff --git a/include/asm-mips/fcntl.h b/include/asm-mips/fcntl.h
index be971d6ac9b5..fb824bf09296 100644
--- a/include/asm-mips/fcntl.h
+++ b/include/asm-mips/fcntl.h
@@ -50,7 +50,7 @@ struct flock {
50 long l_sysid; 50 long l_sysid;
51 __kernel_pid_t l_pid; 51 __kernel_pid_t l_pid;
52 long pad[4]; 52 long pad[4];
53} flock_t; 53};
54 54
55typedef struct flock64 { 55typedef struct flock64 {
56 short l_type; 56 short l_type;
@@ -60,22 +60,13 @@ typedef struct flock64 {
60 pid_t l_pid; 60 pid_t l_pid;
61} flock64_t; 61} flock64_t;
62 62
63#else /* 64-bit definitions */
64 63
65typedef struct flock { 64#define HAVE_ARCH_STRUCT_FLOCK
66 short l_type;
67 short l_whence;
68 __kernel_off_t l_start;
69 __kernel_off_t l_len;
70 __kernel_pid_t l_pid;
71} flock_t;
72
73#ifdef __KERNEL__
74#define flock64 flock
75#endif
76 65
77#endif 66#endif
78 67
79#include <asm-generic/fcntl.h> 68#include <asm-generic/fcntl.h>
80 69
70typedef struct flock flock_t;
71
81#endif /* _ASM_FCNTL_H */ 72#endif /* _ASM_FCNTL_H */