]>
Commit | Line | Data |
---|---|---|
e2aad565 JR |
1 | --- dietlibc-0.32/include/fcntl.h~ 2008-02-19 01:28:13.000000000 +0100 |
2 | +++ dietlibc-0.32/include/fcntl.h 2010-09-24 19:03:54.093375051 +0200 | |
3 | @@ -52,6 +52,10 @@ | |
4 | #define F_SETLK64 13 | |
5 | #define F_SETLKW64 14 | |
6 | ||
7 | +#define F_SETLEASE 1024 /* Set a lease. */ | |
8 | +#define F_GETLEASE 1025 /* Enquire what lease is active. */ | |
9 | +#define F_NOTIFY 1026 /* Request notfications on a directory. */ | |
10 | + | |
11 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ | |
12 | ||
13 | /* for posix fcntl() and lockf() */ | |
14 | @@ -78,6 +82,15 @@ | |
15 | #define LOCK_WRITE 128 /* ... Which allows concurrent write operations */ | |
16 | #define LOCK_RW 192 /* ... Which allows concurrent read & write ops */ | |
17 | ||
18 | +/* Types of directory notifications that may be requested with F_NOTIFY. */ | |
19 | +#define DN_ACCESS 0x00000001 /* File accessed. */ | |
20 | +#define DN_MODIFY 0x00000002 /* File modified. */ | |
21 | +#define DN_CREATE 0x00000004 /* File created. */ | |
22 | +#define DN_DELETE 0x00000008 /* File removed. */ | |
23 | +#define DN_RENAME 0x00000010 /* File renamed. */ | |
24 | +#define DN_ATTRIB 0x00000020 /* File changed attibutes. */ | |
25 | +#define DN_MULTISHOT 0x80000000 /* Don't remove notifier. */ | |
26 | + | |
27 | struct flock { | |
28 | int16_t l_type; | |
29 | int16_t l_whence; | |
30 | @@ -132,6 +145,10 @@ | |
31 | #define F_SETSIG 10 /* for sockets. */ | |
32 | #define F_GETSIG 11 /* for sockets. */ | |
33 | ||
34 | +#define F_SETLEASE 1024 /* Set a lease. */ | |
35 | +#define F_GETLEASE 1025 /* Enquire what lease is active. */ | |
36 | +#define F_NOTIFY 1026 /* Request notfications on a directory. */ | |
37 | + | |
38 | /* for F_[GET|SET]FL */ | |
39 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ | |
40 | ||
41 | @@ -157,6 +174,15 @@ | |
42 | #define LOCK_WRITE 128 /* ... Which allows concurrent write operations */ | |
43 | #define LOCK_RW 192 /* ... Which allows concurrent read & write ops */ | |
44 | ||
45 | +/* Types of directory notifications that may be requested with F_NOTIFY. */ | |
46 | +#define DN_ACCESS 0x00000001 /* File accessed. */ | |
47 | +#define DN_MODIFY 0x00000002 /* File modified. */ | |
48 | +#define DN_CREATE 0x00000004 /* File created. */ | |
49 | +#define DN_DELETE 0x00000008 /* File removed. */ | |
50 | +#define DN_RENAME 0x00000010 /* File renamed. */ | |
51 | +#define DN_ATTRIB 0x00000020 /* File changed attibutes. */ | |
52 | +#define DN_MULTISHOT 0x80000000 /* Don't remove notifier. */ | |
53 | + | |
54 | struct flock { | |
55 | int16_t l_type; | |
56 | int16_t l_whence; | |
57 | @@ -209,6 +235,10 @@ | |
58 | #define F_SETLKW64 35 | |
59 | #endif | |
60 | ||
61 | +#define F_SETLEASE 1024 /* Set a lease. */ | |
62 | +#define F_GETLEASE 1025 /* Enquire what lease is active. */ | |
63 | +#define F_NOTIFY 1026 /* Request notfications on a directory. */ | |
64 | + | |
65 | /* for F_[GET|SET]FL */ | |
66 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ | |
67 | ||
68 | @@ -236,6 +266,15 @@ | |
69 | #define LOCK_WRITE 128 /* ... Which allows concurrent write operations */ | |
70 | #define LOCK_RW 192 /* ... Which allows concurrent read & write ops */ | |
71 | ||
72 | +/* Types of directory notifications that may be requested with F_NOTIFY. */ | |
73 | +#define DN_ACCESS 0x00000001 /* File accessed. */ | |
74 | +#define DN_MODIFY 0x00000002 /* File modified. */ | |
75 | +#define DN_CREATE 0x00000004 /* File created. */ | |
76 | +#define DN_DELETE 0x00000008 /* File removed. */ | |
77 | +#define DN_RENAME 0x00000010 /* File renamed. */ | |
78 | +#define DN_ATTRIB 0x00000020 /* File changed attibutes. */ | |
79 | +#define DN_MULTISHOT 0x80000000 /* Don't remove notifier. */ | |
80 | + | |
81 | #ifndef __mips64__ | |
82 | struct flock { | |
83 | int16_t l_type; | |
84 | @@ -304,6 +343,10 @@ | |
85 | #define F_SETLK64 13 | |
86 | #define F_SETLKW64 14 | |
87 | ||
88 | +#define F_SETLEASE 1024 /* Set a lease. */ | |
89 | +#define F_GETLEASE 1025 /* Enquire what lease is active. */ | |
90 | +#define F_NOTIFY 1026 /* Request notfications on a directory. */ | |
91 | + | |
92 | /* for F_[GET|SET]FL */ | |
93 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ | |
94 | ||
95 | @@ -331,6 +374,15 @@ | |
96 | #define LOCK_WRITE 128 /* ... Which allows concurrent write operations */ | |
97 | #define LOCK_RW 192 /* ... Which allows concurrent read & write ops */ | |
98 | ||
99 | +/* Types of directory notifications that may be requested with F_NOTIFY. */ | |
100 | +#define DN_ACCESS 0x00000001 /* File accessed. */ | |
101 | +#define DN_MODIFY 0x00000002 /* File modified. */ | |
102 | +#define DN_CREATE 0x00000004 /* File created. */ | |
103 | +#define DN_DELETE 0x00000008 /* File removed. */ | |
104 | +#define DN_RENAME 0x00000010 /* File renamed. */ | |
105 | +#define DN_ATTRIB 0x00000020 /* File changed attibutes. */ | |
106 | +#define DN_MULTISHOT 0x80000000 /* Don't remove notifier. */ | |
107 | + | |
108 | struct flock { | |
109 | int16_t l_type; | |
110 | int16_t l_whence; | |
111 | @@ -394,6 +446,10 @@ | |
112 | #define F_SETLK64 13 | |
113 | #define F_SETLKW64 14 | |
114 | ||
115 | +#define F_SETLEASE 1024 /* Set a lease. */ | |
116 | +#define F_GETLEASE 1025 /* Enquire what lease is active. */ | |
117 | +#define F_NOTIFY 1026 /* Request notfications on a directory. */ | |
118 | + | |
119 | /* for F_[GET|SET]FL */ | |
120 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ | |
121 | ||
122 | @@ -421,6 +477,15 @@ | |
123 | #define LOCK_WRITE 128 /* ... Which allows concurrent write operations */ | |
124 | #define LOCK_RW 192 /* ... Which allows concurrent read & write ops */ | |
125 | ||
126 | +/* Types of directory notifications that may be requested with F_NOTIFY. */ | |
127 | +#define DN_ACCESS 0x00000001 /* File accessed. */ | |
128 | +#define DN_MODIFY 0x00000002 /* File modified. */ | |
129 | +#define DN_CREATE 0x00000004 /* File created. */ | |
130 | +#define DN_DELETE 0x00000008 /* File removed. */ | |
131 | +#define DN_RENAME 0x00000010 /* File renamed. */ | |
132 | +#define DN_ATTRIB 0x00000020 /* File changed attibutes. */ | |
133 | +#define DN_MULTISHOT 0x80000000 /* Don't remove notifier. */ | |
134 | + | |
135 | struct flock { | |
136 | int16_t l_type; | |
137 | int16_t l_whence; | |
138 | @@ -478,6 +543,10 @@ | |
139 | #define F_SETLK64 13 | |
140 | #define F_SETLKW64 14 | |
141 | ||
142 | +#define F_SETLEASE 1024 /* Set a lease. */ | |
143 | +#define F_GETLEASE 1025 /* Enquire what lease is active. */ | |
144 | +#define F_NOTIFY 1026 /* Request notfications on a directory. */ | |
145 | + | |
146 | /* for F_[GET|SET]FL */ | |
147 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ | |
148 | ||
149 | @@ -505,6 +574,15 @@ | |
150 | #define LOCK_WRITE 128 /* ... Which allows concurrent write operations */ | |
151 | #define LOCK_RW 192 /* ... Which allows concurrent read & write ops */ | |
152 | ||
153 | +/* Types of directory notifications that may be requested with F_NOTIFY. */ | |
154 | +#define DN_ACCESS 0x00000001 /* File accessed. */ | |
155 | +#define DN_MODIFY 0x00000002 /* File modified. */ | |
156 | +#define DN_CREATE 0x00000004 /* File created. */ | |
157 | +#define DN_DELETE 0x00000008 /* File removed. */ | |
158 | +#define DN_RENAME 0x00000010 /* File renamed. */ | |
159 | +#define DN_ATTRIB 0x00000020 /* File changed attibutes. */ | |
160 | +#define DN_MULTISHOT 0x80000000 /* Don't remove notifier. */ | |
161 | + | |
162 | struct flock { | |
163 | int16_t l_type; | |
164 | int16_t l_whence; | |
165 | @@ -567,6 +645,10 @@ | |
166 | #define F_SETSIG 13 /* for sockets. */ | |
167 | #define F_GETSIG 14 /* for sockets. */ | |
168 | ||
169 | +#define F_SETLEASE 1024 /* Set a lease. */ | |
170 | +#define F_GETLEASE 1025 /* Enquire what lease is active. */ | |
171 | +#define F_NOTIFY 1026 /* Request notfications on a directory. */ | |
172 | + | |
173 | #define FD_CLOEXEC 1 /* actually anything with low bit set goes */ | |
174 | ||
175 | #define F_RDLCK 1 /* Read lock. */ | |
176 | @@ -590,6 +672,15 @@ | |
177 | #define LOCK_WRITE 128 /* ... Which allows concurrent write operations */ | |
178 | #define LOCK_RW 192 /* ... Which allows concurrent read & write ops */ | |
179 | ||
180 | +/* Types of directory notifications that may be requested with F_NOTIFY. */ | |
181 | +#define DN_ACCESS 0x00000001 /* File accessed. */ | |
182 | +#define DN_MODIFY 0x00000002 /* File modified. */ | |
183 | +#define DN_CREATE 0x00000004 /* File created. */ | |
184 | +#define DN_DELETE 0x00000008 /* File removed. */ | |
185 | +#define DN_RENAME 0x00000010 /* File renamed. */ | |
186 | +#define DN_ATTRIB 0x00000020 /* File changed attibutes. */ | |
187 | +#define DN_MULTISHOT 0x80000000 /* Don't remove notifier. */ | |
188 | + | |
189 | ||
190 | struct flock | |
191 | { |