| /system/utest/fs/ |
| A D | test-dot-dot.c | 72 ASSERT_LT(openat(foo_fd, "..", O_RDONLY | O_DIRECTORY), 0, ""); in test_dot_dot_server() 75 ASSERT_LT(openat(foo_fd, "bar/../..", O_RDONLY | O_DIRECTORY), 0, ""); in test_dot_dot_server() 78 ASSERT_LT(openat(foo_fd, "../../../../../bar", O_RDONLY | O_DIRECTORY), 0, ""); in test_dot_dot_server() 81 ASSERT_LT(openat(foo_fd, "..", O_RDWR | O_CREAT), 0, ""); in test_dot_dot_server() 82 ASSERT_LT(openat(foo_fd, ".", O_RDWR | O_CREAT), 0, ""); in test_dot_dot_server()
|
| A D | test-minfs.cpp | 241 fbl::unique_fd fd(openat(dir_fd, path, O_CREAT | O_RDWR)); in FillDirectory() 269 fbl::unique_fd big_fd(openat(mnt_fd.get(), big_path, O_CREAT | O_RDWR)); in TestFullOperations() 272 fbl::unique_fd med_fd(openat(mnt_fd.get(), med_path, O_CREAT | O_RDWR)); in TestFullOperations() 275 fbl::unique_fd sml_fd(openat(mnt_fd.get(), sml_path, O_CREAT | O_RDWR)); in TestFullOperations() 321 big_fd.reset(openat(mnt_fd.get(), big_path, O_RDWR)); in TestFullOperations() 323 sml_fd.reset(openat(mnt_fd.get(), sml_path, O_RDWR)); in TestFullOperations() 333 fbl::unique_fd dir_fd(openat(mnt_fd.get(), dir_path, O_RDONLY)); in TestFullOperations() 372 fbl::unique_fd tmp_fd(openat(dir_fd.get(), "new_file", O_CREAT | O_RDWR)); in TestFullOperations() 386 big_fd.reset(openat(mnt_fd.get(), big_path, O_RDWR)); in TestFullOperations() 388 sml_fd.reset(openat(mnt_fd.get(), sml_path, O_RDWR)); in TestFullOperations()
|
| A D | test-rename.c | 234 int fd = openat(barfd, "filename", O_CREAT | O_RDWR | O_EXCL); in test_rename_at()
|
| /system/utest/memfs/ |
| A D | memfs-tests.cpp | 62 fd = openat(dirfd(d), filename, O_CREAT | O_RDWR); in TestMemfsBasic() 113 fbl::unique_fd fd = fbl::unique_fd(openat(dirfd(d), filename, O_CREAT | O_RDWR)); in TestMemfsLimitPages() 132 int fd_another = openat(dirfd(d), filename_another, O_CREAT | O_RDWR); in TestMemfsLimitPages() 157 fd = fbl::unique_fd(openat(dirfd(d), filename, O_CREAT | O_RDWR)); in TestMemfsLimitPages() 186 fd = openat(dirfd(d), filename, O_CREAT | O_RDWR); in TestMemfsInstall() 244 int fd = openat(dirfd(d), "foo", O_CREAT | O_RDWR); in TestMemfsCloseDuringAccess() 250 if ((fd = openat(dirfd(d), "foo", O_RDWR)) < 0) { in TestMemfsCloseDuringAccess() 269 ASSERT_LT(openat(dirfd(d), "foo", O_CREAT | O_RDWR), 0); in TestMemfsCloseDuringAccess()
|
| A D | fidl-tests.cpp | 41 fd.reset(openat(fd.get(), filename, O_CREAT | O_RDWR)); in TestFidlBasic() 77 fd.reset(openat(fd.get(), filename, O_CREAT | O_RDWR)); in TestFidlOpenReadOnly() 165 fd.reset(openat(dirfd(d), filename, O_CREAT | O_RDWR)); in TestFidlQueryFilesystem()
|
| /system/utest/vdso-variant/helper/ |
| A D | vdso-variant-helper.c | 33 int fd = openat(vdso_dir_fd, d->d_name, O_RDONLY); in vdso_open_test() 38 EXPECT_EQ(openat(vdso_dir_fd, d->d_name, O_RDWR), -1, in vdso_open_test()
|
| /system/utest/posixio/ |
| A D | main.cpp | 80 int rc = openat(fd, "", flags); in open_empty_test() 93 int rc = openat(fd, "", flags | O_CREAT, mode); in open_empty_test()
|
| A D | README.md | 14 openat(not_a_directory, "", O_RDONLY)
|
| /system/uapp/xdc-test/ |
| A D | xdc-device.cpp | 27 int fd = openat(dirfd(d), de->d_name, O_RDWR); in configure_xdc()
|
| /system/ulib/devmgr-integration-test/ |
| A D | file-wait.cpp | 34 out->reset(openat(dir.get(), file, O_RDWR)); in WaitForFile()
|
| /system/utest/fzl/ |
| A D | fdio.cpp | 30 fbl::unique_fd fd(openat(dir.get(), "my-file", O_CREAT | O_RDWR)); in fdio_call_io()
|
| /system/utest/pty/ |
| A D | pty-test.c | 74 int pc = openat(ps, "0", O_RDWR | O_NONBLOCK); in pty_test() 168 int pc1 = openat(pc, "1", O_RDWR | O_NONBLOCK); in pty_test()
|
| /system/ulib/runtests-utils/ |
| A D | fuchsia-run-test.cpp | 123 fbl::unique_fd fd(openat(state->root_dir_fd.get(), path, O_RDONLY)); in LoadObject() 133 fbl::unique_fd fd(openat(state->root_dir_fd.get(), path, O_RDONLY)); in LoadAbspath() 374 fbl::unique_fd sink_dir_fd{openat(data_sink_dir_fd.get(), data.sink_name.c_str(), in FuchsiaRunTest() 419 fbl::unique_fd fd{openat(sink_dir_fd.get(), filename, O_WRONLY | O_CREAT | O_EXCL, 0666)}; in FuchsiaRunTest()
|
| /system/core/virtcon/ |
| A D | main.cpp | 141 int fd = openat(vc->fd, "0", O_RDWR); in session_io_cb() 170 int client_fd = openat(fd, "0", O_RDWR); in session_create() 264 if ((fd = openat(input_dir_fd, name, O_RDONLY)) < 0) { in input_dir_event()
|
| /system/utest/fs-management/ |
| A D | fs-management.cpp | 323 fbl::unique_fd weak_subdir_fd(openat(weak_root_fd.get(), "subdir", O_RDONLY | O_DIRECTORY)); in UmountTestEvil() 330 weak_subdir_fd.reset(openat(weak_root_fd.get(), "subdir", O_RDONLY | O_DIRECTORY | O_ADMIN)); in UmountTestEvil() 532 fd = openat(root_fd, file_name, O_CREAT | O_RDWR); in CreateTestFile() 560 fd = openat(root_fd, file_name, O_CREAT | O_RDWR); in MountReadonly() 566 fd = openat(root_fd, file_name, O_RDONLY); in MountReadonly() 609 fd = openat(root_fd, file_name, O_CREAT | O_RDWR); in MountBlockReadonly() 613 fd = openat(root_fd, file_name, O_RDONLY); in MountBlockReadonly()
|
| /system/uapp/run-vc/ |
| A D | main.c | 47 *fd = openat(dirfd, "dmctl", O_RDWR); in open_dmctl()
|
| /system/core/devmgr/devmgr/ |
| A D | drivers.cpp | 122 if ((fd = openat(dirfd(dir), de->d_name, O_RDONLY)) < 0) { in find_loadable_drivers()
|
| /system/utest/usb/ |
| A D | usb-test.c | 69 int fd = openat(dirfd(d), de->d_name, O_RDWR); in open_test_device()
|
| /system/ulib/fs-management/ |
| A D | ram-nand.cpp | 124 fbl::unique_fd fd(openat(ctl->devfs_root().get(), path.c_str(), O_RDWR)); in Create()
|
| A D | fvm.cpp | 245 fbl::unique_fd devfd(openat(dirfd, fn, O_RDWR)); in open_partition()
|
| /system/ulib/loader-service/ |
| A D | loader-service.c | 80 fd = openat(root_dir_fd, path, O_RDONLY); in open_from_lib_paths() 108 int fd = openat(root_dir_fd, path, O_RDONLY); in fd_load_abspath()
|
| /system/uapp/usb-fwloader/ |
| A D | usb-fwloader.cpp | 81 fbl::unique_fd fd(openat(dirfd, filename, O_RDWR)); in watch_dir_cb() 124 fbl::unique_fd fd(openat(dirfd(d), de->d_name, O_RDWR)); in open_dev()
|
| /system/uapp/waitfor/ |
| A D | waitfor.c | 66 if ((fd = openat(dirfd, fn, O_RDONLY)) < 0) { in watchcb()
|
| /system/utest/driver-tests/ |
| A D | main.cpp | 74 fd.reset(openat(devmgr->devfs_root().get(), relative_devpath, O_RDWR)); in do_one_test()
|
| /system/uapp/lspwr/ |
| A D | lspwr.cpp | 175 int fd = openat(dirfd(dir), de->d_name, O_RDONLY); in main()
|