/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | pwritev.c | 30 struct iovec iov[2]; in pwritev_0100() local 32 iov[0].iov_base = buf1; in pwritev_0100() 33 iov[0].iov_len = sizeof(buf1) / sizeof(char); in pwritev_0100() 34 iov[1].iov_base = buf2; in pwritev_0100() 35 iov[1].iov_len = sizeof(buf2) / sizeof(char); in pwritev_0100() 38 int count = sizeof(iov) / sizeof(struct iovec); in pwritev_0100() 39 int ret = pwritev(fd, iov, count, 0); in pwritev_0100() 59 struct iovec iov[2]; in pwritev_0200() local 61 iov[0].iov_base = buf1; in pwritev_0200() 62 iov[ in pwritev_0200() 92 struct iovec iov[2]; pwritev_0300() local [all...] |
H A D | writev.c | 25 * @tc.desc : Writes iovcnt buffers of data described by iov to the file associated with fd 32 struct iovec iov[2]; in writev_0100() local 34 iov[0].iov_base = str0; in writev_0100() 35 iov[0].iov_len = strlen(str0) + 1; in writev_0100() 36 iov[1].iov_base = str1; in writev_0100() 37 iov[1].iov_len = strlen(str1) + 1; in writev_0100() 39 ssize_t result = writev(STDOUT_FILENO, iov, 2); in writev_0100() 40 if (result != (iov[0].iov_len + iov[1].iov_len)) { in writev_0100() 47 * @tc.desc : When iovlen is equal to 0, the data in the structure iov wil 54 struct iovec iov[2]; writev_0200() local [all...] |
H A D | preadv.c | 33 struct iovec iov[2]; in preadv_0100() local 38 iov[0].iov_base = buf1; in preadv_0100() 39 iov[0].iov_len = sizeof(buf1) / sizeof(char); in preadv_0100() 40 iov[1].iov_base = buf2; in preadv_0100() 41 iov[1].iov_len = sizeof(buf2) / sizeof(char); in preadv_0100() 55 int count = sizeof(iov) / sizeof(struct iovec); in preadv_0100() 56 ret = preadv(fd, iov, count, 0); in preadv_0100() 76 struct iovec iov[2]; in preadv_0200() local 78 iov[0].iov_base = buf1; in preadv_0200() 79 iov[ in preadv_0200() [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace.h | 104 struct iovec iov; in ptrace_read_regs() local 109 iov.iov_base = regs; in ptrace_read_regs() 110 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs() 112 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs() 124 struct iovec iov; in ptrace_write_regs() local 129 iov.iov_base = regs; in ptrace_write_regs() 130 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs() 132 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs() 142 struct iovec iov; in show_tar_registers() local 151 iov in show_tar_registers() 188 struct iovec iov; write_tar_registers() local 231 struct iovec iov; show_tm_checkpointed_state() local 279 struct iovec iov; write_ckpt_tar_registers() local 366 struct iovec iov; show_ckpt_fpr() local 390 struct iovec iov; write_ckpt_fpr() local 471 struct iovec iov; show_ckpt_gpr() local 500 struct iovec iov; write_ckpt_gpr() local 544 struct iovec iov; show_vmx_ckpt() local 574 struct iovec iov; write_vmx_ckpt() local 604 struct iovec iov; show_vsx_ckpt() local 633 struct iovec iov; write_vsx_ckpt() local 651 struct iovec iov; show_tm_spr() local [all...] |
/kernel/linux/linux-6.6/tools/testing/selftests/powerpc/ptrace/ |
H A D | ptrace.h | 108 struct iovec iov; in ptrace_read_regs() local 113 iov.iov_base = regs; in ptrace_read_regs() 114 iov.iov_len = n * sizeof(unsigned long); in ptrace_read_regs() 116 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs() 128 struct iovec iov; in ptrace_write_regs() local 133 iov.iov_base = regs; in ptrace_write_regs() 134 iov.iov_len = n * sizeof(unsigned long); in ptrace_write_regs() 136 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs() 146 struct iovec iov; in show_tar_registers() local 155 iov in show_tar_registers() 192 struct iovec iov; write_tar_registers() local 235 struct iovec iov; show_tm_checkpointed_state() local 283 struct iovec iov; write_ckpt_tar_registers() local 370 struct iovec iov; show_ckpt_fpr() local 394 struct iovec iov; write_ckpt_fpr() local 539 struct iovec iov; show_ckpt_gpr() local 568 struct iovec iov; write_ckpt_gpr() local 612 struct iovec iov; show_vmx_ckpt() local 642 struct iovec iov; write_vmx_ckpt() local 672 struct iovec iov; show_vsx_ckpt() local 701 struct iovec iov; write_vsx_ckpt() local 719 struct iovec iov; show_tm_spr() local [all...] |
/third_party/musl/porting/uniproton/kernel/src/stdio/ |
H A D | __stdio_write.c | 10 struct iovec *iov = iovs;
in __stdio_write() local 11 size_t rem = iov[0].iov_len + iov[1].iov_len;
in __stdio_write() 15 cnt = write(f->fd, iov[0].iov_base, iov[0].iov_len);
in __stdio_write() 16 if (0 != iov[1].iov_len) cnt += write(f->fd, iov[1].iov_base, iov[1].iov_len);
in __stdio_write() 25 return iovcnt == 2 ? 0 : len-iov[0].iov_len;
in __stdio_write() 28 if (cnt > iov[ in __stdio_write() [all...] |
H A D | __stdio_read.c | 7 struct iovec iov[2] = {
in __stdio_read() local 13 cnt = read(f->fd, iov[0].iov_base, iov[0].iov_len);
in __stdio_read() 14 if (iov[1].iov_len > iov[0].iov_len) cnt += read(f->fd, iov[1].iov_base, iov[1].iov_len - iov[0].iov_len);
in __stdio_read() 19 if (cnt <= iov[0].iov_len) return cnt;
in __stdio_read() 20 cnt -= iov[ in __stdio_read() [all...] |
/third_party/musl/porting/liteos_m/kernel/src/stdio/ |
H A D | __stdio_write.c | 10 struct iovec *iov = iovs;
in __stdio_write() local 11 size_t rem = iov[0].iov_len + iov[1].iov_len;
in __stdio_write() 15 cnt = write(f->fd, iov[0].iov_base, iov[0].iov_len);
in __stdio_write() 16 if (0 != iov[1].iov_len) cnt += write(f->fd, iov[1].iov_base, iov[1].iov_len);
in __stdio_write() 25 return iovcnt == 2 ? 0 : len-iov[0].iov_len;
in __stdio_write() 28 if (cnt > iov[ in __stdio_write() [all...] |
H A D | __stdio_read.c | 7 struct iovec iov[2] = {
in __stdio_read() local 13 cnt = read(f->fd, iov[0].iov_base, iov[0].iov_len);
in __stdio_read() 14 if (iov[1].iov_len > iov[0].iov_len) cnt += read(f->fd, iov[1].iov_base, iov[1].iov_len - iov[0].iov_len);
in __stdio_read() 19 if (cnt <= iov[0].iov_len) return cnt;
in __stdio_read() 20 cnt -= iov[ in __stdio_read() [all...] |
/kernel/linux/linux-5.10/drivers/pci/ |
H A D | iov.c | 39 * Update iov->offset and iov->stride when NumVFs is written. 43 struct pci_sriov *iov = dev->sriov; in pci_iov_set_numvfs() local 45 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn); in pci_iov_set_numvfs() 46 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_OFFSET, &iov->offset); in pci_iov_set_numvfs() 47 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_STRIDE, &iov->stride); in pci_iov_set_numvfs() 59 struct pci_sriov *iov = dev->sriov; in compute_max_vf_buses() local 62 for (nr_virtfn = iov in compute_max_vf_buses() 167 struct pci_sriov *iov = dev->sriov; pci_iov_add_virtfn() local 468 struct pci_sriov *iov = dev->sriov; sriov_enable() local 572 struct pci_sriov *iov = dev->sriov; sriov_del_vfs() local 581 struct pci_sriov *iov = dev->sriov; sriov_disable() local 609 struct pci_sriov *iov; sriov_init() local 729 struct pci_sriov *iov = dev->sriov; sriov_restore_state() local 789 struct pci_sriov *iov = dev->sriov; pci_iov_remove() local 808 struct pci_sriov *iov = dev->is_physfn ? dev->sriov : NULL; pci_iov_update_resource() local [all...] |
/kernel/linux/linux-6.6/drivers/pci/ |
H A D | iov.c | 82 * Update iov->offset and iov->stride when NumVFs is written. 86 struct pci_sriov *iov = dev->sriov; in pci_iov_set_numvfs() local 88 pci_write_config_word(dev, iov->pos + PCI_SRIOV_NUM_VF, nr_virtfn); in pci_iov_set_numvfs() 89 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_OFFSET, &iov->offset); in pci_iov_set_numvfs() 90 pci_read_config_word(dev, iov->pos + PCI_SRIOV_VF_STRIDE, &iov->stride); in pci_iov_set_numvfs() 102 struct pci_sriov *iov = dev->sriov; in compute_max_vf_buses() local 105 for (nr_virtfn = iov in compute_max_vf_buses() 295 struct pci_sriov *iov = dev->sriov; pci_iov_add_virtfn() local 605 struct pci_sriov *iov = dev->sriov; sriov_enable() local 709 struct pci_sriov *iov = dev->sriov; sriov_del_vfs() local 718 struct pci_sriov *iov = dev->sriov; sriov_disable() local 746 struct pci_sriov *iov; sriov_init() local 866 struct pci_sriov *iov = dev->sriov; sriov_restore_state() local 926 struct pci_sriov *iov = dev->sriov; pci_iov_remove() local 945 struct pci_sriov *iov = dev->is_physfn ? dev->sriov : NULL; pci_iov_update_resource() local [all...] |
/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/ |
H A D | pci-sriov.c | 152 struct pnv_iov_data *iov; in pnv_pci_ioda_fixup_iov_resources() local 155 iov = kzalloc(sizeof(*iov), GFP_KERNEL); in pnv_pci_ioda_fixup_iov_resources() 156 if (!iov) in pnv_pci_ioda_fixup_iov_resources() 158 pdev->dev.archdata.iov_data = iov; in pnv_pci_ioda_fixup_iov_resources() 197 iov->m64_single_mode[i] = true; in pnv_pci_ioda_fixup_iov_resources() 212 iov->need_shift = true; in pnv_pci_ioda_fixup_iov_resources() 226 kfree(iov); in pnv_pci_ioda_fixup_iov_resources() 258 struct pnv_iov_data *iov = pnv_iov_get(pdev); in pnv_pci_iov_resource_alignment() local 261 * iov ca in pnv_pci_iov_resource_alignment() 292 struct pnv_iov_data *iov; pnv_pci_vf_release_m64() local 404 pnv_pci_alloc_m64_bar(struct pnv_phb *phb, struct pnv_iov_data *iov) pnv_pci_alloc_m64_bar() argument 423 struct pnv_iov_data *iov; pnv_pci_vf_assign_m64() local 512 struct pnv_iov_data *iov; pnv_pci_vf_resource_shift() local 600 struct pnv_iov_data *iov; pnv_pci_sriov_disable() local 626 struct pnv_iov_data *iov; pnv_ioda_setup_vf_PE() local 683 struct pnv_iov_data *iov; pnv_pci_sriov_enable() local [all...] |
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/ |
H A D | pci-sriov.c | 149 struct pnv_iov_data *iov; in pnv_pci_ioda_fixup_iov_resources() local 152 iov = kzalloc(sizeof(*iov), GFP_KERNEL); in pnv_pci_ioda_fixup_iov_resources() 153 if (!iov) in pnv_pci_ioda_fixup_iov_resources() 155 pdev->dev.archdata.iov_data = iov; in pnv_pci_ioda_fixup_iov_resources() 194 iov->m64_single_mode[i] = true; in pnv_pci_ioda_fixup_iov_resources() 209 iov->need_shift = true; in pnv_pci_ioda_fixup_iov_resources() 223 kfree(iov); in pnv_pci_ioda_fixup_iov_resources() 252 struct pnv_iov_data *iov = pnv_iov_get(pdev); in pnv_pci_iov_resource_alignment() local 255 * iov ca in pnv_pci_iov_resource_alignment() 286 struct pnv_iov_data *iov; pnv_pci_vf_release_m64() local 398 pnv_pci_alloc_m64_bar(struct pnv_phb *phb, struct pnv_iov_data *iov) pnv_pci_alloc_m64_bar() argument 417 struct pnv_iov_data *iov; pnv_pci_vf_assign_m64() local 506 struct pnv_iov_data *iov; pnv_pci_vf_resource_shift() local 594 struct pnv_iov_data *iov; pnv_pci_sriov_disable() local 620 struct pnv_iov_data *iov; pnv_ioda_setup_vf_PE() local 677 struct pnv_iov_data *iov; pnv_pci_sriov_enable() local [all...] |
/kernel/linux/linux-6.6/include/linux/ |
H A D | vringh.h | 88 * @iov: array of iovecs to operate on 89 * @consumed: number of bytes consumed within iov[i] 91 * @used: number of iovecs present in @iov 93 * corresponds to allocated memory of @iov 96 * Remaining data is iov + i, of used - i elements. 99 struct iovec *iov; member 100 size_t consumed; /* Within iov[i] */ 106 * @iov: array of iovecs to operate on 107 * @consumed: number of bytes consumed within iov[i] 109 * @used: number of iovecs present in @iov 117 struct kvec *iov; global() member 132 vringh_iov_init(struct vringh_iov *iov, struct iovec *iovec, unsigned num) vringh_iov_init() argument 141 vringh_iov_reset(struct vringh_iov *iov) vringh_iov_reset() argument 149 vringh_iov_cleanup(struct vringh_iov *iov) vringh_iov_cleanup() argument [all...] |
/kernel/linux/linux-5.10/include/linux/ |
H A D | vringh.h | 82 * Remaining data is iov + i, of used - i elements. 85 struct iovec *iov; member 86 size_t consumed; /* Within iov[i] */ 94 * Remaining data is iov + i, of used - i elements. 97 struct kvec *iov; member 98 size_t consumed; /* Within iov[i] */ 112 static inline void vringh_iov_init(struct vringh_iov *iov, in vringh_iov_init() argument 115 iov->used = iov->i = 0; in vringh_iov_init() 116 iov in vringh_iov_init() 121 vringh_iov_reset(struct vringh_iov *iov) vringh_iov_reset() argument 129 vringh_iov_cleanup(struct vringh_iov *iov) vringh_iov_cleanup() argument [all...] |
/kernel/linux/linux-6.6/drivers/vhost/ |
H A D | vringh.c | 80 * @iov: an iov passed to vringh_getdesc_*() (updated as we consume) 83 void vringh_kiov_advance(struct vringh_kiov *iov, size_t len) in vringh_kiov_advance() argument 85 while (len && iov->i < iov->used) { in vringh_kiov_advance() 86 size_t partlen = min(iov->iov[iov->i].iov_len, len); in vringh_kiov_advance() 88 iov->consumed += partlen; in vringh_kiov_advance() 89 iov in vringh_kiov_advance() 107 vringh_iov_xfer(struct vringh *vrh, struct vringh_kiov *iov, void *ptr, size_t len, int (*xfer)(const struct vringh *vrh, void *addr, void *ptr, size_t len)) vringh_iov_xfer() argument 218 resize_iovec(struct vringh_kiov *iov, gfp_t gfp) resize_iovec() argument 326 struct vringh_kiov *iov; __vringh_iov() local 1111 } iov; global() member 1184 } iov; copy_from_iotlb() local 1230 } iov; copy_to_iotlb() local 1276 } iov; getu16_iotlb() local 1313 } iov; putu16_iotlb() local [all...] |
/third_party/lwip/src/core/distributed_net/ |
H A D | udp_transmit.c | 75 struct iovec iov[2] = {0}; in udp_transmit_sendto() local 76 (void)memset_s(iov, sizeof(iov), 0, sizeof(iov)); in udp_transmit_sendto() 77 iov[0].iov_base = (void *)&data; in udp_transmit_sendto() 78 iov[0].iov_len = sizeof(data); in udp_transmit_sendto() 79 iov[1].iov_base = (void *)buf; in udp_transmit_sendto() 80 iov[1].iov_len = buf_len; in udp_transmit_sendto() 89 send_hdr.msg_iov = iov; in udp_transmit_sendto() 115 struct iovec *iov in udp_transmit_sendmsg() local [all...] |
/test/xts/hats/kernel/syscalls/fileio/preadv/ |
H A D | PreadvApiTest.cpp | 76 struct iovec iov[2] = { in HWTEST_F() local 89 size = preadv(fd, iov, 2, 0); in HWTEST_F() 91 EXPECT_STREQ(static_cast<char *>(iov[0].iov_base), TEST_DATA); in HWTEST_F() 95 size = preadv(fd, iov, 1, midLen); in HWTEST_F() 97 EXPECT_STREQ(static_cast<char *>(iov[0].iov_base), &TEST_DATA[midLen]); in HWTEST_F() 101 size = preadv(fd, iov, 1, TEST_LEN); in HWTEST_F() 119 struct iovec iov = { in HWTEST_F() local 124 size = preadv(-1, &iov, 1, 0); in HWTEST_F() 141 struct iovec iov = { in HWTEST_F() local 146 size = preadv(fd, &iov, in HWTEST_F() 165 struct iovec iov[2] = { HWTEST_F() local 200 struct iovec iov[2] = { HWTEST_F() local [all...] |
/kernel/linux/linux-5.10/drivers/usb/usbip/ |
H A D | vhci_tx.c | 59 struct kvec *iov; in vhci_send_cmd_submit() local 75 memset(&iov, 0, sizeof(iov)); in vhci_send_cmd_submit() 85 iov = kcalloc(iovnum, sizeof(*iov), GFP_KERNEL); in vhci_send_cmd_submit() 86 if (!iov) { in vhci_send_cmd_submit() 99 iov[iovnum].iov_base = &pdu_header; in vhci_send_cmd_submit() 100 iov[iovnum].iov_len = sizeof(pdu_header); in vhci_send_cmd_submit() 109 iov[iovnum].iov_base = sg_virt(sg); in vhci_send_cmd_submit() 110 iov[iovnu in vhci_send_cmd_submit() 192 struct kvec iov; vhci_send_cmd_unlink() local [all...] |
/kernel/linux/linux-6.6/drivers/usb/usbip/ |
H A D | vhci_tx.c | 59 struct kvec *iov; in vhci_send_cmd_submit() local 75 memset(&iov, 0, sizeof(iov)); in vhci_send_cmd_submit() 85 iov = kcalloc(iovnum, sizeof(*iov), GFP_KERNEL); in vhci_send_cmd_submit() 86 if (!iov) { in vhci_send_cmd_submit() 99 iov[iovnum].iov_base = &pdu_header; in vhci_send_cmd_submit() 100 iov[iovnum].iov_len = sizeof(pdu_header); in vhci_send_cmd_submit() 109 iov[iovnum].iov_base = sg_virt(sg); in vhci_send_cmd_submit() 110 iov[iovnu in vhci_send_cmd_submit() 192 struct kvec iov; vhci_send_cmd_unlink() local [all...] |
/third_party/musl/porting/liteos_a/kernel/src/stdio/ |
H A D | __stdio_write.c | 10 struct iovec *iov = iovs; in __stdio_write() local 11 size_t rem = iov[0].iov_len + iov[1].iov_len; in __stdio_write() 15 cnt = writev(f->fd, iov, iovcnt); in __stdio_write() 24 return iovcnt == 2 ? 0 : len-iov[0].iov_len; in __stdio_write() 27 if (cnt > iov[0].iov_len) { in __stdio_write() 28 cnt -= iov[0].iov_len; in __stdio_write() 29 iov++; iovcnt--; in __stdio_write() 31 iov[0].iov_base = (char *)iov[ in __stdio_write() [all...] |
/kernel/linux/linux-5.10/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_mbx.c | 133 vfno = RING_TO_VFNO(i, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler() 134 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler() 145 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler() 155 vfno = RING_TO_VFNO(i + 64, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler() 156 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler() 168 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler() 179 ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs, in nitrox_mbox_init() 181 if (!ndev->iov.vfdev) in nitrox_mbox_init() 184 for (i = 0; i < ndev->iov in nitrox_mbox_init() [all...] |
/kernel/linux/linux-6.6/drivers/crypto/cavium/nitrox/ |
H A D | nitrox_mbx.c | 137 vfno = RING_TO_VFNO(i, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler() 138 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler() 149 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler() 160 vfno = RING_TO_VFNO(i + 64, ndev->iov.max_vf_queues); in nitrox_pf2vf_mbox_handler() 161 vfdev = ndev->iov.vfdev + vfno; in nitrox_pf2vf_mbox_handler() 173 queue_work(ndev->iov.pf2vf_wq, &pfwork->pf2vf_resp); in nitrox_pf2vf_mbox_handler() 184 ndev->iov.vfdev = kcalloc(ndev->iov.num_vfs, in nitrox_mbox_init() 186 if (!ndev->iov.vfdev) in nitrox_mbox_init() 189 for (i = 0; i < ndev->iov in nitrox_mbox_init() [all...] |
/kernel/linux/linux-5.10/drivers/vhost/ |
H A D | vringh.c | 80 struct vringh_kiov *iov, in vringh_iov_xfer() 88 while (len && iov->i < iov->used) { in vringh_iov_xfer() 91 partlen = min(iov->iov[iov->i].iov_len, len); in vringh_iov_xfer() 92 err = xfer(vrh, iov->iov[iov->i].iov_base, ptr, partlen); in vringh_iov_xfer() 98 iov in vringh_iov_xfer() 79 vringh_iov_xfer(struct vringh *vrh, struct vringh_kiov *iov, void *ptr, size_t len, int (*xfer)(const struct vringh *vrh, void *addr, void *ptr, size_t len)) vringh_iov_xfer() argument 191 resize_iovec(struct vringh_kiov *iov, gfp_t gfp) resize_iovec() argument 298 struct vringh_kiov *iov; __vringh_iov() local 1073 iotlb_translate(const struct vringh *vrh, u64 addr, u64 len, struct bio_vec iov[], int iov_size, u32 perm) iotlb_translate() argument 1117 struct bio_vec iov[16]; copy_from_iotlb() local 1136 struct bio_vec iov[16]; copy_to_iotlb() local 1152 struct bio_vec iov; getu16_iotlb() local 1173 struct bio_vec iov; putu16_iotlb() local [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/unistd/unistd_gtest/ |
H A D | unistd_writev_test.cpp | 17 * @tc.desc: Writes iovcnt buffers of data described by iov to the file associated with fd. 24 struct iovec iov[2]; in HWTEST_F() local 26 iov[0].iov_base = reinterpret_cast<void*>(const_cast<char*>(str0)); in HWTEST_F() 27 iov[0].iov_len = strlen(str0) + 1; in HWTEST_F() 28 iov[1].iov_base = reinterpret_cast<void*>(const_cast<char*>(str1)); in HWTEST_F() 29 iov[1].iov_len = strlen(str1) + 1; in HWTEST_F() 31 EXPECT_EQ(iov[0].iov_len + iov[1].iov_len, writev(STDOUT_FILENO, iov, 2)); in HWTEST_F()
|