]> git.karo-electronics.de Git - karo-tx-linux.git/blob - include/asm-arm/fcntl.h
[PATCH] Clean up the fcntl operations
[karo-tx-linux.git] / include / asm-arm / fcntl.h
1 #ifndef _ARM_FCNTL_H
2 #define _ARM_FCNTL_H
3
4 #define O_DIRECTORY      040000 /* must be a directory */
5 #define O_NOFOLLOW      0100000 /* don't follow links */
6 #define O_DIRECT        0200000 /* direct disk access hint - currently ignored */
7 #define O_LARGEFILE     0400000
8
9 #define F_GETLK64       12      /*  using 'struct flock64' */
10 #define F_SETLK64       13
11 #define F_SETLKW64      14
12
13 struct flock {
14         short l_type;
15         short l_whence;
16         off_t l_start;
17         off_t l_len;
18         pid_t l_pid;
19 };
20
21 struct flock64 {
22         short  l_type;
23         short  l_whence;
24         loff_t l_start;
25         loff_t l_len;
26         pid_t  l_pid;
27 };
28
29 #include <asm-generic/fcntl.h>
30
31 #endif