Searched refs:open (Results 176 - 200 of 240) sorted by relevance

12345678910

/fuchsia/zircon/system/ulib/runtests-utils/
H A Dfuchsia-run-test.cpp220 state->root_dir_fd.reset(open("/", O_RDONLY | O_DIRECTORY));
222 printf("FAILURE: Could not open root directory /\n");
303 fprintf(stderr, "FAILURE: Could not open output file at %s: %s\n",
356 fbl::unique_fd data_sink_dir_fd{open(output_dir, O_RDONLY | O_DIRECTORY)};
358 printf("FAILURE: Could not open output directory %s: %s\n", output_dir,
375 fprintf(stderr, "FAILURE: cannot open data-sink directory \"%s\": %s\n",
419 fprintf(stderr, "FAILURE: Cannot open data-sink file \"%s\": %s\n",
/fuchsia/zircon/system/host/fidl/compiler/
H A Dmain.cpp130 stream.open(filename, mode);
132 Fail("Could not open file: %s\n", filename.data());
/fuchsia/zircon/system/host/bootserver/
H A Dtftp.c45 xd->fd = open(filename, O_RDONLY);
47 fprintf(stderr, "%s: error: Could not open file %s\n", appname, filename);
/fuchsia/zircon/system/uapp/netreflector/
H A Dnetreflector.c191 if ((fd = open(ethdev, O_RDWR)) < 0) {
192 fprintf(stderr, "netreflector: cannot open '%s'\n", argv[1]);
/fuchsia/zircon/system/uapp/nand-util/
H A Dmain.cpp67 explicit NandBroker(const char* path) : device_(open(path, O_RDWR)) {}
97 printf("Failed to open or query the device\n");
405 printf("Unable to open the nand device\n");
/fuchsia/zircon/system/ulib/fdio/
H A Dpipe.c235 .open = fdio_default_open,
H A Dprivate.h23 // FDIO provides open/close/read/write io over various transports
43 zx_status_t (*open)(fdio_t* io, const char* path, uint32_t flags, member in struct:fdio_ops
/fuchsia/zircon/system/ulib/fs-test-utils/
H A Dperftest.cpp143 fbl::unique_fd fd(open(block_device_path.c_str(), O_RDONLY));
/fuchsia/zircon/system/utest/fs/
H A Dtest-rw-workers.c168 ASSERT_GT((w->fd = open(w->name, O_RDWR | O_CREAT | O_EXCL, 0644)), 0, "");
/fuchsia/zircon/system/utest/memfs/
H A Dmemfs-tests.cpp150 // 5. Write kPageSize * page_limit data then unlink&close&open the file, repeat a few times.
178 int fd = open("/mytmp", O_DIRECTORY | O_RDONLY);
/fuchsia/zircon/third_party/uapp/dash/src/
H A Dinput.c419 if ((fd = open(fname, O_RDONLY)) < 0) {
423 exerror(EXERROR, "Can't open %s", fname);
435 * Like setinputfile, but takes an open file descriptor. Call this with
/fuchsia/zircon/third_party/ulib/jemalloc/src/
H A Dpages.c342 * Use syscall(2) rather than {open,read,close}(2) when possible to avoid
356 fd = open("/proc/sys/vm/overcommit_memory", O_RDONLY);
/fuchsia/zircon/system/host/fvm/container/
H A Dfvm.cpp46 fd_.reset(open(path, O_RDWR, 0644));
49 fd_.reset(open(path, O_RDWR | O_CREAT | O_EXCL, 0644));
58 fprintf(stderr, "Failed to open path %s: %s\n", path, strerror(errno));
288 fbl::unique_fd fd(open(path, O_RDWR | O_CREAT, 0644));
291 fprintf(stderr, "Unable to open temp file %s\n", path);
H A Dsparse.cpp85 fd_.reset(open(path, O_CREAT | O_RDWR, 0666));
88 fprintf(stderr, "Failed to open sparse data path\n");
/fuchsia/zircon/third_party/uapp/mkfs-msdosfs/
H A Dmkfs_msdos.c215 fd = open(fname, O_RDWR | O_CREAT | O_TRUNC, 0644);
224 } else if ((fd = open(fname, o.no_create ? O_RDONLY : O_RDWR)) == -1) {
349 if ((fd1 = open(bname, O_RDONLY)) == -1 || fstat(fd1, &sb)) {
/fuchsia/zircon/system/utest/ramdisk/
H A Dramdisk.cpp50 int fd = open(ramdisk_path, O_RDWR);
51 ASSERT_GE(fd, 0, "Could not open ramdisk device");
63 ASSERT_TRUE(fd, "Could not open ramdisk device");
73 ASSERT_TRUE(fd, "Could not open ramdisk device");
182 fbl::unique_fd fd(open(ramdisk_path, O_RDWR));
215 int fd = open(ramdisk_path, O_RDWR);
216 ASSERT_GE(fd, 0, "Could not open ramdisk device");
278 int devfd = open(blockpath, O_RDONLY);
287 ASSERT_EQ(open(blockpath, O_RDONLY), -1, "Ramdisk is visible in /dev after destruction");
301 int fd = open(ramdisk_pat
[all...]
/fuchsia/zircon/system/core/devmgr/
H A Dfshost.cpp153 int dirfd = open("/dev/misc", O_DIRECTORY | O_RDONLY);
155 printf("fshost: failed to open /dev/misc: %s\n", strerror(errno));
/fuchsia/zircon/system/uapp/biotime/
H A Dbiotime.cpp354 if ((fd = open(device_filename, O_RDONLY)) < 0) {
355 fprintf(stderr, "error: cannot open '%s'\n", device_filename);
/fuchsia/zircon/system/uapp/display-test/
H A Dmain.cpp50 int vfd = open("/dev/class/display-controller/000", O_RDWR);
52 printf("Failed to open display controller (%d)\n", errno);
/fuchsia/zircon/system/ulib/ddktl/include/ddktl/
H A Ddevice.h19 // can be implemented to define standard behavior (e.g., open/close/read/write),
144 proto->open = Open;
/fuchsia/zircon/system/ulib/ddktl/test/
H A Ddevice-tests.cpp200 EXPECT_EQ(ZX_OK, ops->open(ctx, nullptr, 0), "");
/fuchsia/zircon/system/ulib/inet6/
H A Dnetifc.c374 if ((dirfd = open("/dev/class/ethernet", O_DIRECTORY|O_RDONLY)) < 0) {
/fuchsia/zircon/system/ulib/intel-hda/codec-utils/
H A Dcodec-driver-base.cpp39 .open = nullptr,
/fuchsia/zircon/system/ulib/loader-service/
H A Dloader-service.c229 fprintf(stderr, "dlsvc: could not open '%s'\n", data);
330 int root_dir_fd = open("/", O_RDONLY | O_DIRECTORY);
/fuchsia/zircon/system/ulib/task-utils/
H A Dwalker.cpp330 int fd = open("/dev/misc/sysinfo", O_RDWR);
332 fprintf(stderr, "task-utils/walker: cannot open sysinfo: %d\n", errno);

Completed in 204 milliseconds

12345678910