]> nv-tegra.nvidia Code Review - linux-2.6.git/blob - include/asm-arm26/fcntl.h
[PATCH] Clean up the open flags
[linux-2.6.git] / 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_GETLK         5
12 #define F_SETLK         6
13 #define F_SETLKW        7
14
15 #define F_SETOWN        8       /*  for sockets. */
16 #define F_GETOWN        9       /*  for sockets. */
17 #define F_SETSIG        10      /*  for sockets. */
18 #define F_GETSIG        11      /*  for sockets. */
19
20 #define F_GETLK64       12      /*  using 'struct flock64' */
21 #define F_SETLK64       13
22 #define F_SETLKW64      14
23
24 /* for posix fcntl() and lockf() */
25 #define F_RDLCK         0
26 #define F_WRLCK         1
27 #define F_UNLCK         2
28
29 /* for old implementation of bsd flock () */
30 #define F_EXLCK         4       /* or 3 */
31 #define F_SHLCK         8       /* or 4 */
32
33 /* for leases */
34 #define F_INPROGRESS    16
35
36 struct flock {
37         short l_type;
38         short l_whence;
39         off_t l_start;
40         off_t l_len;
41         pid_t l_pid;
42 };
43
44 struct flock64 {
45         short  l_type;
46         short  l_whence;
47         loff_t l_start;
48         loff_t l_len;
49         pid_t  l_pid;
50 };
51
52 #include <asm-generic/fcntl.h>
53
54 #endif