/fuchsia/zircon/system/utest/fdio/ |
H A D | fdio_socketpair.c | 29 // write() and read() should work. 31 status = write(fds[0], buf, 4); 32 if (status < 0) printf("write failed %s\n", strerror(errno)); 33 EXPECT_EQ(status, 4, "write failed"); 40 EXPECT_EQ(memcmp(buf, recvbuf, 4), 0, "data did not make it after write+read"); 81 EXPECT_EQ(write(fds[0], buf, sizeof(buf)), 1, "fds[0] should be initially writable"); 82 EXPECT_EQ(write(fds[1], buf, sizeof(buf)), 1, "fds[1] should be initially writable"); 105 EXPECT_EQ(write(fds[1], buf, sizeof(buf)), 1, ""); 148 EXPECT_EQ(send(fds[0], buf, sizeof(buf), SEND_FLAGS), -1, "write after SHUT_WR"); 149 EXPECT_EQ(errno, EPIPE, "errno after write afte [all...] |
/fuchsia/zircon/system/utest/fs/ |
H A D | test-truncate.cpp | 57 ASSERT_STREAM_ALL(write, fd, str, strlen(str)); 65 // Check that we can still write to a file that has been truncated 67 ASSERT_STREAM_ALL(write, fd, str, strlen(str)); 110 ASSERT_STREAM_ALL(write, fd, u8 + old_len, new_len - old_len); 179 // Repeatedly write to / truncate a file. 205 ASSERT_STREAM_ALL(write, fd, buf.get(), BufSize); 211 // Repeatedly truncate / write to the file 272 ASSERT_EQ(write(fd, buf, sizeof(buf)), sizeof(buf));
|
H A D | test-resize.cpp | 91 ASSERT_EQ(write(fd, buf.get(), kBufSize), kBufSize);
|
H A D | test-rw.cpp | 25 // Test that zero length read and write operations are valid. 33 // Zero-length write. 34 ASSERT_EQ(write(fd.get(), NULL, 0), 0);
|
/fuchsia/zircon/third_party/tools/android/avb/ |
H A D | avbtool | 239 num_bits: The number of bits to write, e.g. 2048. 240 value: The value to write. 462 signing_file.write(str(raw_data_to_sign)) 787 self._image.write(struct.pack(self.NUM_CHUNKS_AND_BLOCKS_FORMAT, 815 self._image.write(struct.pack(ImageChunk.FORMAT, 834 self._image.write(data) 843 self._image.write(struct.pack(ImageChunk.FORMAT, 849 self._image.write(data) 867 self._image.write(fill_data * (size/4)) 876 self._image.write(struc [all...] |
/fuchsia/zircon/system/dev/block/sdmmc/ |
H A D | sdio.c | 23 static zx_status_t sdio_rw_byte(sdmmc_device_t *dev, bool write, uint8_t fn_idx, uint32_t addr, argument 28 read_byte = write ? NULL : read_byte; 29 write_byte = write ? write_byte : 0; 30 return sdio_io_rw_direct(dev, write, fn_idx, addr, write_byte, read_byte); 55 return sdio_rw_byte(dev, txn->write, fn_idx, addr, 99 st = sdio_io_rw_extended(dev, txn->write, fn_idx, addr, txn->incr, num_blocks, 104 txn->write ? "writ" : "read", fn_idx, st); 116 st = sdio_io_rw_extended(dev, txn->write, fn_idx, addr, txn->incr, 132 txn.write = false; 145 txn.write [all...] |
/fuchsia/zircon/system/dev/bus/virtio/ |
H A D | console.cpp | 20 zx_status_t QueueTransfer(Ring* ring, uintptr_t phys, uint32_t len, bool write) { argument 32 desc->flags = write ? 0 : VRING_DESC_F_WRITE; 154 // Initially the whole receive buffer is available for device to write, so 158 QueueTransfer(&port0_receive_queue_, desc->phys, desc->total_len, /*write*/ 0); 183 device_ops_.write = virtio_console_write; 293 QueueTransfer(&port0_receive_queue_, desc->phys, desc->total_len, /*write*/ 0); 327 QueueTransfer(&port0_transmit_queue_, desc->phys, desc->used_len, /*write*/ 1);
|
/fuchsia/zircon/third_party/uapp/fsck-msdosfs/ |
H A D | boot.c | 124 || write(dosfs, fsinfo, sizeof fsinfo) 126 perr("Unable to write bpbFSInfo"); 241 || write(dosfs, block, sizeof block) != sizeof block) { 242 perr("could not write boot block"); 272 || write(dosfs, fsinfo, sizeof fsinfo) 274 perr("Unable to write bpbFSInfo");
|
/fuchsia/zircon/system/core/devmgr/ |
H A D | device-internal.h | 57 return ops->write(ctx, buf, count, off, actual);
|
H A D | dmctl.cpp | 88 protocol.write = dmctl_write;
|
/fuchsia/zircon/system/uapp/audio/ |
H A D | wav-common.cpp | 72 ssize_t res = ::write(fd_, buf, len); 79 printf("Short write error (%zd < %zu)\n", res, len);
|
/fuchsia/zircon/system/ulib/fdio/ |
H A D | logger.c | 84 .write = log_write,
|
H A D | waitable.c | 71 .write = fdio_default_write,
|
/fuchsia/zircon/system/ulib/fvm/include/fvm/ |
H A D | fvm-lz4.h | 49 void write(uint8_t* indata, size_t length) { function in struct:fvm::SparseReader::buffer 122 // Read from compressed |infile|, decompress, and write to |outfile|.
|
/fuchsia/zircon/system/ulib/syslog/ |
H A D | logger.cpp | 36 if (logger.write(0, &req, sizeof(req), handles, 1) != ZX_OK) {
|
/fuchsia/zircon/system/ulib/zx/include/lib/zx/ |
H A D | vmo.h | 35 zx_status_t write(const void* data, uint64_t offset, size_t len) const { function in class:zx::vmo
|
/fuchsia/zircon/system/ulib/zxio/include/lib/zxio/ |
H A D | ops.h | 58 zx_status_t (*write)(void* ctx, const void* buffer, size_t capacity, member in struct:zxio_ops
|
/fuchsia/zircon/system/utest/namespace/ |
H A D | namespace-test.c | 78 ASSERT_GT(write(fd, "hello", strlen("hello")), 0, "");
|
/fuchsia/zircon/third_party/ulib/musl/src/internal/ |
H A D | stdio_impl.h | 31 size_t (*write)(FILE*, const unsigned char*, size_t); member in struct:_IO_FILE
|
/fuchsia/zircon/third_party/ulib/musl/src/stdio/ |
H A D | open_wmemstream.c | 87 f->write = wms_write;
|
H A D | open_memstream.c | 84 f->write = ms_write;
|
/fuchsia/zircon/system/ulib/blktest/ |
H A D | blktest.cpp | 67 ASSERT_EQ(write(fd.get(), buf.get(), buffer_size), buffer_size); 68 ASSERT_EQ(write(fd.get(), buf.get(), buffer_size / 2), buffer_size / 2); 91 // Read / write non-multiples of the block size 92 ASSERT_EQ(write(fd.get(), buf.get(), blk_size - 1), -1); 93 ASSERT_EQ(write(fd.get(), buf.get(), blk_size / 2), -1); 94 ASSERT_EQ(write(fd.get(), buf.get(), blk_size * 2 - 1), -1); 99 // Read / write from unaligned offset 101 ASSERT_EQ(write(fd.get(), buf.get(), blk_size), -1); 106 // Read / write from beyond end of device 109 ASSERT_EQ(write(f [all...] |
/fuchsia/zircon/system/core/virtcon/ |
H A D | vc-input.cpp | 104 write(fd, "reboot", strlen("reboot")); 226 write(vc->fd, output, length);
|
/fuchsia/zircon/system/dev/lib/hi3660/ |
H A D | hi3660-gpios.c | 71 return pl061_proto_ops.write(gpios, index, value); 92 .write = hi3660_gpio_write,
|
/fuchsia/zircon/system/uapp/lz4/ |
H A D | main.c | 94 ssize_t nw = write(outfd, outbuf, dst_sz); 96 fprintf(stderr, "could not write to %s", outfile); 166 ssize_t nw = write(outfd, outbuf, csz); 168 fprintf(stderr, "could not write to %s", outfile);
|