Searched refs:open (Results 1 - 25 of 240) sorted by relevance

12345678910

/fuchsia/zircon/third_party/ulib/musl/src/fcntl/
H A Dcreat.c4 return open(path, O_CREAT | O_WRONLY | O_TRUNC, mode);
/fuchsia/zircon/system/utest/fs/
H A Dtest-access.cpp29 int fd = open(filename, O_RDWR | O_CREAT, 0644);
35 // Re-open as readonly
36 fd = open(filename, O_RDONLY, 0644);
65 int fd = open(filename, O_RDWR | O_CREAT, 0644);
71 // Re-open as writable
72 fd = open(filename, O_WRONLY, 0644);
97 int fd = open(filename, O_RDWR | O_CREAT, 0644);
102 ASSERT_LT(open(filename, O_RDONLY | O_TRUNC | O_CREAT, 0644), 0);
117 int fd = open(filename, O_RDWR, 0644);
120 fd = open(filenam
[all...]
H A Dtest-basic.c27 int fd1 = open("::alpha/bravo/charlie/delta/echo/foxtrot", O_RDWR | O_CREAT, 0644);
29 int fd2 = open("::alpha/bravo/charlie/delta/echo/foxtrot", O_RDWR, 0644);
36 // the open itself will always succeed if the remote side exists,
38 fd1 = open("::alpha/bravo/charlie/delta/echo/foxtrot", O_RDONLY | O_PIPELINE, 0644);
45 fd1 = open("::alpha/banana", O_RDONLY | O_PIPELINE, 0644);
50 fd1 = open("::file.txt", O_CREAT | O_RDWR, 0644);
56 fd1 = open("::emptydir", O_RDONLY, 0644);
77 int fd = open("::foobar", O_CREAT | O_RDWR);
H A Dtest-sync.c21 int fd = open("::alpha", O_RDWR | O_CREAT | O_EXCL, 0644);
32 fd = open("::dirname", O_RDONLY | O_DIRECTORY, 0644);
H A Dtest-unlink.cpp26 int fd = open(paths[i], O_RDWR | O_CREAT | O_EXCL, 0644);
64 int fd = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
69 // When we unlink path, fd is still open.
76 ASSERT_EQ(open(path, O_RDWR, 0644), -1);
85 int fd1 = open(path, O_RDWR | O_CREAT | O_EXCL, 0644);
87 int fd2 = open(path, O_RDWR, 0644);
93 // When we unlink path, fd2 is still open.
100 ASSERT_EQ(open(path, O_RDWR, 0644), -1);
110 int fd = open(filename, O_RDWR | O_CREAT | O_EXCL, 0644);
/fuchsia/zircon/system/utest/dump1/
H A Ddump1.c13 fd = open(argv[1], O_RDONLY);
15 printf("dump1: cannot open '%s'\n", argv[1]);
/fuchsia/zircon/third_party/ulib/musl/src/misc/
H A Dopenpty.c13 m = open("/dev/ptmx", O_RDWR | O_NOCTTY);
23 if ((s = open(name, O_RDWR | O_NOCTTY)) < 0)
H A Dpty.c9 return open("/dev/ptmx", flags);
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A Dtmpfile.c19 fd = open(s, O_RDWR | O_CREAT | O_EXCL, 0600);
H A D__fopen_rb_ca.c8 f->fd = open(filename, O_RDONLY | O_CLOEXEC);
H A Dfopen.c18 /* Compute the flags to pass to open() */
21 fd = open(filename, flags, 0666);
/fuchsia/zircon/system/utest/fs-management/
H A Dfs-management.cpp46 fbl::unique_fd fd(open(path, O_RDONLY | O_DIRECTORY));
72 int fd = open(ramdisk_path, O_RDWR);
104 int fd = open(ramdisk_path, O_RDWR);
127 int fd = open(ramdisk_path, O_RDWR);
130 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
131 ASSERT_GT(mountfd, 0, "Couldn't open mount point");
156 int fd = open(ramdisk_path, O_RDWR);
159 int mountfd = open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN);
160 ASSERT_GT(mountfd, 0, "Couldn't open mount point");
172 fd = open(ramdisk_pat
[all...]
/fuchsia/zircon/system/utest/fs-test-utils/
H A Dunittest_test.cpp40 fbl::unique_fd fs_path_fd(open(fixture->fs_path().c_str(), O_RDONLY | O_DIRECTORY));
43 fbl::unique_fd block_fd(open(fixture->block_device_path().c_str(), O_RDONLY));
48 fbl::unique_fd fs_fd(open(fixture->partition_path().c_str(), O_RDONLY));
/fuchsia/zircon/system/utest/sysinfo/
H A Dmain.cpp20 int fd = open(SYSINFO_PATH, O_RDWR);
21 ASSERT_GE(fd, 0, "Can't open sysinfo");
46 int fd = open(SYSINFO_PATH, O_RDWR);
47 ASSERT_GE(fd, 0, "Can't open sysinfo");
66 int fd = open(SYSINFO_PATH, O_RDWR);
67 ASSERT_GE(fd, 0, "Can't open sysinfo");
/fuchsia/zircon/system/uapp/psutils/
H A Dresources.c17 int fd = open("/dev/misc/sysinfo", O_RDWR);
19 fprintf(stderr, "ERROR: Cannot open sysinfo: %s (%d)\n",
/fuchsia/zircon/system/uapp/suspendtest/
H A Dsuspendtest.c19 int fd = open(path, O_RDWR);
21 fprintf(stderr, "could not open %s\n", path);
/fuchsia/zircon/system/uapp/traceme/
H A Dtraceme.c18 if ((fd = open("/dev/misc/ktrace", O_RDWR)) < 0) {
19 fprintf(stderr, "cannot open trace device\n");
/fuchsia/zircon/system/ulib/launchpad/
H A Dvmo.c14 int fd = open(filename, O_RDONLY);
/fuchsia/zircon/third_party/ulib/jemalloc/test/unit/
H A Dprof_idump.c25 fd = open("/dev/null", O_WRONLY);
26 assert_d_ne(fd, -1, "Unexpected open() failure");
/fuchsia/zircon/third_party/ulib/musl/src/time/
H A D__map_file.c11 int fd = open(pathname, O_RDONLY | O_CLOEXEC | O_NONBLOCK);
/fuchsia/zircon/system/dev/nand/ram-nand/test/
H A Dram-nand-ctl.cpp34 device_.reset(open(path_, O_RDWR));
65 fbl::unique_fd found(open(device.path(), O_RDWR));
/fuchsia/zircon/system/uapp/backlight/
H A Dmain.c23 int fd = open("/dev/class/backlight/000", O_RDONLY);
25 printf("Failed to open backlight\n");
59 int fd = open("/dev/class/backlight/000", O_RDWR);
61 printf("Failed to open backlight\n");
/fuchsia/zircon/system/ulib/fs-management/
H A Dram-nand.cpp23 fbl::unique_fd control(open(base_path, O_RDWR));
25 fprintf(stderr, "Could not open nand-ctl\n");
45 fbl::unique_fd ram_nand(open(ram_nand_path, O_RDWR));
47 fprintf(stderr, "Could not open ram_nand\n");
/fuchsia/zircon/system/utest/devfs/
H A Dfdio-tests.cpp21 fbl::unique_fd fd(open("/dev/zero", O_RDONLY));
37 fbl::unique_fd fd(open("/dev/zero", O_RDONLY));
/fuchsia/zircon/system/utest/fs-host/
H A Dutil.cpp15 int r = open(MOUNT_PATH, O_RDWR | O_CREAT | O_EXCL, 0755);
50 fbl::unique_fd disk(open(MOUNT_PATH, O_RDONLY));
53 fprintf(stderr, "Unable to open disk for fsck\n");

Completed in 73 milliseconds

12345678910