/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/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/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/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/musl/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 | 7 { .iov_base = buf, .iov_len = len - !!f->buf_size }, in __stdio_read() 8 { .iov_base = f->buf, .iov_len = f->buf_size } in __stdio_read() 12 cnt = iov[0].iov_len ? syscall(SYS_readv, f->fd, iov, 2) in __stdio_read() 13 : syscall(SYS_read, f->fd, iov[1].iov_base, iov[1].iov_len); in __stdio_read() 18 if (cnt <= iov[0].iov_len) return cnt; in __stdio_read() 19 cnt -= iov[0].iov_len; in __stdio_read()
|
/third_party/gstreamer/gstreamer/plugins/elements/ |
D | gstelements_private.c | 122 gsize iov_len; member 180 memcpy (p, iov[i].iov_base, iov[i].iov_len); in gst_writev() 181 p += iov[i].iov_len; in gst_writev() 196 ret = write (fd, iov[i].iov_base, iov[i].iov_len); in gst_writev() 200 if (ret != iov[i].iov_len) in gst_writev() 385 vecs[i].iov_len = maps[i].size; in gst_writev_buffer() 389 vecs[i].iov_len = 0; in gst_writev_buffer() 391 left += vecs[i].iov_len; in gst_writev_buffer() 419 while (bytes_written_local >= vecs[0].iov_len) { in gst_writev_buffer() 420 bytes_written_local -= vecs[0].iov_len; in gst_writev_buffer() [all …]
|
/third_party/lwip/src/core/distributed_net/ |
D | udp_transmit.c | 44 if (hdr->msg_iov[i].iov_len > MAX_UDP_PAYLOAD_LEN) { in get_msg_data_len() 48 data_len += (s32_t)hdr->msg_iov[i].iov_len; in get_msg_data_len() 73 iov[0].iov_len = sizeof(data); in udp_transmit_sendto() 75 iov[1].iov_len = buf_len; in udp_transmit_sendto() 117 iov[0].iov_len = sizeof(data); in udp_transmit_sendmsg() 120 iov[i + 1].iov_len = hdr->msg_iov[i].iov_len; in udp_transmit_sendmsg()
|
/third_party/grpc/src/core/tsi/alts/crypt/ |
D | aes_gcm.cc | 300 size_t aad_length = aad_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_encrypt_iovec() 319 size_t ciphertext_length = ciphertext_vec.iov_len; in gsec_aes_gcm_aead_crypter_encrypt_iovec() 327 size_t plaintext_length = plaintext_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_encrypt_iovec() 378 *ciphertext_bytes_written = ciphertext_vec.iov_len - ciphertext_length; in gsec_aes_gcm_aead_crypter_encrypt_iovec() 415 total_ciphertext_length += ciphertext_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_decrypt_iovec() 450 size_t aad_length = aad_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_decrypt_iovec() 470 size_t plaintext_length = plaintext_vec.iov_len; in gsec_aes_gcm_aead_crypter_decrypt_iovec() 483 ciphertext_length = ciphertext_vec[i].iov_len; in gsec_aes_gcm_aead_crypter_decrypt_iovec() 489 memset(plaintext_vec.iov_base, 0x00, plaintext_vec.iov_len); in gsec_aes_gcm_aead_crypter_decrypt_iovec() 508 memset(plaintext_vec.iov_base, 0x00, plaintext_vec.iov_len); in gsec_aes_gcm_aead_crypter_decrypt_iovec() [all …]
|
/third_party/node/deps/cares/src/lib/ |
D | ares_writev.c | 45 if (iov[i].iov_len > INT_MAX - bytes) in ares_writev() 50 bytes += iov[i].iov_len; in ares_writev() 67 memcpy (bp, iov[i].iov_base, iov[i].iov_len); in ares_writev() 68 bp += iov[i].iov_len; in ares_writev()
|
/third_party/selinux/libselinux/src/ |
D | setrans_client.c | 101 iov[0].iov_len = sizeof(function); in send_request() 103 iov[1].iov_len = sizeof(data1_size); in send_request() 105 iov[2].iov_len = sizeof(data2_size); in send_request() 107 iov[3].iov_len = data1_size; in send_request() 109 iov[4].iov_len = data2_size; in send_request() 116 expected += iov[i].iov_len; in send_request() 141 resp_hdr[0].iov_len = sizeof(func); in receive_response() 143 resp_hdr[1].iov_len = sizeof(data_size); in receive_response() 145 resp_hdr[2].iov_len = sizeof(*ret_val); in receive_response() 163 resp_data.iov_len = data_size; in receive_response()
|
/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/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_time64.c | 54 msg1[0].iov_len = 3; in sendsss() 56 msg1[1].iov_len = 3; in sendsss() 60 msg2.iov_len = 5; in sendsss() 103 iovecs[i].iov_len = BUFSIZE; in recvsss()
|
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()
|
D | sendmmsg.c | 53 msg1[0].iov_len = 3; in sendmmsg_0100() 55 msg1[1].iov_len = 3; in sendmmsg_0100() 59 msg2.iov_len = 5; in sendmmsg_0100()
|
/third_party/ltp/utils/sctp/func_tests/ |
D | test_recvmsg.c | 113 outmessage.msg_iov->iov_len = 30000; in main() 120 iov.iov_len = 2000; in main() 143 iov.iov_len = REALLY_BIG; in main() 149 iov.iov_len = 2000; in main()
|