/fuchsia/zircon/system/utest/fs/ |
H A D | test-random-op.c | 184 int fd = open("::/a", O_RDWR+O_CREAT, 0666); 188 task_error(w, "t: create_a", "open"); 208 int fd = open("::/b", O_RDWR+O_CREAT, 0666); 212 task_error(w, "t: create_b", "open"); 370 int fd = open(fname, O_RDWR+O_EXCL+O_CREAT, 0666); 375 task_error(w, "t: write_private_b", "open"); 425 // close(fd); fd <- open("::/threadhame/a") 432 w->fd = open(fname, O_RDWR+O_CREAT+O_EXCL, 0666); 435 w->fd = open(fname, O_RDWR+O_EXCL); 437 task_error(w, "t: open_private_a", "open [all...] |
H A D | rules.mk | 49 MODULE_LDFLAGS := --wrap open --wrap unlink --wrap stat --wrap mkdir
|
/fuchsia/zircon/system/utest/fvm-host/ |
H A D | main.cpp | 89 int r = open(path, O_RDWR | O_CREAT | O_EXCL, 0755); 108 int r = open(path, O_RDWR | O_CREAT | O_EXCL, 0755); 169 fbl::unique_fd fd(open(path, O_RDWR, 0755)); 170 ASSERT_TRUE(fd, "Unable to open file"); 310 fbl::unique_fd datafd(open(new_file, O_RDWR | O_CREAT | O_EXCL, 0755)); 322 fbl::unique_fd blobfd(open(path, O_RDWR, 0755)); 323 ASSERT_TRUE(blobfd, "Unable to open blobfs path"); 557 fprintf(stderr, "Couldn't open test directory\n");
|
/fuchsia/zircon/system/ulib/fs-host/ |
H A D | common.cpp | 131 fbl::unique_fd manifest_fd(open(manifest_path, O_RDONLY, 0644)); 133 fprintf(stderr, "error: cannot open '%s'\n", manifest_path); 305 fd_.reset(open(device, open_flags, 0644)); 307 fprintf(stderr, "error: cannot open '%s'\n", device); 391 depfile_.reset(open(buf, O_CREAT|O_TRUNC|O_WRONLY, 0644)); 393 fprintf(stderr, "error: cannot open '%s'\n", buf); 431 fprintf(stderr, "Failed to open fd before running command\n");
|
/fuchsia/zircon/system/ulib/fs-management/ |
H A D | mount.cpp | 136 unique_fd parent(open(parent_path, O_RDONLY | O_DIRECTORY | O_ADMIN)); 340 unique_fd mount_point(open(mount_path, O_RDONLY | O_DIRECTORY | O_ADMIN)); 369 unique_fd fd(open(mount_path, O_DIRECTORY | O_NOREMOTE | O_ADMIN)); 371 fprintf(stderr, "Could not open directory: %s\n", strerror(errno));
|
H A D | fvm.cpp | 139 int fd = open(path, O_RDWR); 142 fprintf(stderr, "fvm_destroy: Failed to open block device\n"); 199 fbl::unique_fd driver_fd(open(driver_path, O_RDWR)); 202 fprintf(stderr, "fvm_destroy: Failed to open fvm driver: %s\n", driver_path); 216 // Helper function to allocate, find, and open VPartition.
|
/fuchsia/zircon/system/ulib/fs-test-utils/ |
H A D | fixture.cpp | 126 fbl::unique_fd fd(open(block_device_path.c_str(), O_RDWR)); 155 fbl::unique_fd fvm_fd(open(fvm_device_path.c_str(), O_RDWR)); 235 fbl::unique_fd fd(open(GetFsBlockDevice().c_str(), O_RDWR));
|
/fuchsia/zircon/system/core/devmgr/ |
H A D | devmgr-drivers.cpp | 140 if ((fd = open(path, O_RDONLY)) < 0) { 141 printf("devcoord: cannot open '%s'\n", path);
|
/fuchsia/zircon/system/dev/misc/pty/ |
H A D | pty-driver.c | 119 // .open = default, allow cloning 163 .open = ptmx_open,
|
/fuchsia/zircon/system/host/abigen/parser/ |
H A D | parser.h | 118 infile.open(input, std::ifstream::in); 121 fprintf(stderr, "error: unable to open %s\n", input);
|
/fuchsia/zircon/system/host/merkleroot/ |
H A D | merkleroot.cpp | 72 fbl::unique_fd fd{open(entry->filename.c_str(), O_RDONLY)};
|
/fuchsia/zircon/system/uapp/kstress/ |
H A D | main.cpp | 29 int fd = open("/dev/misc/sysinfo", O_RDWR); 31 fprintf(stderr, "ERROR: Cannot open sysinfo: %s (%d)\n",
|
/fuchsia/zircon/system/uapp/sysconfig/ |
H A D | sysconfig.c | 58 int fd = open(path, O_RDWR);
|
/fuchsia/zircon/system/uapp/xdc-test/ |
H A D | xdc-test.cpp | 159 fbl::unique_fd file_fd(open(filename, file_flags, 0666)); 161 fprintf(stderr, "Failed to open \"%s\", err %s\n", filename, strerror(errno));
|
/fuchsia/zircon/system/ulib/ddk/include/ddk/ |
H A D | device.h | 66 //@ ## open 68 // The open hook is called when a device is opened via the device filesystem, 69 // or when an existing open connection to a device is cloned (for example, 70 // when a device fd is shared with another process). The default open hook, 73 // Drivers may want to implement open to disallow simultaneous access (by 74 // failing if the device is already open), or to return a new **device instance** 83 zx_status_t (*open)(void* ctx, zx_device_t** dev_out, uint32_t flags); member in struct:zx_protocol_device 86 // The open_at hook is called in the event that the open path to the device 88 // exists as `/dev/misc/foo` and an attempt is made to `open("/dev/misc/foo/bar",...)`, 97 // calls will balance the calls to open o [all...] |
/fuchsia/zircon/system/ulib/fdio/ |
H A D | service.c | 36 .open = fdio_default_open,
|
/fuchsia/zircon/system/ulib/minfs/include/minfs/ |
H A D | host.h | 59 // FileWrapper is a wrapper around an open file descriptor, 76 r = open(path, flags, mode); 105 // DirWrapper is a wrapper around an open directory,
|
/fuchsia/zircon/system/utest/fuzz-utils/ |
H A D | fixture.cpp | 89 fbl::unique_fd fd(open(pathname, O_RDWR | O_CREAT, 0777));
|
/fuchsia/zircon/third_party/ulib/musl/include/ |
H A D | fcntl.h | 31 int open(const char*, int, ...);
|
/fuchsia/zircon/third_party/ulib/musl/src/misc/ |
H A D | syslog.c | 109 fd = open("/dev/console", O_WRONLY | O_NOCTTY | O_CLOEXEC);
|
/fuchsia/zircon/system/host/netprotocol/ |
H A D | netcp.c | 50 int fd = open(filename, O_RDONLY); 66 int fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
|
/fuchsia/zircon/system/ulib/fvm/ |
H A D | fvm-lz4.cpp | 305 infd.reset(open(infile, O_RDONLY)); 307 fprintf(stderr, "could not open %s: %s\n", infile, strerror(errno)); 311 outfd.reset(open(outfile, O_WRONLY | O_CREAT | O_EXCL, 0644)); 313 fprintf(stderr, "could not open %s: %s\n", outfile, strerror(errno));
|
/fuchsia/zircon/system/ulib/tftp/ |
H A D | tftp-example.c | 164 int fd = open(filename, O_RDONLY); 166 fprintf(stderr, "could not open file: err=%d\n", errno); 181 int fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC, 184 fprintf(stderr, "could not open file: err=%d\n", errno);
|
/fuchsia/zircon/system/utest/fs-bench/ |
H A D | fs-bench.cpp | 40 fbl::unique_fd fd(open(GetBigFilePath(*fixture).c_str(), O_CREAT | O_WRONLY)); 56 fbl::unique_fd fd(open(GetBigFilePath(*fixture).c_str(), O_RDONLY));
|
/fuchsia/zircon/third_party/ulib/uboringssl/crypto/fipsmodule/cipher/ |
H A D | aead.c | 192 if (ctx->aead->open) { 193 if (!ctx->aead->open(ctx, out, out_len, max_out_len, nonce, nonce_len, in, 200 // AEADs that use the default implementation of open() must set |tag_len| at
|