2f08302fa8c6ea5a6a62f556fa20f9b08381bef1
[safe/jmp/linux-2.6] / include / asm-arm26 / fcntl.h
1 #ifndef _ARM_FCNTL_H
2 #define _ARM_FCNTL_H
3
4 /* open/fcntl - O_SYNC is only implemented on blocks devices and on files
5    located on an ext2 file system */
6 #define O_DIRECTORY      040000 /* must be a directory */
7 #define O_NOFOLLOW      0100000 /* don't follow links */
8 #define O_DIRECT        0200000 /* direct disk access hint - currently ignored */
9 #define O_LARGEFILE     0400000
10
11 #define F_GETLK64       12      /*  using 'struct flock64' */
12 #define F_SETLK64       13
13 #define F_SETLKW64      14
14
15 struct flock {
16         short l_type;
17         short l_whence;
18         off_t l_start;
19         off_t l_len;
20         pid_t l_pid;
21 };
22
23 struct flock64 {
24         short  l_type;
25         short  l_whence;
26         loff_t l_start;
27         loff_t l_len;
28         pid_t  l_pid;
29 };
30
31 #include <asm-generic/fcntl.h>
32
33 #endif