Searched refs:write (Results 126 - 150 of 230) sorted by relevance

12345678910

/fuchsia/zircon/system/utest/fs/
H A Dtest-unlink.cpp56 ASSERT_EQ(write(fd, STRING_DATA[data_index], len), len);
H A Dtest-link.c47 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 Dfixture.cpp92 ASSERT_GE(write(fd.get(), contents, strlen(contents) + 1), 0);
/fuchsia/zircon/system/utest/ramdisk/
H A Dramdisk.cpp147 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 Dstdio.c36 ASSERT_GT(write(fds[1], "hello", 5), 0, "pipe write failed");
/fuchsia/zircon/third_party/uapp/dash/src/
H A Dmemalloc.c152 write(2, "stunalloc\n", 10);
/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A Dfmemopen.c115 f->write = mwrite;
/fuchsia/zircon/system/dev/ethernet/ethertap/
H A Dethertap.cpp156 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 Dfvm-lz4.cpp260 // 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 Dlibunwind_i.h59 /* 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 Dfvm.cpp310 // 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 Dkilo.c327 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 Dddk_pci.cpp418 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 Dsymbolize208 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 Ddevhost-core.cpp115 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 Ddevhost-api.cpp156 return dev->ops->write(dev->ctx, buf, count, off, actual);
/fuchsia/zircon/system/ulib/gpt/
H A Dgpt.c288 // 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 Dintel-hda-controller.cpp43 .write = nullptr,
316 .write = nullptr,
/fuchsia/zircon/system/utest/blobfs-bench/
H A Dblobfs-bench.cpp72 // 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 Dtest-device.cpp227 ASSERT_OK(ToStatus(write(off, len)));
262 ASSERT_OK(ToStatus(::write(ramdisk_.get(), block, block_size_)));
/fuchsia/zircon/system/utest/blobfs/
H A Dblobfs.cpp458 // 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 Dvm_object_paged.h136 // 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 Dnetfile.c79 // 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 Dpwrbtn-monitor.cpp240 write(fd, "poweroff", strlen("poweroff"));
/fuchsia/zircon/system/dev/audio/usb-audio/
H A Dusb-midi-sink.c195 .write = usb_midi_sink_write,

Completed in 106 milliseconds

12345678910