1
2 #ifndef _UAPI_LINUX_FCNTL_H
3 #define _UAPI_LINUX_FCNTL_H
4
5 #include <asm/fcntl.h>
6
7 #define F_SETLEASE (F_LINUX_SPECIFIC_BASE + 0)
8 #define F_GETLEASE (F_LINUX_SPECIFIC_BASE + 1)
9
10
11
12
13
14 #define F_CANCELLK (F_LINUX_SPECIFIC_BASE + 5)
15
16
17 #define F_DUPFD_CLOEXEC (F_LINUX_SPECIFIC_BASE + 6)
18
19
20
21
22
23 #define F_NOTIFY (F_LINUX_SPECIFIC_BASE+2)
24
25
26
27
28 #define F_SETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 7)
29 #define F_GETPIPE_SZ (F_LINUX_SPECIFIC_BASE + 8)
30
31
32
33
34 #define F_ADD_SEALS (F_LINUX_SPECIFIC_BASE + 9)
35 #define F_GET_SEALS (F_LINUX_SPECIFIC_BASE + 10)
36
37
38
39
40 #define F_SEAL_SEAL 0x0001
41 #define F_SEAL_SHRINK 0x0002
42 #define F_SEAL_GROW 0x0004
43 #define F_SEAL_WRITE 0x0008
44 #define F_SEAL_FUTURE_WRITE 0x0010
45
46
47
48
49
50
51
52 #define F_GET_RW_HINT (F_LINUX_SPECIFIC_BASE + 11)
53 #define F_SET_RW_HINT (F_LINUX_SPECIFIC_BASE + 12)
54 #define F_GET_FILE_RW_HINT (F_LINUX_SPECIFIC_BASE + 13)
55 #define F_SET_FILE_RW_HINT (F_LINUX_SPECIFIC_BASE + 14)
56
57
58
59
60
61 #define RWF_WRITE_LIFE_NOT_SET 0
62 #define RWH_WRITE_LIFE_NONE 1
63 #define RWH_WRITE_LIFE_SHORT 2
64 #define RWH_WRITE_LIFE_MEDIUM 3
65 #define RWH_WRITE_LIFE_LONG 4
66 #define RWH_WRITE_LIFE_EXTREME 5
67
68
69
70
71 #define DN_ACCESS 0x00000001
72 #define DN_MODIFY 0x00000002
73 #define DN_CREATE 0x00000004
74 #define DN_DELETE 0x00000008
75 #define DN_RENAME 0x00000010
76 #define DN_ATTRIB 0x00000020
77 #define DN_MULTISHOT 0x80000000
78
79 #define AT_FDCWD -100
80
81
82 #define AT_SYMLINK_NOFOLLOW 0x100
83 #define AT_REMOVEDIR 0x200
84
85 #define AT_SYMLINK_FOLLOW 0x400
86 #define AT_NO_AUTOMOUNT 0x800
87 #define AT_EMPTY_PATH 0x1000
88
89 #define AT_STATX_SYNC_TYPE 0x6000
90 #define AT_STATX_SYNC_AS_STAT 0x0000
91 #define AT_STATX_FORCE_SYNC 0x2000
92 #define AT_STATX_DONT_SYNC 0x4000
93
94 #define AT_RECURSIVE 0x8000
95
96
97 #endif