/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
D | process_vm.c | 33 struct iovec local = {.iov_base = dst, .iov_len = sizeof(dst)}; in process_vm_writev_0100() 34 struct iovec remote = {.iov_base = src, .iov_len = sizeof(src)}; in process_vm_writev_0100() 53 {.iov_base = dst1, .iov_len = sizeof(dst1)}, in process_vm_writev_0200() 54 {.iov_base = dst2, .iov_len = sizeof(dst2)}, in process_vm_writev_0200() 57 {.iov_base = src1, .iov_len = sizeof(src1)}, in process_vm_writev_0200() 58 {.iov_base = src2, .iov_len = sizeof(src2)}, in process_vm_writev_0200() 79 .iov_len = 0, in process_vm_writev_0300() 81 struct iovec remote = {.iov_base = src, .iov_len = sizeof(src)}; in process_vm_writev_0300() 98 remote.iov_len = __VALUE_BUFFER_SIZE__; in process_vm_readv_0100() 101 local.iov_len = __VALUE_BUFFER_SIZE__; in process_vm_readv_0100() [all …]
|
D | vmsplice.c | 35 v[0].iov_len = iov_length; in vmsplice_0100() 37 v[1].iov_len = iov_length; in vmsplice_0100() 39 if (result != v[0].iov_len + v[1].iov_len) { in vmsplice_0100() 40 …vmsplice error get result is %d are not want %d\n", __func__, result, v[0].iov_len + v[1].iov_len); in vmsplice_0100()
|
/third_party/musl/porting/liteos_m/kernel/src/stdio/ |
D | __stdio_write.c | 7 { .iov_base = f->wbase, .iov_len = f->wpos-f->wbase }, in __stdio_write() 8 { .iov_base = (void *)buf, .iov_len = len } in __stdio_write() 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[0].iov_len) { in __stdio_write() 29 cnt -= iov[0].iov_len; in __stdio_write() 33 iov[0].iov_len -= cnt; in __stdio_write()
|
D | __stdio_read.c | 8 { .iov_base = buf, .iov_len = len - !!f->buf_size }, in __stdio_read() 9 { .iov_base = f->buf, .iov_len = f->buf_size } in __stdio_read() 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].i… in __stdio_read() 19 if (cnt <= iov[0].iov_len) return cnt; in __stdio_read() 20 cnt -= iov[0].iov_len; in __stdio_read()
|
/third_party/musl/porting/uniproton/kernel/src/stdio/ |
D | __stdio_write.c | 7 { .iov_base = f->wbase, .iov_len = f->wpos-f->wbase }, in __stdio_write() 8 { .iov_base = (void *)buf, .iov_len = len } in __stdio_write() 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[0].iov_len) { in __stdio_write() 29 cnt -= iov[0].iov_len; in __stdio_write() 33 iov[0].iov_len -= cnt; in __stdio_write()
|
D | __stdio_read.c | 8 { .iov_base = buf, .iov_len = len - !!f->buf_size }, in __stdio_read() 9 { .iov_base = f->buf, .iov_len = f->buf_size } in __stdio_read() 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].i… in __stdio_read() 19 if (cnt <= iov[0].iov_len) return cnt; in __stdio_read() 20 cnt -= iov[0].iov_len; in __stdio_read()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
D | writev.c | 35 iov[0].iov_len = strlen(str0) + 1; in writev_0100() 37 iov[1].iov_len = strlen(str1) + 1; in writev_0100() 40 if (result != (iov[0].iov_len + iov[1].iov_len)) { in writev_0100() 57 iov[0].iov_len = 0; in writev_0200() 59 iov[1].iov_len = strlen(str1) + 1; in writev_0200() 62 if (result != (iov[0].iov_len + iov[1].iov_len)) { in writev_0200()
|
D | pwritev.c | 33 iov[0].iov_len = sizeof(buf1) / sizeof(char); in pwritev_0100() 35 iov[1].iov_len = sizeof(buf2) / sizeof(char); in pwritev_0100() 62 iov[0].iov_len = sizeof(buf1) / sizeof(char); in pwritev_0200() 64 iov[1].iov_len = sizeof(buf2) / sizeof(char); in pwritev_0200() 95 iov[0].iov_len = sizeof(buf1) / sizeof(char); in pwritev_0300() 97 iov[1].iov_len = sizeof(buf2) / sizeof(char); in pwritev_0300()
|
D | preadv.c | 39 iov[0].iov_len = sizeof(buf1) / sizeof(char); in preadv_0100() 41 iov[1].iov_len = sizeof(buf2) / sizeof(char); in preadv_0100() 79 iov[0].iov_len = sizeof(buf1) / sizeof(char); in preadv_0200() 81 iov[1].iov_len = sizeof(buf2) / sizeof(char); in preadv_0200()
|
/third_party/musl/porting/liteos_a/kernel/src/stdio/ |
D | __stdio_write.c | 7 { .iov_base = f->wbase, .iov_len = f->wpos-f->wbase }, in __stdio_write() 8 { .iov_base = (void *)buf, .iov_len = len } in __stdio_write() 11 size_t rem = iov[0].iov_len + iov[1].iov_len; 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() 32 iov[0].iov_len -= cnt; in __stdio_write()
|
D | __stdio_read.c | 8 { .iov_base = buf, .iov_len = len - !!f->buf_size }, in __stdio_read() 9 { .iov_base = f->buf, .iov_len = f->buf_size } in __stdio_read() 13 cnt = iov[0].iov_len ? vfs_readv(f->fd, iov, 2, NULL) in __stdio_read() 14 : read(f->fd, iov[1].iov_base, iov[1].iov_len); in __stdio_read() 19 if (cnt <= iov[0].iov_len) return cnt; in __stdio_read() 20 cnt -= iov[0].iov_len; in __stdio_read()
|
/third_party/rust/crates/rustix/src/backend/libc/io/ |
D | io_slice.rs | 24 iov_len: buf.len(), in new() 32 if self.vec.iov_len < n { in advance() 37 self.vec.iov_len -= n; in advance() 44 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len) } in as_slice() 60 iov_len: buf.len(), in new() 68 if self.vec.iov_len < n { in advance() 73 self.vec.iov_len -= n; in advance() 80 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len) } in as_slice() 85 unsafe { slice::from_raw_parts_mut(self.vec.iov_base as *mut u8, self.vec.iov_len) } in as_mut_slice()
|
/third_party/rust/crates/rustix/src/backend/linux_raw/io/ |
D | io_slice.rs | 26 iov_len: buf.len() as _, in new() 35 if self.vec.iov_len < n as _ { in advance() 40 self.vec.iov_len -= n as __kernel_size_t; in advance() 48 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len as usize) } in as_slice() 66 iov_len: buf.len() as _, in new() 75 if self.vec.iov_len < n as _ { in advance() 80 self.vec.iov_len -= n as __kernel_size_t; in advance() 88 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len as usize) } in as_slice() 95 slice::from_raw_parts_mut(self.vec.iov_base as *mut u8, self.vec.iov_len as usize) in as_mut_slice()
|
/third_party/lwip/ |
D | 0076-fix-recvmsg-return-EINVAL.patch | 19 + /* msg_iov[i].iov_len == 0 dont return ERRVAL 23 + if ((message->msg_iov[i].iov_base == NULL) || ((ssize_t)message->msg_iov[i].iov_len < 0) || 25 if ((message->msg_iov[i].iov_base == NULL) || ((ssize_t)message->msg_iov[i].iov_len <= 0) || 27 ((size_t)(ssize_t)message->msg_iov[i].iov_len != message->msg_iov[i].iov_len) || 29 + ((ssize_t)(buflen + (ssize_t)message->msg_iov[i].iov_len) < 0)) { 31 ((ssize_t)(buflen + (ssize_t)message->msg_iov[i].iov_len) <= 0)) {
|
/third_party/musl/porting/linux/user/src/stdio/ |
D | __stdio_read.c | 17 { .iov_base = buf, .iov_len = len - !!f->buf_size }, in __stdio_read() 18 { .iov_base = f->buf, .iov_len = f->buf_size } in __stdio_read() 22 cnt = iov_buf[0].iov_len ? syscall(SYS_readv, f->fd, iov_buf, 2) in __stdio_read() 23 : syscall(SYS_read, f->fd, iov_buf[1].iov_base, iov_buf[1].iov_len); in __stdio_read() 28 if (cnt <= iov_buf[0].iov_len) { in __stdio_read() 31 cnt -= iov_buf[0].iov_len; in __stdio_read()
|
/third_party/musl/src/stdio/ |
D | __stdio_read.c | 17 { .iov_base = buf, .iov_len = len - !!f->buf_size }, in __stdio_read() 18 { .iov_base = f->buf, .iov_len = f->buf_size } in __stdio_read() 22 cnt = iov_buf[0].iov_len ? syscall(SYS_readv, f->fd, iov_buf, 2) in __stdio_read() 23 : syscall(SYS_read, f->fd, iov_buf[1].iov_base, iov_buf[1].iov_len); in __stdio_read() 28 if (cnt <= iov_buf[0].iov_len) { in __stdio_read() 31 cnt -= iov_buf[0].iov_len; in __stdio_read()
|
/third_party/lwip/src/core/distributed_net/ |
D | udp_transmit.c | 49 if (hdr->msg_iov[i].iov_len > MAX_UDP_PAYLOAD_LEN) { in get_msg_data_len() 53 data_len += (s32_t)hdr->msg_iov[i].iov_len; in get_msg_data_len() 78 iov[0].iov_len = sizeof(data); in udp_transmit_sendto() 80 iov[1].iov_len = buf_len; in udp_transmit_sendto() 122 iov[0].iov_len = sizeof(data); in udp_transmit_sendmsg() 125 iov[i + 1].iov_len = hdr->msg_iov[i].iov_len; in udp_transmit_sendmsg()
|
/third_party/selinux/libselinux/src/ |
D | setrans_client.c | 107 iov[0].iov_len = sizeof(function); in send_request() 109 iov[1].iov_len = sizeof(data1_size); in send_request() 111 iov[2].iov_len = sizeof(data2_size); in send_request() 113 iov[3].iov_len = data1_size; in send_request() 115 iov[4].iov_len = data2_size; in send_request() 122 expected += iov[i].iov_len; in send_request() 147 resp_hdr[0].iov_len = sizeof(func); in receive_response() 149 resp_hdr[1].iov_len = sizeof(data_size); in receive_response() 151 resp_hdr[2].iov_len = sizeof(*ret_val); in receive_response() 169 resp_data.iov_len = data_size; in receive_response()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/unistd_gtest/ |
D | unistd_writev_test.cpp | 27 iov[0].iov_len = strlen(str0) + 1; 29 iov[1].iov_len = strlen(str1) + 1; 31 EXPECT_EQ(iov[0].iov_len + iov[1].iov_len, writev(STDOUT_FILENO, iov, 2));
|
/third_party/libfuse/example/ |
D | cuse.c | 131 in_iov[0].iov_len = sizeof(*arg); in fioc_do_rw() 143 out_iov[0].iov_len = sizeof(arg->prev_size); in fioc_do_rw() 147 out_iov[1].iov_len = sizeof(arg->new_size); in fioc_do_rw() 152 out_iov[2].iov_len = arg->size; in fioc_do_rw() 159 in_iov[1].iov_len = arg->size; in fioc_do_rw() 169 iov[0].iov_len = sizeof(cur_size); in fioc_do_rw() 172 iov[1].iov_len = sizeof(cusexmp_size); in fioc_do_rw() 184 iov[2].iov_len = size; in fioc_do_rw()
|
/third_party/ltp/testcases/kernel/syscalls/sendmmsg/ |
D | sendmmsg01.c | 32 memset(rcv1->iov_base, 0, rcv1->iov_len); in run() 33 memset(rcv2->iov_base, 0, rcv2->iov_len); in run() 77 memcpy(snd1[0].iov_base, "one", snd1[0].iov_len); in setup() 78 memcpy(snd1[1].iov_base, "two", snd1[1].iov_len); in setup() 79 memcpy(snd2->iov_base, "three3", snd2->iov_len); in setup()
|
/third_party/pulseaudio/src/modules/rtp/ |
D | sap.c | 101 iov[0].iov_len = sizeof(header); in pa_sap_send() 105 iov[1].iov_len = 4U; in pa_sap_send() 109 iov[1].iov_len = 16U; in pa_sap_send() 114 iov[2].iov_len = sizeof(MIME_TYPE); in pa_sap_send() 117 iov[3].iov_len = strlen(c->sdp_data); in pa_sap_send() 163 iov.iov_len = (size_t) size; in pa_sap_recv()
|
/third_party/node/deps/base64/base64/bin/ |
D | base64.c | 83 size_t iov_len; member 100 if ((r = write(fd, iov->iov_base, iov->iov_len)) < 0) { in writev() 108 if ((size_t) r != iov->iov_len) { in writev() 173 if (iov->iov_len > (size_t) nwrite) { in writev_retry() 177 iov->iov_len -= (size_t) nwrite; in writev_retry() 182 nwrite -= iov->iov_len; in writev_retry() 199 iov[*nvec].iov_len = len; in iov_append()
|
/third_party/ltp/testcases/network/can/cve/ |
D | can_bcm01.c | 77 .iov_len = sizeof(data) in thread_run() 86 SAFE_SENDMSG(iov.iov_len, sock1, &msg, 0); in thread_run() 104 .iov_len = sizeof(data) in run() 116 SAFE_SENDMSG(iov.iov_len, sock2, &msg, 0); in run()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
D | recvmmsg.c | 52 msg1[0].iov_len = 3; in sendsss() 54 msg1[1].iov_len = 3; in sendsss() 58 msg2.iov_len = 5; in sendsss() 101 iovecs[i].iov_len = BUFSIZE; in recvsss()
|