Lines Matching full:flags

58 		  .arg.inner.flags = O_RDONLY,  in test_openat2_struct()
62 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
69 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, in test_openat2_struct()
71 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
76 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, in test_openat2_struct()
79 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, in test_openat2_struct()
82 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, in test_openat2_struct()
169 { .name = "incompatible flags (O_TMPFILE | O_PATH)", in test_openat2_flags()
170 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
171 { .name = "incompatible flags (O_TMPFILE | O_CREAT)", in test_openat2_flags()
172 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
174 /* O_PATH only permits certain other flags to be set ... */ in test_openat2_flags()
175 { .name = "compatible flags (O_PATH | O_CLOEXEC)", in test_openat2_flags()
176 .how.flags = O_PATH | O_CLOEXEC }, in test_openat2_flags()
177 { .name = "compatible flags (O_PATH | O_DIRECTORY)", in test_openat2_flags()
178 .how.flags = O_PATH | O_DIRECTORY }, in test_openat2_flags()
179 { .name = "compatible flags (O_PATH | O_NOFOLLOW)", in test_openat2_flags()
180 .how.flags = O_PATH | O_NOFOLLOW }, in test_openat2_flags()
182 { .name = "incompatible flags (O_PATH | O_RDWR)", in test_openat2_flags()
183 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
184 { .name = "incompatible flags (O_PATH | O_CREAT)", in test_openat2_flags()
185 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags()
186 { .name = "incompatible flags (O_PATH | O_EXCL)", in test_openat2_flags()
187 .how.flags = O_PATH | O_EXCL, .err = -EINVAL }, in test_openat2_flags()
188 { .name = "incompatible flags (O_PATH | O_NOCTTY)", in test_openat2_flags()
189 .how.flags = O_PATH | O_NOCTTY, .err = -EINVAL }, in test_openat2_flags()
190 { .name = "incompatible flags (O_PATH | O_DIRECT)", in test_openat2_flags()
191 .how.flags = O_PATH | O_DIRECT, .err = -EINVAL }, in test_openat2_flags()
192 { .name = "incompatible flags (O_PATH | O_LARGEFILE)", in test_openat2_flags()
193 .how.flags = O_PATH | O_LARGEFILE, .err = -EINVAL }, in test_openat2_flags()
197 .how.flags = O_RDONLY, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags()
199 .how.flags = O_PATH, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags()
201 .how.flags = O_CREAT, .how.mode = 0600 }, in test_openat2_flags()
203 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in test_openat2_flags()
206 .how.flags = O_CREAT, in test_openat2_flags()
209 .how.flags = O_CREAT, in test_openat2_flags()
212 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
215 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
218 /* ->resolve flags must not conflict. */ in test_openat2_flags()
219 { .name = "incompatible resolve flags (BENEATH | IN_ROOT)", in test_openat2_flags()
220 .how.flags = O_RDONLY, in test_openat2_flags()
224 /* ->resolve must only contain RESOLVE_* flags. */ in test_openat2_flags()
226 .how.flags = O_RDONLY, in test_openat2_flags()
229 .how.flags = O_CREAT, in test_openat2_flags()
232 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
235 .how.flags = O_PATH, in test_openat2_flags()
240 .how.flags = O_RDONLY | (1ULL << 63), in test_openat2_flags()
259 path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : "."; in test_openat2_flags()
292 if (test->how.flags & O_CREAT) in test_openat2_flags()
294 if (!(test->how.flags & O_LARGEFILE)) in test_openat2_flags()
296 failed |= (fdflags != test->how.flags); in test_openat2_flags()
306 test->how.flags); in test_openat2_flags()