Searched refs:write (Results 176 - 200 of 230) sorted by relevance

12345678910

/fuchsia/zircon/system/utest/runtests-utils/
H A Dlog-exporter-test.cpp76 // write tags
85 // write msg
135 return listener.write(0, msg, static_cast<uint32_t>(msg_len), NULL, 0);
/fuchsia/zircon/third_party/uapp/dash/src/
H A Doutput.c368 * Version of write which resumes after a signal is caught.
384 i = write(fd, buf, m);
/fuchsia/zircon/third_party/ulib/musl/include/
H A Dunistd.h41 ssize_t write(int, const void*, size_t);
/fuchsia/zircon/kernel/arch/arm64/
H A Dmmu.cpp1158 zx_status_t arm64_mmu_translate(vaddr_t va, paddr_t* pa, bool user, bool write) {
1164 if (write) {
1172 if (write) {
/fuchsia/zircon/system/dev/bus/platform/
H A Dplatform-proxy-device.cpp510 gpio_proto_ops_.write = GpioWrite;
776 if (device_ops_ && device_ops_->write) {
777 return device_ops_->write(ctx_, buf, count, off, actual);
/fuchsia/zircon/system/ulib/fs/
H A Dconnection.cpp34 channel.write(0, &msg, sizeof(zxrio_describe_t), nullptr, 0);
117 channel.write(0, &response, sizeof(zxrio_describe_t), &extra, hcount);
398 channel.write(0, &response, sizeof(zxrio_describe_t), &extra, hcount);
/fuchsia/zircon/system/utest/fvm/
H A Dfvm.cpp349 ASSERT_EQ(vbuf->vmo_.write(&vbuf->buf_[buf_off], buf_off, len), ZX_OK);
401 ASSERT_EQ(write(fd, buf, len), static_cast<ssize_t>(len));
424 ASSERT_EQ(write(fd, buf.get(), len), static_cast<ssize_t>(len));
467 ASSERT_EQ(write(fd, buf.get(), len), -1);
482 ASSERT_EQ(write(fd, buf.get(), kBlksize), -1);
582 // Check that we can read from / write to it.
642 // Test that the fvm driver can cope with a sudden close during read / write
667 if (write(vp_fd, in, sizeof(in)) != static_cast<ssize_t>(sizeof(in))) {
683 // Launch a background thread to read from / write to the VPartition
705 // Test that the fvm driver can cope with a sudden release during read / write
[all...]
/fuchsia/zircon/system/utest/libzx/
H A Dzx-test.cpp156 ASSERT_EQ(channel[0].write(0u, nullptr, 0u, handles, 2), ZX_OK);
180 ASSERT_EQ(channel[0].write(0u, nullptr, 0u, handles, 2), ZX_OK);
236 ASSERT_EQ(channel[1].write(0u, "12345", 5, nullptr, 0u), ZX_OK);
/fuchsia/zircon/kernel/arch/arm64/include/arch/arm64/
H A Dmmu.h281 * inner/outer (IRGN/ORGN): write-back + write-allocate
413 zx_status_t arm64_mmu_translate(vaddr_t va, paddr_t* pa, bool user, bool write);
/fuchsia/zircon/system/dev/i2c/intel-i2c/
H A Dintel-i2c-slave.c306 // Advance past the segment, which should be the beginning of write
455 .write = intel_serialio_i2c_slave_write,
/fuchsia/zircon/system/dev/misc/pty/
H A Dpty-core.c276 .write = pty_client_write,
/fuchsia/zircon/system/dev/serial/ftdi/
H A Dftdi.c304 .write = ftdi_write,
/fuchsia/zircon/system/dev/serial/serial/
H A Dserial.c55 // loop until client socket is closed and we have no more data to write
57 // attempt pending socket write
75 // attempt pending serial write
97 // also wait for writability if we have pending data to write
347 .write = serial_write,
/fuchsia/zircon/system/host/netprotocol/
H A Dnetprotocol.c390 write(s, out, outlen);
/fuchsia/zircon/system/ulib/ddktl/include/ddktl/
H A Ddevice.h19 // can be implemented to define standard behavior (e.g., open/close/read/write),
215 proto->write = Write;
/fuchsia/zircon/system/ulib/ddktl/test/
H A Ddevice-tests.cpp206 EXPECT_EQ(ZX_OK, ops->write(ctx, nullptr, 0, 0, nullptr), "");
/fuchsia/zircon/system/ulib/fdio/
H A Dprivate.h23 // FDIO provides open/close/read/write io over various transports
30 // synchronous remoting of read/write/close operations.
37 ssize_t (*write)(fdio_t* io, const void* data, size_t len); member in struct:fdio_ops
H A Dsocket.c141 // TODO: let the generic write() to do this loop
748 // it learns about the read/write disabled signals.
769 .write = zxsio_write_stream,
804 .write = zxsio_write_dgram,
/fuchsia/zircon/system/ulib/fs-host/
H A Dcommon.cpp422 if (write(depfile_.get(), buf, len) != len) {
413 assert(len < PATH_MAX); char buf[PATH_MAX] = {0}; memcpy(&buf[0], str, len); buf[len++] = �; std::lock_guard<std::mutex> lock(depfile_lock_); if (write(depfile_.get(), buf, len) != len) { fprintf(stderr, �); return ZX_ERR_IO; } return ZX_OK; } zx_status_t FsCreator::RunCommand() { if (!fd_) { fprintf(stderr, �); return ZX_ERR_INTERNAL; } switch (command_) { case Command::kMkfs: return Mkfs(); case Command::kFsck: return Fsck(); case Command::kAdd: case Command::kCp: case Command::kManifest: case Command::kMkdir: return Add(); case Command::kLs: return Ls(); default: fprintf(stderr, �); return ZX_ERR_INTERNAL; } } zx_status_t FsCreator::ParseSize(char* device, size_t* out) { char* sizestr = nullptr; if ((sizestr = strchr(device, �)) != nullptr) { if (command_ != Command::kMkfs) { fprintf(stderr, �); return ZX_ERR_INVALID_ARGS; } *sizestr++ = 0; char* end; size_t size = strtoull(sizestr, &end, 10); if (end == sizestr) { fprintf(stderr, �, GetToolName(), sizestr); return ZX_ERR_INVALID_ARGS; } switch (end[0]) { case �: case �: size *= (1024 * 1024); end++; break; case �: case �: size *= (1024 * 1024 * 1024); end++; break; } if (end[0] || size == 0) { fprintf(stderr, �, GetToolName(), sizestr); return ZX_ERR_INVALID_ARGS; } if (length_ && offset_ + length_ > size) argument
/fuchsia/zircon/system/ulib/intel-hda/codec-utils/
H A Dcodec-driver-base.cpp45 .write = nullptr,
/fuchsia/zircon/third_party/ulib/jemalloc/src/
H A Dutil.c53 * Use syscall(2) rather than write(2) when possible in order to avoid
63 UNUSED ssize_t result = write(STDERR_FILENO, s, strlen(s));
/fuchsia/zircon/third_party/ulib/musl/stubs/
H A Diostubs.c25 weak_alias(stub_write, write);
/fuchsia/zircon/system/ulib/zxcrypt/
H A Dvolume.cpp130 if (cmd == BLOCK_OP_WRITE && (rc = vmo.write(buf, 0, len)) != ZX_OK) {
131 xprintf("zx::vmo::write failed: %s\n", zx_status_get_string(rc));
577 // Only write back blocks that don't match
582 xprintf("write failed for offset %" PRIu64 ": %s\n", offset_, zx_status_get_string(rc));
762 if ((res = write(fd_.get(), block_.get(), block_.len())) < 0) {
763 xprintf("write(%d, %p, %zu) failed: %s\n", fd_.get(), block_.get(), block_.len(),
/fuchsia/zircon/system/utest/fs-management/
H A Dfs-management.cpp518 ASSERT_EQ(write(fd, "hello", 6), 6);
552 ASSERT_LT(write(fd, "hello", 6), 0);
/fuchsia/zircon/system/core/netsvc/
H A Dtftp.c55 atomic_size_t offset; // Buffer write offset (read offset is stored locally)
171 int r = write(file_info->paver.fd, &file_info->paver.buffer[read_ndx],
174 printf("netsvc: couldn't write to paver fd: %d\n", r);
182 printf("netsvc: paver write progress %0.1f%%\n", complete);
513 file_info.is_write ? "write" : "read",

Completed in 115 milliseconds

12345678910