Lines Matching full:open
28 * This regression test attempts to confirm that the flags used at open-time
74 * operation or that open is properly impacted by permissions, just that once
75 * a file descriptor is held, open-time limitations are implemented.
153 * Before we get started, confirm that we can't open directories writable.
161 dfd = open(directory, mode); in try_directory_open()
185 * Directories should only open with O_RDONLY. Notice that we use in check_directory_open_modes()
206 * dup() should work regardless of open mode. in check_dup()
210 fd = open(path, mode); in check_dup()
212 notok_mode(testname, "open", mode); in check_dup()
232 * dup2() should work regardless of open mode. in check_dup2()
236 fd = open(path, mode); in check_dup2()
238 notok_mode(testname, "open", mode); in check_dup2()
258 * fchdir() should work regardless of open mode. in check_fchdir()
262 fd = open(path, mode); in check_fchdir()
264 notok_mode(testname, "open", mode); in check_fchdir()
282 * fchflags() should work regardless of open mode. in check_fchflags()
286 fd = open(path, mode); in check_fchflags()
288 notok_mode(testname, "open", mode); in check_fchflags()
306 * fchmod() should work regardless of open mode. in check_fchmod()
310 fd = open(path, mode); in check_fchmod()
312 notok_mode(testname, "open", mode); in check_fchmod()
330 * fchown() should work regardless of open mode. in check_fchown()
334 fd = open(path, mode); in check_fchown()
336 notok_mode(testname, "open", mode); in check_fchown()
354 * flock() should work regardless of open mode. in check_flock()
358 fd = open(path, mode); in check_flock()
360 notok_mode(testname, "open", mode); in check_flock()
379 * fpathconf() should work regardless of open mode. in check_fpathconf()
383 fd = open(path, mode); in check_fpathconf()
385 notok_mode(testname, "open", mode); in check_fpathconf()
405 * fstat() should work regardless of open mode. in check_fstat()
409 fd = open(path, mode); in check_fstat()
411 notok_mode(testname, "open", mode); in check_fstat()
430 * fstatfs() should work regardless of open mode. in check_fstatfs()
434 fd = open(path, mode); in check_fstatfs()
436 notok_mode(testname, "open", mode); in check_fstatfs()
454 * fstatfs() should work regardless of open mode. in check_fsync()
458 fd = open(path, mode); in check_fsync()
460 notok_mode(testname, "open", mode); in check_fsync()
487 fd = open(path, mode); in check_ftruncate()
489 notok_mode(testname, "open", mode); in check_ftruncate()
591 * futimes() should work regardless of open mode. in check_futimes()
595 fd = open(path, mode); in check_futimes()
597 notok_mode(testname, "open", mode); in check_futimes()
615 * lseek() should work regardless of open mode. in check_lseek()
619 fd = open(path, mode); in check_lseek()
621 notok_mode(testname, "open", mode); in check_lseek()
645 fd = open(path, mode); in check_getdents()
647 notok_mode(testname, "open", mode); in check_getdents()
685 fd = open(path, mode); in check_sendfile()
687 notok_mode(testname, "open", mode); in check_sendfile()
783 fd = open(path, mode); in check_write()
785 notok_mode(testname, "open", mode); in check_write()
867 fd = open(path, mode); in check_read()
869 notok_mode(testname, "open", mode); in check_read()
902 fd = open(path, mode); in check_mmap_read()
904 notok_mode(testname, "open", mode); in check_mmap_read()
944 * always open O_RDONLY. Check for O_WRONLY or O_RDWR to permit a in check_mmap_write()
950 fd = open(path, mode); in check_mmap_write()
952 notok_mode(testname, "open", mode); in check_mmap_write()
990 fd = open(path, mode); in check_mmap_exec()
992 notok_mode(testname, "open", mode); in check_mmap_exec()
1032 fd = open(path, mode); in check_mmap_write_private()
1034 notok_mode(testname, "open", mode); in check_mmap_write_private()
1079 strlcpy(dir_path, "/tmp/open-dir.XXXXXXXXXXX", sizeof(dir_path)); in main()
1087 strlcpy(file_path, "/tmp/open-file.XXXXXXXXXXX", sizeof(file_path)); in main()