Home
last modified time | relevance | path

Searched refs:iov_len (Results 1 - 25 of 218) sorted by relevance

123456789

/third_party/musl/porting/uniproton/kernel/src/stdio/
H A 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()
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()
[all...]
H A 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].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/porting/liteos_m/kernel/src/stdio/
H A 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()
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()
[all...]
H A 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].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/libc-test/src/functionalext/supplement/linux/
H A 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()
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 in process_vm_readv_0100()
[all...]
H A Dvmsplice.c35 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 t_error("%s 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/rust/crates/rustix/src/backend/libc/io/
H A Dio_slice.rs24 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/
H A Dio_slice.rs26 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/musl/porting/liteos_a/kernel/src/stdio/
H A 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()
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()
H A 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 = 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/libc-test/src/functionalext/supplement/unistd/
H A Dwritev.c35 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()
H A Dpwritev.c33 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()
H A Dpreadv.c39 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/linux/user/src/stdio/
H A D__stdio_read.c17 { .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/
H A D__stdio_read.c17 { .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/
H A Dudp_transmit.c49 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/musl/libc-test/src/functionalext/supplement/unistd/unistd_gtest/
H A Dunistd_writev_test.cpp27 iov[0].iov_len = strlen(str0) + 1; 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()
/third_party/libfuse/example/
H A Dcuse.c131 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/selinux/libselinux/src/
H A Dsetrans_client.c107 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 in receive_response()
[all...]
/third_party/ltp/testcases/kernel/syscalls/sendmmsg/
H A Dsendmmsg01.c32 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/
H A Dsap.c101 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/musl/src/network/
H A Dres_msend.c42 { .iov_base = (uint8_t[]){ ql>>8, ql }, .iov_len = 2 }, in start_tcp()
43 { .iov_base = (void *)q, .iov_len = ql } } in start_tcp()
78 while (mh->msg_iovlen && n >= mh->msg_iov->iov_len) { in step_mh()
79 n -= mh->msg_iov->iov_len; in step_mh()
85 mh->msg_iov->iov_len -= n; in step_mh()
255 .iov_len = asize } in res_msend_rc_ext()
360 { .iov_base = (uint8_t[]){ qlens[i]>>8, qlens[i] }, .iov_len = 2 }, in res_msend_rc_ext()
361 { .iov_base = (void *)queries[i], .iov_len = qlens[i] } } in res_msend_rc_ext()
375 { .iov_base = alen_buf[i], .iov_len = 2 }, in res_msend_rc_ext()
376 { .iov_base = answers[i], .iov_len in res_msend_rc_ext()
[all...]
/third_party/musl/libc-test/src/functionalext/supplement/network/
H A Dnameservercheck_client.c73 { .iov_base = (uint8_t[]){ ql>>8, ql }, .iov_len = 2 }, in start_tcp()
74 { .iov_base = (void *)q, .iov_len = ql } } in start_tcp()
97 while (mh->msg_iovlen && n >= mh->msg_iov->iov_len) { in step_mh()
98 n -= mh->msg_iov->iov_len; in step_mh()
104 mh->msg_iov->iov_len -= n; in step_mh()
236 .iov_len = asize } in res_msend_rc_ext()
334 { .iov_base = (uint8_t[]){ qlens[i]>>8, qlens[i] }, .iov_len = 2 }, in res_msend_rc_ext()
335 { .iov_base = (void *)queries[i], .iov_len = qlens[i] } } in res_msend_rc_ext()
349 { .iov_base = alen_buf[i], .iov_len = 2 }, in res_msend_rc_ext()
350 { .iov_base = answers[i], .iov_len in res_msend_rc_ext()
[all...]
/third_party/ltp/testcases/kernel/fs/ftest/
H A Dftest08.c257 r_iovec[i].iov_len = r_ioveclen; in dotest()
270 val0_iovec[i].iov_len = w_ioveclen; in dotest()
279 val_iovec[i].iov_len = w_ioveclen; in dotest()
319 val0_iovec[i].iov_len); in dotest()
321 val_iovec[i].iov_len); in dotest()
363 r_iovec[i].iov_len)) { in dotest()
394 r_iovec[i].iov_len)) { in dotest()
H A Dftest04.c246 r_iovec[i].iov_len = r_ioveclen; in dotest()
259 val0_iovec[i].iov_len = w_ioveclen; in dotest()
269 val_iovec[i].iov_len = w_ioveclen; in dotest()
308 val0_iovec[i].iov_len); in dotest()
310 val_iovec[i].iov_len); in dotest()
350 r_iovec[i].iov_len)) { in dotest()
379 r_iovec[i].iov_len)) { in dotest()

Completed in 14 milliseconds

123456789