/fuchsia/zircon/system/utest/fs/ |
H A D | test-unlink.cpp | 56 ASSERT_EQ(write(fd, STRING_DATA[data_index], len), len);
|
H A D | test-link.c | 47 ASSERT_STREAM_ALL(write, fd, buf, sizeof(buf)); 246 ASSERT_STREAM_ALL(write, fd, buf, sizeof(buf));
|
/fuchsia/zircon/system/utest/fuzz-utils/ |
H A D | fixture.cpp | 92 ASSERT_GE(write(fd.get(), contents, strlen(contents) + 1), 0);
|
/fuchsia/zircon/system/utest/ramdisk/ |
H A D | ramdisk.cpp | 147 ASSERT_EQ(write(ramdisk->fd(), buf, sizeof(buf)), (ssize_t)sizeof(buf)); 148 ASSERT_EQ(write(ramdisk->fd(), buf, sizeof(buf) / 2), (ssize_t) (sizeof(buf) / 2)); 190 EXPECT_EQ(write(fd.get(), buf, sizeof(buf)), (ssize_t)sizeof(buf)); 191 EXPECT_EQ(write(fd.get(), buf, sizeof(buf) / 2), (ssize_t)(sizeof(buf) / 2)); 322 // Read / write non-multiples of the block size 323 ASSERT_EQ(write(ramdisk->fd(), buf, PAGE_SIZE - 1), -1); 325 ASSERT_EQ(write(ramdisk->fd(), buf, PAGE_SIZE / 2), -1); 332 // Read / write from unaligned offset 334 ASSERT_EQ(write(ramdisk->fd(), buf, PAGE_SIZE), -1); 339 // Read / write a [all...] |
/fuchsia/zircon/system/utest/stdio/ |
H A D | stdio.c | 36 ASSERT_GT(write(fds[1], "hello", 5), 0, "pipe write failed");
|
/fuchsia/zircon/third_party/uapp/dash/src/ |
H A D | memalloc.c | 152 write(2, "stunalloc\n", 10);
|
/fuchsia/zircon/third_party/ulib/musl/src/stdio/ |
H A D | fmemopen.c | 115 f->write = mwrite;
|
/fuchsia/zircon/system/dev/ethernet/ethertap/ |
H A D | ethertap.cpp | 156 zx_status_t status = data_.write(0u, temp_buf, length + sizeof(ethertap_socket_header_t), 201 zx_status_t status = data_.write(0, &send_buf, sizeof(send_buf), nullptr); 205 // A failure of data_.write is not a simulated failure of hardware under test, so log it but
|
/fuchsia/zircon/system/ulib/fvm/ |
H A D | fvm-lz4.cpp | 260 // Update metadata and write to new file. 264 if (write(outfd.get(), metadata_.get(), image->header_length) 266 fprintf(stderr, "BlockReader: could not write header to out file\n"); 270 // Read/write decompressed data in LZ4_MAX_BLOCK_SIZE chunks. 283 if (write(outfd.get(), data, length) != static_cast<ssize_t>(length)) { 284 fprintf(stderr, "BlockReader: failed to write to output\n");
|
/fuchsia/zircon/third_party/ulib/ngunwind/include/ngunwind/private/ |
H A D | libunwind_i.h | 59 /* Make it easy to write thread-safe code which may or may not be 383 unw_word_t *valp, int write); 385 unw_fpreg_t *valp, int write);
|
/fuchsia/zircon/system/host/fvm/container/ |
H A D | fvm.cpp | 310 // First, we read all old slices from the original device, and write them to their 351 r = write(fd.get(), data.get(), slice_size_); 353 fprintf(stderr, "Failed to write data to FVM: %ld\n", r); 375 if (write(fd.get(), metadata_.get(), metadata_size_) != static_cast<ssize_t>(metadata_size_)) { 380 if (write(fd.get(), metadata_.get(), metadata_size_) != static_cast<ssize_t>(metadata_size_)) { 404 fprintf(stderr, "Commit: Nothing to write\n"); 464 if (write(fd_.get(), metadata_.get(), metadata_size_) != static_cast<ssize_t>(metadata_size_)) { 469 if (write(fd_.get(), metadata_.get(), metadata_size_) != static_cast<ssize_t>(metadata_size_)) { 720 // If we have gone beyond the blocks written to partition file, write empty block 736 fprintf(stderr, "Failed to write dat [all...] |
/fuchsia/zircon/third_party/uapp/kilo/ |
H A D | kilo.c | 327 if (write(ofd, "\x1b[6n", 4) != 4) return -1; 363 if (write(ofd,"\x1b[999C\x1b[999B",12) != 12) goto failed; 370 if (write(ofd,seq,strlen(seq)) == -1) { 854 /* Use truncate + a single write(2) call in order to make saving 858 if (write(fd,buf,len) != len) goto writeerr; 877 * write all the escape sequences in a buffer and flush them to the standard 1015 write(STDOUT_FILENO,ab.b,ab.len);
|
/fuchsia/zircon/kernel/syscalls/ |
H A D | ddk_pci.cpp | 418 uint8_t offset, user_inout_ptr<uint32_t> val, size_t width, bool write) { 426 if (write) { 656 uint8_t offset, user_inout_ptr<uint32_t> val, size_t width, bool write) { 417 sys_pci_cfg_pio_rw(zx_handle_t handle, uint8_t bus, uint8_t dev, uint8_t func, uint8_t offset, user_inout_ptr<uint32_t> val, size_t width, bool write) argument 655 sys_pci_cfg_pio_rw(zx_handle_t handle, uint8_t bus, uint8_t dev, uint8_t func, uint8_t offset, user_inout_ptr<uint32_t> val, size_t width, bool write) argument
|
/fuchsia/zircon/scripts/ |
H A D | symbolize | 208 sys.stdout.write(line + "\n") 456 sys.stderr.write("Symbolize could not find the zircon elf binary. Perhaps you need " 463 sys.stderr.write("Failed to find __code_start from nm")
|
/fuchsia/zircon/system/core/devmgr/ |
H A D | devhost-core.cpp | 115 ops.write = default_write; 151 ops.write = +[](void* ctx, const void*, size_t, size_t, size_t*) -> zx_status_t { 412 DEFAULT_IF_NULL(ops, write);
|
H A D | devhost-api.cpp | 156 return dev->ops->write(dev->ctx, buf, count, off, actual);
|
/fuchsia/zircon/system/ulib/gpt/ |
H A D | gpt.c | 288 // write partition table first 294 rc = write(fd, ptable, ptable_size); 298 // then write the header 307 rc = write(fd, block, blocksize); 317 // write fake mbr if needed 336 rc = write(priv->fd, mbr, priv->blocksize); 361 // always write 128 entries in partition table 402 // write backup to disk 408 // write primary copy to disk 535 G_PRINTF("Failed to write t [all...] |
/fuchsia/zircon/system/dev/audio/intel-hda/controller/ |
H A D | intel-hda-controller.cpp | 43 .write = nullptr, 316 .write = nullptr,
|
/fuchsia/zircon/system/utest/blobfs-bench/ |
H A D | blobfs-bench.cpp | 72 // Helper for streaming operations (such as read, write) which may need to be 188 ASSERT_EQ(StreamAll(write, fd.get(), new_blob->data.get(), new_blob->size_data), 0, 202 state->DeclareStep("write"); 222 ASSERT_EQ(StreamAll(write, fd.get(), new_blob->data.get(), info_.blob_size), 0, 223 "Failed to write Data");
|
/fuchsia/zircon/system/utest/zxcrypt/ |
H A D | test-device.cpp | 227 ASSERT_OK(ToStatus(write(off, len))); 262 ASSERT_OK(ToStatus(::write(ramdisk_.get(), block, block_size_)));
|
/fuchsia/zircon/system/utest/blobfs/ |
H A D | blobfs.cpp | 458 // Helper for streaming operations (such as read, write) which may need to be 499 ASSERT_EQ(StreamAll(write, fd.get(), info->data.get(), info->size_data), 0, 500 "Failed to write Data"); 510 ASSERT_EQ(StreamAll(write, fd.get(), info->data.get(), info->size_data), 0, 511 "Failed to write Data"); 535 StreamAll(write, fd.get(), info->data.get(), info->size_data); 989 ASSERT_LT(write(fd.get(), info->data.get(), 1), 0, 994 ASSERT_LT(write(fd.get(), info->data.get(), 1), 0, 1012 // Partially write out first blob. 1016 ASSERT_EQ(StreamAll(write, f [all...] |
/fuchsia/zircon/kernel/vm/include/vm/ |
H A D | vm_object_paged.h | 136 // internal read/write routine that takes a templated copy function to help share some code 138 zx_status_t ReadWriteInternal(uint64_t offset, size_t len, bool write, T copyfunc);
|
/fuchsia/zircon/system/core/netsvc/ |
H A D | netfile.c | 79 // If we're writing a file, actually write to "filename + TMP_SUFFIX", 147 printf("netsvc: write, but no open file\n"); 161 printf("netsvc: write, but no open file\n"); 164 ssize_t n = write(netfile.fd, data, len); 197 // Clean up if we abort before finishing a write. Close out and unlink it, rather than
|
/fuchsia/zircon/system/core/pwrbtn-monitor/ |
H A D | pwrbtn-monitor.cpp | 240 write(fd, "poweroff", strlen("poweroff"));
|
/fuchsia/zircon/system/dev/audio/usb-audio/ |
H A D | usb-midi-sink.c | 195 .write = usb_midi_sink_write,
|