Searched refs:write (Results 151 - 175 of 230) sorted by relevance

12345678910

/fuchsia/zircon/system/dev/input/hidctl/
H A Dhidctl.cpp246 zx_status_t status = data_.write(ZX_SOCKET_SHUTDOWN_READ, nullptr, 0, nullptr);
/fuchsia/zircon/system/uapp/dd/
H A Dmain.c20 fprintf(stderr, " bs=BYTES : read and write BYTES bytes at a time\n");
24 fprintf(stderr, " obs=BYTES : write BYTES bytes at a time (default: 512)\n");
25 fprintf(stderr, " of=FILE : write to FILE instead of stdout\n");
261 if (write(out, buf + off, wlen) != (ssize_t) wlen) {
262 fprintf(stderr, "Couldn't write %zu bytes to output\n", wlen);
/fuchsia/zircon/system/uapp/i2c/
H A Di2c.c30 printf("write [data]: Write data to the target slave device.\n");
32 printf("of data to write to the target device.\n");
42 printf("For example, to perform a write of one byte and then a read\n");
107 ret = write(fd, buf, argc);
261 } else if (!strcmp("write", cmd)) {
/fuchsia/zircon/system/uapp/iotime/
H A Diotime.c66 const char* fn_name = is_read ? "read" : "write";
69 ssize_t r = is_read ? read(fd, buffer, xfer) : write(fd, buffer, xfer);
168 "usage: iotime <read|write> <posix|block|fifo> <device|--ramdisk> <bytes> <bufsize>\n\n"
214 fprintf(stderr, "%s %zu bytes in %zu ns: ", is_read ? "read" : "write", total, res);
/fuchsia/zircon/system/uapp/usb-test-fwloader/
H A Dusb-test-fwloader.cpp116 zx_status_t status = vmo.write(buf.get(), total_read, res);
/fuchsia/zircon/system/ulib/fdio/
H A Dnull.c153 .write = fdio_default_write,
H A Dvmofile.c156 .write = fdio_default_write,
H A Dpipe.c68 // TODO: let the generic write() to do this loop
230 .write = zx_pipe_write,
/fuchsia/zircon/system/ulib/logger/
H A Dlogger.cpp87 ssize_t status = write(fd_, buf.data(), buf.size());
/fuchsia/zircon/system/ulib/minfs/
H A Dbcache.cpp49 if (write(fd_.get(), data, kMinfsBlockSize) != kMinfsBlockSize) {
50 FS_TRACE_ERROR("minfs: cannot write block %u\n", bno);
/fuchsia/zircon/system/ulib/zxio/
H A Dzxio.cpp91 return io->ops->write(zxio_ctx_get(io), buffer, capacity, out_actual);
/fuchsia/zircon/system/utest/fs/
H A Dtest-attr.c76 ASSERT_EQ(write(fd, &data, 1), 1, "Couldn't write a single byte to file");
H A Dtest-persist.cpp125 ASSERT_EQ(write(fd, &buffers[i][0], BufferSize), BufferSize);
H A Dtest-rename.c103 ASSERT_STREAM_ALL(write, fd, (uint8_t*) file_contents, strlen(file_contents));
H A Dtest-rw-workers.c91 // data in buffer available to write
117 if ((r = write(w->fd, w->u8 + off, xfer)) < 0) {
118 fprintf(stderr, "worker('%s') write failed @%u: %d\n",
/fuchsia/zircon/system/utest/libfzl/
H A Dfzl-test.cpp129 // Create, read, write
142 zx_status_t status = fifo_0.write(numbers, 2, &actual);
/fuchsia/zircon/system/utest/logger/
H A Dtest.cpp79 ASSERT_EQ(ZX_OK, logger_handle_.write(0, &req, sizeof(req), handles, 1));
/fuchsia/zircon/third_party/uapp/fsck-msdosfs/
H A Ddir.c332 || write(f, delbuf, clsz) != clsz) {
333 perr("Unable to write directory");
847 || write(f, buffer, last) != last) {
848 perr("Unable to write directory");
866 || write(f, buffer, last) != last) {
867 perr("Unable to write directory");
993 || (size_t)write(dosfs, lfbuf, boot->ClusterSize) != boot->ClusterSize) {
994 perr("could not write LOST.DIR");
/fuchsia/zircon/system/ulib/tftp/
H A Dtftp-test.cpp101 "bad open (write) function pointer");
103 EXPECT_EQ((tftp_file_write_cb)write_fn, ts.session->file_interface.write, "bad write function pointer");
104 EXPECT_EQ((tftp_file_close_cb)close_fn, ts.session->file_interface.close, "bad write function pointer");
170 EXPECT_TRUE(verify_write_request(ts), "bad write request");
311 ASSERT_TRUE(verify_write_request(ts), "bad write request");
520 EXPECT_EQ(TFTP_NO_ERROR, status, "receive write request failed");
771 ASSERT_EQ(TFTP_NO_ERROR, status, "error generating write request");
772 ASSERT_TRUE(verify_write_request(ts), "bad write request");
952 ASSERT_EQ(TFTP_NO_ERROR, status, "error generating write reques
[all...]
/fuchsia/zircon/kernel/arch/x86/hypervisor/
H A Dvmexit_priv.h276 bool write; member in struct:EptViolationInfo
/fuchsia/zircon/system/host/bootserver/
H A Dnetboot.c100 int r = write(s, msg, len);
112 fprintf(stderr, "\n%s: error: Socket write error %d\n", appname, errno);
/fuchsia/zircon/system/ulib/blobfs/
H A Dcommon.cpp144 if (write(fd, data, kBlobfsBlockSize) != kBlobfsBlockSize) {
145 fprintf(stderr, "blobfs: cannot write block %" PRIu64 "\n", bno);
258 // write the root block to disk
262 fprintf(stderr, "Failed to write root block\n");
266 // write allocation bitmap to disk
270 fprintf(stderr, "Failed to write blockmap block %" PRIu64 "\n", n);
275 // write node map to disk
/fuchsia/zircon/system/ulib/runtests-utils/
H A Dlog-exporter.cpp295 status = logger.write(0, &req, sizeof(req), &listener_handle, 1);
/fuchsia/zircon/system/utest/fs-bench/
H A Dfs-bench.cpp42 state->DeclareStep("write");
48 ASSERT_EQ(write(fd.get(), data, data_size), data_size);
/fuchsia/zircon/system/utest/fs-vnode/
H A Dteardown-tests.cpp93 ASSERT_EQ(client.write(0, &request, sizeof(request), nullptr, 0), ZX_OK);

Completed in 190 milliseconds

12345678910