/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A 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() 65 EXPECT_STREQ("process_vm_writev_0200", local[i].iov_base, remote[i].iov_base); in process_vm_writev_0200() 78 .iov_base = NULL, in process_vm_writev_0300() 81 struct iovec remote = {.iov_base in process_vm_writev_0300() [all...] |
/third_party/rust/crates/rustix/src/backend/libc/io/ |
H A D | io_slice.rs | 23 iov_base: buf.as_ptr() as *mut u8 as *mut c::c_void, in new() 38 self.vec.iov_base = self.vec.iov_base.add(n); in advance() 44 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len) } in as_slice() 59 iov_base: buf.as_mut_ptr() as *mut c::c_void, in new() 74 self.vec.iov_base = self.vec.iov_base.add(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/ |
H A D | io_slice.rs | 25 iov_base: buf.as_ptr() as *mut u8 as *mut c::c_void, in new() 41 self.vec.iov_base = self.vec.iov_base.add(n); in advance() 48 unsafe { slice::from_raw_parts(self.vec.iov_base as *mut u8, self.vec.iov_len as usize) } in as_slice() 65 iov_base: buf.as_mut_ptr() as *mut c::c_void, in new() 81 self.vec.iov_base = self.vec.iov_base.add(n); 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/musl/porting/uniproton/kernel/src/stdio/ |
H A 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() 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() 32 iov[0].iov_base = (char *)iov[0].iov_base + cnt;
in __stdio_write()
|
H A 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].iov_len);
in __stdio_read()
|
/third_party/musl/porting/liteos_m/kernel/src/stdio/ |
H A 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() 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() 32 iov[0].iov_base = (char *)iov[0].iov_base + cnt;
in __stdio_write()
|
H A 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].iov_len);
in __stdio_read()
|
/third_party/musl/libc-test/src/functionalext/supplement/unistd/ |
H A D | pwritev.c | 32 iov[0].iov_base = buf1; in pwritev_0100() 34 iov[1].iov_base = buf2; in pwritev_0100() 61 iov[0].iov_base = buf1; in pwritev_0200() 63 iov[1].iov_base = buf2; in pwritev_0200() 94 iov[0].iov_base = buf1; in pwritev_0300() 96 iov[1].iov_base = buf2; in pwritev_0300()
|
H A D | preadv.c | 38 iov[0].iov_base = buf1; in preadv_0100() 40 iov[1].iov_base = buf2; in preadv_0100() 78 iov[0].iov_base = buf1; in preadv_0200() 80 iov[1].iov_base = buf2; in preadv_0200()
|
H A D | writev.c | 34 iov[0].iov_base = str0; in writev_0100() 36 iov[1].iov_base = str1; in writev_0100() 56 iov[0].iov_base = str0; in writev_0200() 58 iov[1].iov_base = str1; in writev_0200()
|
/third_party/ltp/testcases/kernel/syscalls/sendmmsg/ |
H A 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() 51 if (memcmp(rcv1->iov_base, "onetwo", 6)) in run() 56 if (memcmp(rcv2->iov_base, "three", 5)) 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/libfuse/example/ |
H A D | cuse.c | 130 in_iov[0].iov_base = addr; in fioc_do_rw() 141 out_iov[0].iov_base = in fioc_do_rw() 145 out_iov[1].iov_base = in fioc_do_rw() 151 out_iov[2].iov_base = arg->buf; in fioc_do_rw() 158 in_iov[1].iov_base = arg->buf; in fioc_do_rw() 168 iov[0].iov_base = &cur_size; in fioc_do_rw() 171 iov[1].iov_base = &cusexmp_size; in fioc_do_rw() 183 iov[2].iov_base = cusexmp_buf + off; in fioc_do_rw()
|
/third_party/musl/porting/liteos_a/kernel/src/stdio/ |
H A 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() 31 iov[0].iov_base = (char *)iov[0].iov_base + cnt; in __stdio_write()
|
H A 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() 14 : read(f->fd, iov[1].iov_base, iov[1].iov_len); in __stdio_read()
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
H A D | ftest08.c | 254 if ((r_iovec[i].iov_base = malloc(r_ioveclen)) == NULL) { in dotest() 255 tst_brkm(TBROK, NULL, "\tmalloc failed(iov_base)"); in dotest() 266 if ((val0_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest() 276 if ((val_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest() 277 tst_brkm(TBROK, NULL, "\tmalloc failed(iov_base)"); in dotest() 318 memset(val0_iovec[i].iov_base, val0, in dotest() 320 memset(val_iovec[i].iov_base, val, in dotest() 361 (r_iovec[i].iov_base, in dotest() 362 val0_iovec[i].iov_base, in dotest() 392 (r_iovec[i].iov_base, in dotest() [all...] |
H A D | ftest04.c | 243 if ((r_iovec[i].iov_base = malloc(r_ioveclen)) == NULL) { in dotest() 255 if ((val0_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest() 265 if ((val_iovec[i].iov_base = malloc(w_ioveclen)) == NULL) { in dotest() 266 tst_brkm(TBROK, NULL, "\tmalloc failed(iov_base)"); in dotest() 307 memset(val0_iovec[i].iov_base, val0, in dotest() 309 memset(val_iovec[i].iov_base, val, in dotest() 348 (r_iovec[i].iov_base, in dotest() 349 val0_iovec[i].iov_base, in dotest() 377 (r_iovec[i].iov_base, in dotest() 378 val_iovec[i].iov_base, in dotest() [all...] |
/third_party/selinux/libselinux/src/ |
H A D | setrans_client.c | 106 iov[0].iov_base = &function; in send_request() 108 iov[1].iov_base = &data1_size; in send_request() 110 iov[2].iov_base = &data2_size; in send_request() 112 iov[3].iov_base = (char *)data1; in send_request() 114 iov[4].iov_base = (char *)data2; in send_request() 146 resp_hdr[0].iov_base = &func; in receive_response() 148 resp_hdr[1].iov_base = &data_size; in receive_response() 150 resp_hdr[2].iov_base = ret_val; in receive_response() 168 resp_data.iov_base = data; in receive_response()
|
/third_party/lwip/src/core/distributed_net/ |
H A D | udp_transmit.c | 77 iov[0].iov_base = (void *)&data; in udp_transmit_sendto() 79 iov[1].iov_base = (void *)buf; in udp_transmit_sendto() 121 iov[0].iov_base = (void *)&data; in udp_transmit_sendmsg() 124 iov[i + 1].iov_base = hdr->msg_iov[i].iov_base; in udp_transmit_sendmsg()
|
/third_party/ltp/utils/sctp/func_tests/ |
H A D | test_timetolive.c | 214 outmessage.msg_iov->iov_base = message; in main() 221 iov.iov_base = big_buffer; in main() 234 sac = (struct sctp_assoc_change *)iov.iov_base; in main() 244 sac = (struct sctp_assoc_change *)iov.iov_base; in main() 290 outmessage.msg_iov->iov_base = fillmsg; in main() 302 outmessage.msg_iov->iov_base = ttlmsg; in main() 315 outmessage.msg_iov->iov_base = nottlmsg; in main() 330 outmessage.msg_iov->iov_base = ttlfrag; in main() 355 if (0 != strncmp(iov.iov_base, nottlmsg, strlen(nottlmsg)+1)) in main() 369 ssf = (struct sctp_send_failed *)iov.iov_base; in main() [all...] |
/third_party/ltp/testcases/kernel/syscalls/cma/ |
H A D | process_vm01.c | 46 sane_params->lvec->iov_base = sane_params->ldummy; in alloc_params() 51 sane_params->rvec->iov_base = sane_params->rdummy; in alloc_params() 165 tst_res(TINFO, "Testing lvec->iov_base = -1"); in test_iov_invalid() 167 params_copy.lvec->iov_base = (void *)-1; in test_iov_invalid() 172 tst_res(TINFO, "Testing rvec->iov_base = -1"); in test_iov_invalid() 174 params_copy.rvec->iov_base = (void *)-1; in test_iov_invalid() 266 params_copy.lvec->iov_base = data; in test_invalid_protection() 273 params_copy.rvec->iov_base = data; in test_invalid_protection()
|
/third_party/pulseaudio/src/modules/rtp/ |
H A D | sap.c | 100 iov[0].iov_base = &header; in pa_sap_send() 104 iov[1].iov_base = (void*) &((struct sockaddr_in*) sa)->sin_addr; in pa_sap_send() 108 iov[1].iov_base = (void*) &((struct sockaddr_in6*) sa)->sin6_addr; in pa_sap_send() 113 iov[2].iov_base = (char*) MIME_TYPE; in pa_sap_send() 116 iov[3].iov_base = c->sdp_data; in pa_sap_send() 162 iov.iov_base = buf; in pa_sap_recv()
|
/third_party/ltp/testcases/kernel/io/direct_io/ |
H A D | diotest_routines.c | 70 fillbuf(iv->iov_base, iv->iov_len, (char)value); in vfillbuf() 98 if (bufcmp(iv1->iov_base, iv2->iov_base, iv1->iov_len) < 0) { in vbufcmp() 100 i, (char *)iv1->iov_base, in vbufcmp() 101 (char *)iv2->iov_base); in vbufcmp()
|
/third_party/lwip/test/unit/api/ |
H A D | test_sockets.c | 255 /* note: this modifies the underyling iov_base and iov_len for a partial in test_sockets_msgapi_update_iovs() 274 msg->msg_iov[0].iov_base = ((u8_t *)msg->msg_iov[0].iov_base + bytes); in test_sockets_msgapi_update_iovs() 354 siovs[i].iov_base = snd_buf; in test_sockets_msgapi_tcp() 363 riovs[i].iov_base = &rcv_buf[i*(BUF_SZ/4)]; in test_sockets_msgapi_tcp() 369 riovs[5].iov_base = &rcv_buf[4*(BUF_SZ/4)]; in test_sockets_msgapi_tcp() 460 fail_unless(*((u8_t*)rmsg->msg_iov[0].iov_base) == 0xDE); in test_sockets_msgapi_udp_send_recv_loop() 461 fail_unless(*((u8_t*)rmsg->msg_iov[1].iov_base) == 0xAD); in test_sockets_msgapi_udp_send_recv_loop() 462 fail_unless(*((u8_t*)rmsg->msg_iov[2].iov_base) == 0xBE); in test_sockets_msgapi_udp_send_recv_loop() 463 fail_unless(*((u8_t*)rmsg->msg_iov[3].iov_base) in test_sockets_msgapi_udp_send_recv_loop() [all...] |
/third_party/ltp/testcases/kernel/syscalls/readv/ |
H A D | readv01.c | 54 if (vec[i].iov_base && vec[i].iov_len) in test_readv() 55 memset(vec[i].iov_base, 0, vec[i].iov_len); in test_readv() 74 ptr = vec[i].iov_base; in test_readv() 91 lockup_iovec[0].iov_base = tst_get_bad_addr(NULL); in setup()
|
/third_party/musl/libc-test/src/functionalext/supplement/network/ |
H A D | __recvmmsg_time64.c | 53 msg1[0].iov_base = "one"; in sendsss() 55 msg1[1].iov_base = "two"; in sendsss() 59 msg2.iov_base = "three"; in sendsss() 102 iovecs[i].iov_base = bufs[i]; in recvsss()
|