Searched refs:open (Results 101 - 125 of 240) sorted by relevance

12345678910

/fuchsia/zircon/system/utest/fs/
H A Dfilesystems.cpp83 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 Dtest-dot-dot.c68 int foo_fd = open("::foo", O_RDONLY | O_DIRECTORY);
H A Dtest-threading.cpp95 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 Ddevice-internal.h23 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 Dcpu-trace.c85 .open = cpu_trace_open,
/fuchsia/zircon/system/host/abigen/
H A Dabigen_generator.cpp190 ofile.open(output_file.c_str(), std::ofstream::out);
/fuchsia/zircon/system/uapp/audio/
H A Dwav-common.cpp36 fd_ = ::open(filename, flags);
38 printf("Failed to open \"%s\" (res %d)\n", filename, fd_);
/fuchsia/zircon/system/uapp/clock/
H A Dclock.c57 int rtc_fd = open(path, mode);
59 printf("Can not open RTC device\n");
102 printf("Can not open RTC device\n");
H A Dclkctl.c92 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 Ddriverctl.c76 int fd = open(path, O_RDWR);
78 fprintf(stderr, "could not open %s\n", path);
/fuchsia/zircon/system/ulib/fdio/
H A Dlogger.c89 .open = fdio_default_open,
H A Dwaitable.c76 .open = fdio_default_open,
/fuchsia/zircon/system/ulib/fs-management/
H A Dfsck.cpp30 if ((device_fd = open(device_path, O_RDWR)) < 0) {
31 fprintf(stderr, "Failed to open device\n");
H A Dmkfs.cpp33 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 Dtee-client-api.c55 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 Dops.h69 zx_status_t (*open)(void* ctx, uint32_t flags, uint32_t mode, member in struct:zxio_ops
/fuchsia/zircon/system/core/netsvc/
H A Dnetfile.c56 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 Dpwrbtn-monitor.cpp179 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 Dmain.cpp20 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 Dmain.cpp62 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 Dmain.c177 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 Dmain.cpp173 // 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 Diotime.c92 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 Dpty-test.c71 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 Dmain.cpp328 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);

Completed in 194 milliseconds

12345678910