/fuchsia/zircon/system/utest/fs/ |
H A D | filesystems.cpp | 83 int fd = open(test_disk_path, O_RDWR); 85 fprintf(stderr, "[FAILED]: Could not open test disk\n"); 105 if ((fvm_fd = open(fvm_disk_path, O_RDWR)) < 0) { 106 fprintf(stderr, "[FAILED]: Could not open FVM driver\n"); 216 // isn't a directory. Just try to open it as a directory, and return 274 int fd = open(disk_path, O_RDWR); 277 fprintf(stderr, "Could not open disk: %s\n", disk_path);
|
H A D | test-dot-dot.c | 68 int foo_fd = open("::foo", O_RDONLY | O_DIRECTORY);
|
H A D | test-threading.cpp | 95 int fd = open("::exclusive", O_RDWR | O_CREAT | O_EXCL); 226 int fd = open("::link_start", O_RDWR | O_CREAT | O_EXCL);
|
/fuchsia/zircon/system/core/devmgr/ |
H A D | device-internal.h | 23 return ops->open(ctx, dev_out, flags); 124 #define DEV_FLAG_INSTANCE 0x00000020 // this device was created-on-open
|
/fuchsia/zircon/system/dev/misc/cpu-trace/ |
H A D | cpu-trace.c | 85 .open = cpu_trace_open,
|
/fuchsia/zircon/system/host/abigen/ |
H A D | abigen_generator.cpp | 190 ofile.open(output_file.c_str(), std::ofstream::out);
|
/fuchsia/zircon/system/uapp/audio/ |
H A D | wav-common.cpp | 36 fd_ = ::open(filename, flags); 38 printf("Failed to open \"%s\" (res %d)\n", filename, fd_);
|
/fuchsia/zircon/system/uapp/clock/ |
H A D | clock.c | 57 int rtc_fd = open(path, mode); 59 printf("Can not open RTC device\n"); 102 printf("Can not open RTC device\n");
|
H A D | clkctl.c | 92 int fd = open(path, O_RDWR); 94 fprintf(stderr, "ERROR: Failed to open clock device: %d\n", fd);
|
/fuchsia/zircon/system/uapp/driverctl/ |
H A D | driverctl.c | 76 int fd = open(path, O_RDWR); 78 fprintf(stderr, "could not open %s\n", path);
|
/fuchsia/zircon/system/ulib/fdio/ |
H A D | logger.c | 89 .open = fdio_default_open,
|
H A D | waitable.c | 76 .open = fdio_default_open,
|
/fuchsia/zircon/system/ulib/fs-management/ |
H A D | fsck.cpp | 30 if ((device_fd = open(device_path, O_RDWR)) < 0) { 31 fprintf(stderr, "Failed to open device\n");
|
H A D | mkfs.cpp | 33 if ((device_fd = open(device_path, O_RDWR)) < 0) { 34 fprintf(stderr, "Failed to open device\n");
|
/fuchsia/zircon/system/ulib/tee-client-api/ |
H A D | tee-client-api.c | 55 int fd = open(tee_device, O_RDWR); 102 // TODO(rjascani): Add support for operations on session open
|
/fuchsia/zircon/system/ulib/zxio/include/lib/zxio/ |
H A D | ops.h | 69 zx_status_t (*open)(void* ctx, uint32_t flags, uint32_t mode, member in struct:zxio_ops
|
/fuchsia/zircon/system/core/netsvc/ |
H A D | netfile.c | 56 printf("netsvc: closing still-open '%s', replacing with '%s'\n", netfile.filename, filename); 73 netfile.fd = open(filename, O_RDONLY); 88 netfile.fd = open(netfile.filename, O_WRONLY|O_CREAT|O_TRUNC); 98 printf("netsvc: open '%s' with invalid mode %d\n", filename, arg); 116 printf("netsvc: read, but no open file\n"); 130 printf("netsvc: read, but no open file\n"); 147 printf("netsvc: write, but no open file\n"); 161 printf("netsvc: write, but no open file\n"); 179 printf("netsvc: close, but no open file\n");
|
/fuchsia/zircon/system/core/pwrbtn-monitor/ |
H A D | pwrbtn-monitor.cpp | 179 int fd = open(INPUT_PATH, O_DIRECTORY | O_RDONLY); 181 printf("pwrbtn-monitor: Failed to open " INPUT_PATH ": %d\n", errno); 235 int fd = open(DMCTL_PATH, O_WRONLY); 237 printf("pwrbtn-monitor: input-watcher: failed to open dmctl\n");
|
/fuchsia/zircon/system/host/blobfs/ |
H A D | main.cpp | 20 fbl::unique_fd data_fd(open(path, O_RDONLY, 0644)); 22 fprintf(stderr, "error: cannot open '%s'\n", path); 149 fbl::unique_fd data_fd(open(path, O_RDONLY, 0644));
|
/fuchsia/zircon/system/host/fvm/ |
H A D | main.cpp | 62 fbl::unique_fd fd(open(path, O_RDONLY, 0644)); 172 fbl::unique_fd fd(open(path, O_CREAT|O_EXCL|O_WRONLY, 0644));
|
/fuchsia/zircon/system/uapp/dd/ |
H A D | main.c | 177 in = open(options.input, O_RDONLY); 179 fprintf(stderr, "Couldn't open input file %s : %d\n", options.input, errno); 187 out = open(options.output, O_WRONLY | O_CREAT); 189 fprintf(stderr, "Couldn't open output file %s : %d\n", options.output, errno);
|
/fuchsia/zircon/system/uapp/df/ |
H A D | main.cpp | 173 // Try to open path with O_ADMIN so we can query for underlying block devices. 174 // If we fail, open directory without O_ADMIN. Block devices will not be returned. 178 fd.reset(open(dirs[i], O_RDONLY | O_ADMIN)); 180 fd.reset(open(dirs[i], O_RDONLY)); 182 fprintf(stderr, "df: Could not open target: %s\n", dirs[i]);
|
/fuchsia/zircon/system/uapp/iotime/ |
H A D | iotime.c | 92 return open(ramdisk_path, O_RDWR); 195 if ((fd = open(argv[3], is_read ? O_RDONLY : O_WRONLY)) < 0) { 196 fprintf(stderr, "error: cannot open '%s'\n", argv[3]);
|
/fuchsia/zircon/system/utest/pty/ |
H A D | pty-test.c | 71 int ps = open("/dev/misc/ptmx", O_RDWR | O_NONBLOCK); 211 int root_dir = open("/", O_DIRECTORY | O_RDONLY);
|
/fuchsia/zircon/system/uapp/hid/ |
H A D | main.cpp | 328 int dirfd = open(DEV_INPUT, O_DIRECTORY|O_RDONLY); 356 int fd = open(argv[0], O_RDWR); 358 printf("could not open %s: %d\n", argv[0], errno); 408 int fd = open(argv[0], O_RDWR); 410 printf("could not open %s: %d\n", argv[0], errno); 480 int fd = open(argv[0], O_RDWR); 482 printf("could not open %s: %d\n", argv[0], errno); 537 int fd = open(argv[0], O_RDWR); 539 printf("could not open %s: %d\n", argv[0], errno);
|