Searched refs:write (Results 51 - 75 of 230) sorted by relevance

12345678910

/fuchsia/zircon/third_party/ulib/musl/src/stdio/
H A Dvswprintf.c37 f.write = sw_write;
H A Dvsnprintf.c20 FILE f = {.lbf = EOF, .write = sn_write, .lock = -1};
/fuchsia/zircon/third_party/ulib/ngunwind/src/mi/
H A Dcommon.c33 return write (2, string, strlen (string));
/fuchsia/zircon/system/utest/fs/
H A Dtest-minfs.cpp208 ASSERT_EQ(write(fd, data, sizeof(data)), sizeof(data));
286 ASSERT_EQ(write(med_fd.get(), data, sizeof(data)), sizeof(data));
293 // We should now have exactly 1 free block remaining. Attempt to write into the indirect
298 ASSERT_LT(write(med_fd.get(), data, sizeof(data)), 0);
303 ASSERT_EQ(write(sml_fd.get(), data, sizeof(data)), sizeof(data));
305 // Without block reservation, something from the failed write remains allocated. Try editing
355 // are remaining), write to sml_fd until only 1 remains.
356 ASSERT_EQ(write(sml_fd.get(), data, sizeof(data)), sizeof(data));
390 ASSERT_EQ(write(sml_fd.get(), data, sizeof(data)), sizeof(data));
403 // are remaining), write t
[all...]
/fuchsia/zircon/system/utest/zxcrypt/
H A Dzxcrypt.cpp246 EXPECT_LT(device.write(one, one), 0);
250 EXPECT_LT(device.write(one, one), 0);
254 EXPECT_LT(device.write(one, one - 1), 0);
258 EXPECT_LT(device.write(one, one + 1), 0);
282 EXPECT_NE(device.write(n, one), one_s);
285 EXPECT_NE(device.write(n - one, two), two_s);
288 EXPECT_NE(device.write(two, n - one), n_s - one_s);
291 EXPECT_NE(device.write(one, n), n_s);
510 EXPECT_NE(device.write(n, one), one_s);
521 EXPECT_EQ(device.write(
[all...]
H A Dtest-device.h86 ssize_t write(zx_off_t off, size_t len) { function in class:zxcrypt::testing::final
87 return ::write(zxcrypt_.get(), to_write_.get() + off, len);
96 return vmo_.write(to_write_.get() + off, 0, len);
99 // Sends a request over the block fifo to read or write the blocks given by |off| and |len|,
110 // Sends |num| requests over the block fifo to read or write blocks.
141 // Test helpers that perform a |lseek| and a |read| or |write| together. |off| and |len| are in
205 // An internal write buffer, initially filled with pseudo-random data
207 // An internal write buffer, initially filled with zeros.
/fuchsia/zircon/system/uapp/biotime/
H A Dbiotime.cpp127 bool write; member in struct:__anon828
160 req.opcode = a->write ? BLOCKIO_WRITE : BLOCKIO_READ;
266 " -write test writing to the block device\n"
267 " -live-dangerously required if using \"-write\"\n"
293 a.write = false;
321 a.write = false;
322 } else if (!strcmp(argv[0], "-write")) {
323 a.write = true;
347 if (a.write && !live_dangerously) {
349 " \"-write\"\
[all...]
/fuchsia/zircon/system/uapp/netdump/
H A Dnetdump.c206 if (write(fd, &shb, sizeof(shb)) != sizeof(shb)) {
207 fprintf(stderr, "Couldn't write PCAP Section Header block\n");
228 if (write(fd, &idb, sizeof(idb)) != sizeof(idb)) {
229 fprintf(stderr, "Couldn't write PCAP Interface Description Block\n");
250 if (write(fd, &pkt, sizeof(pkt)) != sizeof(pkt)) {
251 fprintf(stderr, "Couldn't write packet header\n");
254 if (write(fd, data, len) != (ssize_t) len) {
255 fprintf(stderr, "Couldn't write packet\n");
262 if (write(fd, &zero, padding) != (ssize_t) padding) {
263 fprintf(stderr, "Couldn't write paddin
[all...]
/fuchsia/zircon/system/dev/block/sdmmc/
H A Dsdmmc.h114 zx_status_t sdio_io_rw_direct(sdmmc_device_t* dev, bool write, uint32_t fn_idx,
116 zx_status_t sdio_io_rw_extended(sdmmc_device_t *dev, bool write, uint32_t fn_idx,
H A Dops.c167 zx_status_t sdio_io_rw_direct(sdmmc_device_t* dev, bool write, uint32_t fn_idx, argument
170 if (write) {
200 zx_status_t sdio_io_rw_extended(sdmmc_device_t *dev, bool write, uint32_t fn_idx, argument
206 if (write) {
235 .cmd_flags = write ? (SDIO_IO_RW_DIRECT_EXTENDED_FLAGS) :
360 uint32_t arg = (3 << 24) | // write byte
/fuchsia/zircon/system/uapp/xdc-test/
H A Dxdc-test.cpp34 " -f <filename> : Name of file to write to or read from.\n"
71 ssize_t res = write(xdc_fd.get(), buf, sizeof(file_header));
73 fprintf(stderr, "Fatal write err: %s\n", strerror(errno));
100 ssize_t res = write(dest_fd.get(), buf.get() + total_written, buf_len - total_written);
102 fprintf(stderr, "Fatal write err: %s\n", strerror(errno));
/fuchsia/zircon/system/ulib/ddktl/include/ddktl/protocol/
H A Dgpio.h60 ops_.write = GpioWrite;
125 return ops_->write(ctx_, value);
H A Dgpio-impl.h60 ops_.write = GpioImplWrite;
125 return ops_->write(ctx_, index, value);
/fuchsia/zircon/system/uapp/crasher/
H A Dcrasher.c31 // test that we cannot write to RO code memory
106 write(1, ".", 1);
120 {"write0", blind_write, "write to address 0x0"},
122 {"writero", ro_write, "write to read only code segment"},
/fuchsia/zircon/system/uapp/midiecho/
H A Dmidiecho.c95 if (write(dest_fd, buffer, length) < 0) break;
/fuchsia/zircon/system/ulib/ddktl/test/
H A Dddktl-test.cpp27 s.write(0u, line, strlen(line), nullptr);
/fuchsia/zircon/system/ulib/fdio/
H A Doutput.c35 .write = log_write,
/fuchsia/zircon/system/ulib/fs-management/
H A Dfvm.cpp125 if (write(fd, mvmo->GetData(), metadata_size) != static_cast<ssize_t>(metadata_size)) {
130 if (write(fd, mvmo->GetData(), metadata_size) != static_cast<ssize_t>(metadata_size)) {
171 if (write(fd, buf.get(), metadata_size) != static_cast<ssize_t>(metadata_size)) {
172 fprintf(stderr, "fvm_overwrite: Failed to write metadata\n");
177 if (write(fd, buf.get(), metadata_size) != static_cast<ssize_t>(metadata_size)) {
178 fprintf(stderr, "fvm_overwrite: Failed to write metadata (secondary)\n");
/fuchsia/zircon/system/ulib/zx/include/lib/zx/
H A Dchannel.h47 zx_status_t write(uint32_t flags, const void* bytes, uint32_t num_bytes, function in class:zx::channel
/fuchsia/zircon/third_party/lib/acpica/source/include/acpica/platform/
H A Dacmsvc.h62 #define write _write macro
82 /* Eliminate warnings for POSIX clib function names (open, write, etc.) */
/fuchsia/zircon/system/utest/fdio/
H A Dfdio_handle_fd.c76 ssize_t written = write(fds[1], message, sizeof(message));
77 ASSERT_GE(written, 0, "write() failed");
79 "write() should have written the whole message.");
100 // Sleep to try to ensure the write happens after the poll.
103 ssize_t written = write(*(int*)arg, message, sizeof(message));
104 ASSERT_GE(written, 0, "write() failed");
106 "write() should have written the whole message.");
169 // Make pipe nonblocking, write message
174 ssize_t written = write(fds[1], message, sizeof(message));
175 ASSERT_GE(written, 0, "write() faile
[all...]
/fuchsia/zircon/system/utest/runtests-utils/
H A Druntests-utils-test-utils.cpp40 static_cast<size_t>(write(fd, kScriptShebang, sizeof(kScriptShebang))));
42 static_cast<size_t>(write(fd, contents.data(), contents.size())));
68 ZX_ASSERT_MSG(write(output_fd.get(), buf, n) == n, "write failed: %s", strerror(errno));
/fuchsia/zircon/system/dev/block/block/
H A Dblock.c226 // Adapter from read/write to block_op_t
227 // This is technically incorrect because the read/write hooks should not block,
240 zx_off_t off, bool write) {
264 if (write) {
271 bop->command = write ? BLOCK_OP_WRITE : BLOCK_OP_READ;
288 if (!write) {
371 .write = blkdev_write,
239 blkdev_io(blkdev_t* bdev, void* buf, size_t count, zx_off_t off, bool write) argument
/fuchsia/zircon/system/dev/bus/virtio/
H A Dblock.cpp280 zx_status_t BlockDevice::QueueTxn(block_txn_t* txn, bool write, size_t bytes, argument
294 req->type = write ? VIRTIO_BLK_T_OUT : VIRTIO_BLK_T_IN;
358 if (!write)
359 desc->flags |= VRING_DESC_F_WRITE; /* mark buffer as write-only if its a block read */
377 void BlockDevice::QueueReadWriteTxn(block_txn_t* txn, bool write) { argument
427 zx_status_t status = QueueTxn(txn, write, bytes, pages, num_pages, &idx);
/fuchsia/zircon/system/host/fvm/container/
H A Dsparse.cpp210 fprintf(stderr, "Commit: Nothing to write.\n");
229 if (write(fd_.get(), &image_, sizeof(fvm::sparse_image_t)) != sizeof(fvm::sparse_image_t)) {
238 if (write(fd_.get(), &partition, sizeof(fvm::partition_descriptor_t))
247 if (write(fd_.get(), &extent, sizeof(fvm::extent_descriptor_t))
286 fprintf(stderr, "Failed to write data to sparse file\n");
408 } else if (write(fd_.get(), data, length) != length) {
426 if (write(fd_.get(), compression_.GetData(), compression_.GetLength())

Completed in 258 milliseconds

12345678910