]> pilppa.org Git - linux-2.6-omap-h63xx.git/blob - include/asm-ia64/fcntl.h
[PATCH] Clean up the open flags
[linux-2.6-omap-h63xx.git] / include / asm-ia64 / fcntl.h
1 #ifndef _ASM_IA64_FCNTL_H
2 #define _ASM_IA64_FCNTL_H
3 /*
4  * Modified 1998-2000
5  *      David Mosberger-Tang <davidm@hpl.hp.com>, Hewlett-Packard Co.
6  */
7
8 #define F_GETLK         5
9 #define F_SETLK         6
10 #define F_SETLKW        7
11
12 #define F_SETOWN        8       /*  for sockets. */
13 #define F_GETOWN        9       /*  for sockets. */
14 #define F_SETSIG        10      /*  for sockets. */
15 #define F_GETSIG        11      /*  for sockets. */
16
17 /* for posix fcntl() and lockf() */
18 #define F_RDLCK         0
19 #define F_WRLCK         1
20 #define F_UNLCK         2
21
22 /* for old implementation of bsd flock () */
23 #define F_EXLCK         4       /* or 3 */
24 #define F_SHLCK         8       /* or 4 */
25
26 /* for leases */
27 #define F_INPROGRESS    16
28
29 struct flock {
30         short l_type;
31         short l_whence;
32         off_t l_start;
33         off_t l_len;
34         pid_t l_pid;
35 };
36
37 #define force_o_largefile()     \
38                 (personality(current->personality) != PER_LINUX32)
39
40 #include <asm-generic/fcntl.h>
41
42 #endif /* _ASM_IA64_FCNTL_H */