Home
last modified time | relevance | path

Searched refs:iov_base (Results 1 – 25 of 236) sorted by relevance

12345678910

/third_party/musl/libc-test/src/functionalext/supplement/linux/
Dprocess_vm.c33 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 = src, .iov_len = sizeof(src)}; in process_vm_writev_0300()
97 remote.iov_base = src; in process_vm_readv_0100()
[all …]
/third_party/rust/crates/rustix/src/backend/libc/io/
Dio_slice.rs23 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/
Dio_slice.rs25 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/liteos_m/kernel/src/stdio/
D__stdio_write.c7 { .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()
D__stdio_read.c8 { .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()
/third_party/musl/porting/uniproton/kernel/src/stdio/
D__stdio_write.c7 { .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()
D__stdio_read.c8 { .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()
/third_party/musl/libc-test/src/functionalext/supplement/unistd/
Dpwritev.c32 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()
Dwritev.c34 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()
Dpreadv.c38 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()
/third_party/ltp/testcases/kernel/syscalls/sendmmsg/
Dsendmmsg01.c32 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/gstreamer/gstreamer/plugins/elements/
Dgstelements_private.c121 gpointer iov_base; member
180 memcpy (p, iov[i].iov_base, iov[i].iov_len); in gst_writev()
196 ret = write (fd, iov[i].iov_base, iov[i].iov_len); in gst_writev()
384 vecs[i].iov_base = maps[i].data; in gst_writev_buffer()
388 vecs[i].iov_base = (void *) ""; in gst_writev_buffer()
429 vecs[0].iov_base = ((guint8 *) vecs[0].iov_base) + bytes_written_local; in gst_writev_buffer()
454 vec.iov_base = (guint8 *) data; in gst_writev_mem()
483 vec.iov_base = ((guint8 *) vec.iov_base) + bytes_written_local; in gst_writev_mem()
528 vecs[num_vecs].iov_base = maps[num_vecs].data; in gst_writev_buffer_list()
532 vecs[num_vecs].iov_base = (void *) ""; in gst_writev_buffer_list()
[all …]
/third_party/ltp/utils/sctp/func_tests/
Dtest_timetolive.c214 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/libfuse/example/
Dcuse.c130 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/
D__stdio_write.c7 { .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()
/third_party/musl/src/stdio/
D__stdio_write.c7 { .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()
/third_party/ltp/testcases/kernel/fs/ftest/
Dftest08.c254 if ((r_iovec[i].iov_base = malloc(r_ioveclen)) == NULL) { 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()
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()
393 val_iovec[i].iov_base, in dotest()
Dftest04.c243 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()
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()
Dftest07.c313 if ((r_iovec[i].iov_base = calloc(r_ioveclen, 1)) == NULL) { in dotest()
326 if ((val_iovec[i].iov_base = calloc(w_ioveclen, 1)) == NULL) { in dotest()
335 if ((zero_iovec[i].iov_base = calloc(w_ioveclen, 1)) == NULL) { in dotest()
379 memset(val_iovec[i].iov_base, val, in dotest()
381 memset(zero_iovec[i].iov_base, 0, in dotest()
421 (r_iovec[i].iov_base, in dotest()
422 zero_iovec[i].iov_base, in dotest()
459 (r_iovec[i].iov_base, in dotest()
460 val_iovec[i].iov_base, in dotest()
Dftest03.c311 if ((r_iovec[i].iov_base = calloc(r_ioveclen, 1)) == 0) { in dotest()
324 if ((val_iovec[i].iov_base = calloc(w_ioveclen, 1)) == 0) { in dotest()
334 if ((zero_iovec[i].iov_base = calloc(w_ioveclen, 1)) == 0) { in dotest()
382 memset(val_iovec[i].iov_base, val, in dotest()
384 memset(zero_iovec[i].iov_base, 0, in dotest()
426 (r_iovec[i].iov_base, in dotest()
427 zero_iovec[i].iov_base, in dotest()
464 (r_iovec[i].iov_base, in dotest()
465 val_iovec[i].iov_base, in dotest()
/third_party/selinux/libselinux/src/
Dsetrans_client.c106 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/pulseaudio/src/modules/rtp/
Dsap.c100 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/lwip/test/unit/api/
Dtest_sockets.c274 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) == 0xEF); in test_sockets_msgapi_udp_send_recv_loop()
466 *((u8_t*)rmsg->msg_iov[0].iov_base) = 0x00; in test_sockets_msgapi_udp_send_recv_loop()
467 *((u8_t*)rmsg->msg_iov[1].iov_base) = 0x00; in test_sockets_msgapi_udp_send_recv_loop()
[all …]
/third_party/lwip/src/core/distributed_net/
Dudp_transmit.c77 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/testcases/kernel/io/direct_io/
Ddiotest_routines.c70 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()

12345678910