/fuchsia/zircon/third_party/ulib/musl/src/fcntl/ |
H A D | creat.c | 4 return open(path, O_CREAT | O_WRONLY | O_TRUNC, mode);
|
/fuchsia/zircon/system/utest/fs/ |
H A D | test-access.cpp | 29 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 D | test-basic.c | 27 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 D | test-sync.c | 21 int fd = open("::alpha", O_RDWR | O_CREAT | O_EXCL, 0644); 32 fd = open("::dirname", O_RDONLY | O_DIRECTORY, 0644);
|
H A D | test-unlink.cpp | 26 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 D | dump1.c | 13 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 D | openpty.c | 13 m = open("/dev/ptmx", O_RDWR | O_NOCTTY); 23 if ((s = open(name, O_RDWR | O_NOCTTY)) < 0)
|
H A D | pty.c | 9 return open("/dev/ptmx", flags);
|
/fuchsia/zircon/third_party/ulib/musl/src/stdio/ |
H A D | tmpfile.c | 19 fd = open(s, O_RDWR | O_CREAT | O_EXCL, 0600);
|
H A D | __fopen_rb_ca.c | 8 f->fd = open(filename, O_RDONLY | O_CLOEXEC);
|
H A D | fopen.c | 18 /* Compute the flags to pass to open() */ 21 fd = open(filename, flags, 0666);
|
/fuchsia/zircon/system/utest/fs-management/ |
H A D | fs-management.cpp | 46 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 D | unittest_test.cpp | 40 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 D | main.cpp | 20 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 D | resources.c | 17 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 D | suspendtest.c | 19 int fd = open(path, O_RDWR); 21 fprintf(stderr, "could not open %s\n", path);
|
/fuchsia/zircon/system/uapp/traceme/ |
H A D | traceme.c | 18 if ((fd = open("/dev/misc/ktrace", O_RDWR)) < 0) { 19 fprintf(stderr, "cannot open trace device\n");
|
/fuchsia/zircon/system/ulib/launchpad/ |
H A D | vmo.c | 14 int fd = open(filename, O_RDONLY);
|
/fuchsia/zircon/third_party/ulib/jemalloc/test/unit/ |
H A D | prof_idump.c | 25 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.c | 11 int fd = open(pathname, O_RDONLY | O_CLOEXEC | O_NONBLOCK);
|
/fuchsia/zircon/system/dev/nand/ram-nand/test/ |
H A D | ram-nand-ctl.cpp | 34 device_.reset(open(path_, O_RDWR)); 65 fbl::unique_fd found(open(device.path(), O_RDWR));
|
/fuchsia/zircon/system/uapp/backlight/ |
H A D | main.c | 23 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 D | ram-nand.cpp | 23 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 D | fdio-tests.cpp | 21 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 D | util.cpp | 15 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");
|