]> git.karo-electronics.de Git - karo-tx-linux.git/blob - include/asm-x86_64/fcntl.h
[PATCH] Clean up the open flags
[karo-tx-linux.git] / include / asm-x86_64 / fcntl.h
1 #ifndef _X86_64_FCNTL_H
2 #define _X86_64_FCNTL_H
3
4 #define F_GETLK         5
5 #define F_SETLK         6
6 #define F_SETLKW        7
7
8 #define F_SETOWN        8       /*  for sockets. */
9 #define F_GETOWN        9       /*  for sockets. */
10 #define F_SETSIG        10      /*  for sockets. */
11 #define F_GETSIG        11      /*  for sockets. */
12
13 /* for posix fcntl() and lockf() */
14 #define F_RDLCK         0
15 #define F_WRLCK         1
16 #define F_UNLCK         2
17
18 /* for old implementation of bsd flock () */
19 #define F_EXLCK         4       /* or 3 */
20 #define F_SHLCK         8       /* or 4 */
21
22 /* for leases */
23 #define F_INPROGRESS    16
24
25 struct flock {
26         short  l_type;
27         short  l_whence;
28         off_t l_start;
29         off_t l_len;
30         pid_t  l_pid;
31 };
32
33 #include <asm-generic/fcntl.h>
34
35 #endif /* !_X86_64_FCNTL_H */