Home
last modified time | relevance | path

Searched refs:openat (Results 1 – 25 of 38) sorted by relevance

12

/system/utest/fs/
A Dtest-dot-dot.c72 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 Dtest-minfs.cpp241 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 Dtest-rename.c234 int fd = openat(barfd, "filename", O_CREAT | O_RDWR | O_EXCL); in test_rename_at()
/system/utest/memfs/
A Dmemfs-tests.cpp62 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 Dfidl-tests.cpp41 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 Dvdso-variant-helper.c33 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 Dmain.cpp80 int rc = openat(fd, "", flags); in open_empty_test()
93 int rc = openat(fd, "", flags | O_CREAT, mode); in open_empty_test()
A DREADME.md14 openat(not_a_directory, "", O_RDONLY)
/system/uapp/xdc-test/
A Dxdc-device.cpp27 int fd = openat(dirfd(d), de->d_name, O_RDWR); in configure_xdc()
/system/ulib/devmgr-integration-test/
A Dfile-wait.cpp34 out->reset(openat(dir.get(), file, O_RDWR)); in WaitForFile()
/system/utest/fzl/
A Dfdio.cpp30 fbl::unique_fd fd(openat(dir.get(), "my-file", O_CREAT | O_RDWR)); in fdio_call_io()
/system/utest/pty/
A Dpty-test.c74 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 Dfuchsia-run-test.cpp123 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 Dmain.cpp141 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 Dfs-management.cpp323 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 Dmain.c47 *fd = openat(dirfd, "dmctl", O_RDWR); in open_dmctl()
/system/core/devmgr/devmgr/
A Ddrivers.cpp122 if ((fd = openat(dirfd(dir), de->d_name, O_RDONLY)) < 0) { in find_loadable_drivers()
/system/utest/usb/
A Dusb-test.c69 int fd = openat(dirfd(d), de->d_name, O_RDWR); in open_test_device()
/system/ulib/fs-management/
A Dram-nand.cpp124 fbl::unique_fd fd(openat(ctl->devfs_root().get(), path.c_str(), O_RDWR)); in Create()
A Dfvm.cpp245 fbl::unique_fd devfd(openat(dirfd, fn, O_RDWR)); in open_partition()
/system/ulib/loader-service/
A Dloader-service.c80 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 Dusb-fwloader.cpp81 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 Dwaitfor.c66 if ((fd = openat(dirfd, fn, O_RDONLY)) < 0) { in watchcb()
/system/utest/driver-tests/
A Dmain.cpp74 fd.reset(openat(devmgr->devfs_root().get(), relative_devpath, O_RDWR)); in do_one_test()
/system/uapp/lspwr/
A Dlspwr.cpp175 int fd = openat(dirfd(dir), de->d_name, O_RDONLY); in main()

Completed in 35 milliseconds

12