Lines Matching full:flags

53 		  .arg.inner.flags = O_RDONLY,  in test_openat2_struct()
57 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
64 .arg.inner.flags = O_RDONLY, .size = 0, .err = -EINVAL }, in test_openat2_struct()
66 .arg.inner.flags = O_RDONLY, in test_openat2_struct()
71 .arg.inner.flags = O_RDONLY, .arg.extra1 = 0xdeadbeef, in test_openat2_struct()
74 .arg.inner.flags = O_RDONLY, .arg.extra2 = 0xfeedcafe, in test_openat2_struct()
77 .arg.inner.flags = O_RDONLY, .arg.extra3 = 0xabad1dea, in test_openat2_struct()
164 { .name = "incompatible flags (O_TMPFILE | O_PATH)", in test_openat2_flags()
165 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
166 { .name = "incompatible flags (O_TMPFILE | O_CREAT)", in test_openat2_flags()
167 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
169 /* O_PATH only permits certain other flags to be set ... */ in test_openat2_flags()
170 { .name = "compatible flags (O_PATH | O_CLOEXEC)", in test_openat2_flags()
171 .how.flags = O_PATH | O_CLOEXEC }, in test_openat2_flags()
172 { .name = "compatible flags (O_PATH | O_DIRECTORY)", in test_openat2_flags()
173 .how.flags = O_PATH | O_DIRECTORY }, in test_openat2_flags()
174 { .name = "compatible flags (O_PATH | O_NOFOLLOW)", in test_openat2_flags()
175 .how.flags = O_PATH | O_NOFOLLOW }, in test_openat2_flags()
177 { .name = "incompatible flags (O_PATH | O_RDWR)", in test_openat2_flags()
178 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
179 { .name = "incompatible flags (O_PATH | O_CREAT)", in test_openat2_flags()
180 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags()
181 { .name = "incompatible flags (O_PATH | O_EXCL)", in test_openat2_flags()
182 .how.flags = O_PATH | O_EXCL, .err = -EINVAL }, in test_openat2_flags()
183 { .name = "incompatible flags (O_PATH | O_NOCTTY)", in test_openat2_flags()
184 .how.flags = O_PATH | O_NOCTTY, .err = -EINVAL }, in test_openat2_flags()
185 { .name = "incompatible flags (O_PATH | O_DIRECT)", in test_openat2_flags()
186 .how.flags = O_PATH | O_DIRECT, .err = -EINVAL }, in test_openat2_flags()
187 { .name = "incompatible flags (O_PATH | O_LARGEFILE)", in test_openat2_flags()
188 .how.flags = O_PATH | O_LARGEFILE, .err = -EINVAL }, in test_openat2_flags()
192 .how.flags = O_RDONLY, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags()
194 .how.flags = O_PATH, .how.mode = 0600, .err = -EINVAL }, in test_openat2_flags()
196 .how.flags = O_CREAT, .how.mode = 0600 }, in test_openat2_flags()
198 .how.flags = O_TMPFILE | O_RDWR, .how.mode = 0600 }, in test_openat2_flags()
201 .how.flags = O_CREAT, in test_openat2_flags()
204 .how.flags = O_CREAT, in test_openat2_flags()
207 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
210 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
213 /* ->resolve must only contain RESOLVE_* flags. */ in test_openat2_flags()
215 .how.flags = O_RDONLY, in test_openat2_flags()
218 .how.flags = O_CREAT, in test_openat2_flags()
221 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
224 .how.flags = O_PATH, in test_openat2_flags()
243 path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : "."; in test_openat2_flags()
266 if (test->how.flags & O_CREAT) in test_openat2_flags()
268 if (!(test->how.flags & O_LARGEFILE)) in test_openat2_flags()
270 failed |= (fdflags != test->how.flags); in test_openat2_flags()
280 test->how.flags); in test_openat2_flags()