Lines Matching refs:how

159 	struct open_how how;  member
170 .how.flags = O_TMPFILE | O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
172 .how.flags = O_TMPFILE | O_CREAT | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
176 .how.flags = O_PATH | O_CLOEXEC }, in test_openat2_flags()
178 .how.flags = O_PATH | O_DIRECTORY }, in test_openat2_flags()
180 .how.flags = O_PATH | O_NOFOLLOW }, in test_openat2_flags()
183 .how.flags = O_PATH | O_RDWR, .err = -EINVAL }, in test_openat2_flags()
185 .how.flags = O_PATH | O_CREAT, .err = -EINVAL }, in test_openat2_flags()
187 .how.flags = O_PATH | O_EXCL, .err = -EINVAL }, in test_openat2_flags()
189 .how.flags = O_PATH | O_NOCTTY, .err = -EINVAL }, in test_openat2_flags()
191 .how.flags = O_PATH | O_DIRECT, .err = -EINVAL }, 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()
207 .how.mode = 0xFFFF, .err = -EINVAL }, in test_openat2_flags()
209 .how.flags = O_CREAT, in test_openat2_flags()
210 .how.mode = 0xC000000000000000ULL, .err = -EINVAL }, in test_openat2_flags()
212 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
213 .how.mode = 0x1337, .err = -EINVAL }, in test_openat2_flags()
215 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
216 .how.mode = 0x0000A00000000000ULL, .err = -EINVAL }, in test_openat2_flags()
220 .how.flags = O_RDONLY, in test_openat2_flags()
221 .how.resolve = RESOLVE_BENEATH | RESOLVE_IN_ROOT, in test_openat2_flags()
226 .how.flags = O_RDONLY, in test_openat2_flags()
227 .how.resolve = 0x1337, .err = -EINVAL }, in test_openat2_flags()
229 .how.flags = O_CREAT, in test_openat2_flags()
230 .how.resolve = 0x1337, .err = -EINVAL }, in test_openat2_flags()
232 .how.flags = O_TMPFILE | O_RDWR, in test_openat2_flags()
233 .how.resolve = 0x1337, .err = -EINVAL }, in test_openat2_flags()
235 .how.flags = O_PATH, in test_openat2_flags()
236 .how.resolve = 0x1337, .err = -EINVAL }, in test_openat2_flags()
240 .how.flags = O_RDONLY | (1ULL << 63), in test_openat2_flags()
241 .how.resolve = 0, .err = -EINVAL }, in test_openat2_flags()
259 path = (test->how.flags & O_CREAT) ? "/tmp/ksft.openat2_tmpfile" : "."; in test_openat2_flags()
262 fd = sys_openat2(AT_FDCWD, path, &test->how); 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()