Home
last modified time | relevance | path

Searched refs:w_len (Results 1 – 23 of 23) sorted by relevance

/external/strace/tests/
Dpreadv-pwritev.c107 const unsigned int w_len = in main() local
111 if (rc != (int) w_len) in main()
113 w_len, rc); in main()
125 w2_c, LENGTH_OF(w2_c), (unsigned int) ARRAY_SIZE(w_iov_), w_len, in main()
129 const unsigned int r_len = (w_len + 1) / 2; in main()
150 void *r2 = tail_alloc(w_len); in main()
158 .iov_len = w_len in main()
164 if (rc != (int) w_len - (int) r_len) in main()
166 (int) w_len - r_len, rc); in main()
171 r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in main()
[all …]
Drecvmsg.c80 const unsigned int w_len = in main() local
89 assert(sendmsg(1, w_mh, 0) == (int) w_len); in main()
104 (unsigned int) ARRAY_SIZE(w_iov_), w_len, in main()
109 const unsigned int r_len = (w_len + 1) / 2; in main()
135 void *r2 = tail_alloc(w_len); in main()
143 .iov_len = w_len in main()
150 assert(recvmsg(0, r_mh, 0) == (int) w_len - (int) r_len); in main()
156 r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in main()
157 w_len - r_len, w_len - r_len, r1_d, r1_c); in main()
Dreadv.c97 const unsigned int w_len = in main() local
100 assert(writev(fds[1], w_iov, ARRAY_SIZE(w_iov_)) == (int) w_len); in main()
112 w2_c, LENGTH_OF(w2_c), (unsigned int) ARRAY_SIZE(w_iov_), w_len, in main()
116 const unsigned int r_len = (w_len + 1) / 2; in main()
134 void *r2 = tail_alloc(w_len); in main()
142 .iov_len = w_len in main()
147 assert(readv(fds[0], r_iov, ARRAY_SIZE(r1_iov_)) == (int) w_len - (int) r_len); in main()
152 fds[0], r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in main()
153 w_len - r_len, w_len - r_len, r1_d, r1_c); in main()
Dpreadv2-pwritev2.c112 const unsigned int w_len = in dumpio() local
116 if (rc != (int) w_len) in dumpio()
118 w_len, rc); in dumpio()
130 w2_c, LENGTH_OF(w2_c), (unsigned int) ARRAY_SIZE(w_iov_), w_len, in dumpio()
134 const unsigned int r_len = (w_len + 1) / 2; in dumpio()
155 void *r2 = tail_alloc(w_len); in dumpio()
163 .iov_len = w_len in dumpio()
169 if (rc != (int) w_len - (int) r_len) in dumpio()
171 (int) w_len - r_len, rc); in dumpio()
176 r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in dumpio()
[all …]
Dpread64-pwrite64.c139 const unsigned int w_len = LENGTH_OF(w_c); in main() local
141 const void *w = tail_memdup(w_c, w_len); in main()
145 const unsigned int r0_len = (w_len + 1) / 2; in main()
150 const unsigned int r1_len = w_len - r0_len; in main()
151 void *r1 = tail_alloc(w_len); in main()
174 rc = pwrite(1, w, w_len, 0); in main()
175 if (rc != (int) w_len) in main()
177 w_len, rc); in main()
180 w_c, w_len, rc, w_d, w_c); in main()
206 rc = pread(0, r1, w_len, r0_len); in main()
[all …]
Dread-write.c176 const unsigned int w_len = LENGTH_OF(w_c); in main() local
178 const void *w = tail_memdup(w_c, w_len); in main()
182 const unsigned int r0_len = (w_len + 1) / 2; in main()
187 const unsigned int r1_len = w_len - r0_len; in main()
188 void *r1 = tail_alloc(w_len); in main()
205 rc = k_write(1, w, w_len); in main()
206 if (rc != (int) w_len) in main()
208 w_len, rc); in main()
211 w_c, w_len, rc, w_d, w_c); in main()
232 rc = k_read(0, r1, w_len); in main()
[all …]
Dmmsg.c128 const unsigned int w_len = in main() local
130 const unsigned int r_len = (w_len + 1) / 2; in main()
/external/strace/tests-mx32/
Dpreadv-pwritev.c107 const unsigned int w_len = in main() local
111 if (rc != (int) w_len) in main()
113 w_len, rc); in main()
125 w2_c, LENGTH_OF(w2_c), (unsigned int) ARRAY_SIZE(w_iov_), w_len, in main()
129 const unsigned int r_len = (w_len + 1) / 2; in main()
150 void *r2 = tail_alloc(w_len); in main()
158 .iov_len = w_len in main()
164 if (rc != (int) w_len - (int) r_len) in main()
166 (int) w_len - r_len, rc); in main()
171 r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in main()
[all …]
Drecvmsg.c80 const unsigned int w_len = in main() local
89 assert(sendmsg(1, w_mh, 0) == (int) w_len); in main()
104 (unsigned int) ARRAY_SIZE(w_iov_), w_len, in main()
109 const unsigned int r_len = (w_len + 1) / 2; in main()
135 void *r2 = tail_alloc(w_len); in main()
143 .iov_len = w_len in main()
150 assert(recvmsg(0, r_mh, 0) == (int) w_len - (int) r_len); in main()
156 r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in main()
157 w_len - r_len, w_len - r_len, r1_d, r1_c); in main()
Dreadv.c97 const unsigned int w_len = in main() local
100 assert(writev(fds[1], w_iov, ARRAY_SIZE(w_iov_)) == (int) w_len); in main()
112 w2_c, LENGTH_OF(w2_c), (unsigned int) ARRAY_SIZE(w_iov_), w_len, in main()
116 const unsigned int r_len = (w_len + 1) / 2; in main()
134 void *r2 = tail_alloc(w_len); in main()
142 .iov_len = w_len in main()
147 assert(readv(fds[0], r_iov, ARRAY_SIZE(r1_iov_)) == (int) w_len - (int) r_len); in main()
152 fds[0], r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in main()
153 w_len - r_len, w_len - r_len, r1_d, r1_c); in main()
Dpreadv2-pwritev2.c112 const unsigned int w_len = in dumpio() local
116 if (rc != (int) w_len) in dumpio()
118 w_len, rc); in dumpio()
130 w2_c, LENGTH_OF(w2_c), (unsigned int) ARRAY_SIZE(w_iov_), w_len, in dumpio()
134 const unsigned int r_len = (w_len + 1) / 2; in dumpio()
155 void *r2 = tail_alloc(w_len); in dumpio()
163 .iov_len = w_len in dumpio()
169 if (rc != (int) w_len - (int) r_len) in dumpio()
171 (int) w_len - r_len, rc); in dumpio()
176 r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in dumpio()
[all …]
Dpread64-pwrite64.c139 const unsigned int w_len = LENGTH_OF(w_c); in main() local
141 const void *w = tail_memdup(w_c, w_len); in main()
145 const unsigned int r0_len = (w_len + 1) / 2; in main()
150 const unsigned int r1_len = w_len - r0_len; in main()
151 void *r1 = tail_alloc(w_len); in main()
174 rc = pwrite(1, w, w_len, 0); in main()
175 if (rc != (int) w_len) in main()
177 w_len, rc); in main()
180 w_c, w_len, rc, w_d, w_c); in main()
206 rc = pread(0, r1, w_len, r0_len); in main()
[all …]
Dread-write.c176 const unsigned int w_len = LENGTH_OF(w_c); in main() local
178 const void *w = tail_memdup(w_c, w_len); in main()
182 const unsigned int r0_len = (w_len + 1) / 2; in main()
187 const unsigned int r1_len = w_len - r0_len; in main()
188 void *r1 = tail_alloc(w_len); in main()
205 rc = k_write(1, w, w_len); in main()
206 if (rc != (int) w_len) in main()
208 w_len, rc); in main()
211 w_c, w_len, rc, w_d, w_c); in main()
232 rc = k_read(0, r1, w_len); in main()
[all …]
Dmmsg.c128 const unsigned int w_len = in main() local
130 const unsigned int r_len = (w_len + 1) / 2; in main()
/external/strace/tests-m32/
Dpreadv-pwritev.c107 const unsigned int w_len = in main() local
111 if (rc != (int) w_len) in main()
113 w_len, rc); in main()
125 w2_c, LENGTH_OF(w2_c), (unsigned int) ARRAY_SIZE(w_iov_), w_len, in main()
129 const unsigned int r_len = (w_len + 1) / 2; in main()
150 void *r2 = tail_alloc(w_len); in main()
158 .iov_len = w_len in main()
164 if (rc != (int) w_len - (int) r_len) in main()
166 (int) w_len - r_len, rc); in main()
171 r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in main()
[all …]
Drecvmsg.c80 const unsigned int w_len = in main() local
89 assert(sendmsg(1, w_mh, 0) == (int) w_len); in main()
104 (unsigned int) ARRAY_SIZE(w_iov_), w_len, in main()
109 const unsigned int r_len = (w_len + 1) / 2; in main()
135 void *r2 = tail_alloc(w_len); in main()
143 .iov_len = w_len in main()
150 assert(recvmsg(0, r_mh, 0) == (int) w_len - (int) r_len); in main()
156 r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in main()
157 w_len - r_len, w_len - r_len, r1_d, r1_c); in main()
Dreadv.c97 const unsigned int w_len = in main() local
100 assert(writev(fds[1], w_iov, ARRAY_SIZE(w_iov_)) == (int) w_len); in main()
112 w2_c, LENGTH_OF(w2_c), (unsigned int) ARRAY_SIZE(w_iov_), w_len, in main()
116 const unsigned int r_len = (w_len + 1) / 2; in main()
134 void *r2 = tail_alloc(w_len); in main()
142 .iov_len = w_len in main()
147 assert(readv(fds[0], r_iov, ARRAY_SIZE(r1_iov_)) == (int) w_len - (int) r_len); in main()
152 fds[0], r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in main()
153 w_len - r_len, w_len - r_len, r1_d, r1_c); in main()
Dpreadv2-pwritev2.c112 const unsigned int w_len = in dumpio() local
116 if (rc != (int) w_len) in dumpio()
118 w_len, rc); in dumpio()
130 w2_c, LENGTH_OF(w2_c), (unsigned int) ARRAY_SIZE(w_iov_), w_len, in dumpio()
134 const unsigned int r_len = (w_len + 1) / 2; in dumpio()
155 void *r2 = tail_alloc(w_len); in dumpio()
163 .iov_len = w_len in dumpio()
169 if (rc != (int) w_len - (int) r_len) in dumpio()
171 (int) w_len - r_len, rc); in dumpio()
176 r1_c, r_len, w_len, (unsigned int) ARRAY_SIZE(r1_iov_), in dumpio()
[all …]
Dpread64-pwrite64.c139 const unsigned int w_len = LENGTH_OF(w_c); in main() local
141 const void *w = tail_memdup(w_c, w_len); in main()
145 const unsigned int r0_len = (w_len + 1) / 2; in main()
150 const unsigned int r1_len = w_len - r0_len; in main()
151 void *r1 = tail_alloc(w_len); in main()
174 rc = pwrite(1, w, w_len, 0); in main()
175 if (rc != (int) w_len) in main()
177 w_len, rc); in main()
180 w_c, w_len, rc, w_d, w_c); in main()
206 rc = pread(0, r1, w_len, r0_len); in main()
[all …]
Dread-write.c176 const unsigned int w_len = LENGTH_OF(w_c); in main() local
178 const void *w = tail_memdup(w_c, w_len); in main()
182 const unsigned int r0_len = (w_len + 1) / 2; in main()
187 const unsigned int r1_len = w_len - r0_len; in main()
188 void *r1 = tail_alloc(w_len); in main()
205 rc = k_write(1, w, w_len); in main()
206 if (rc != (int) w_len) in main()
208 w_len, rc); in main()
211 w_c, w_len, rc, w_d, w_c); in main()
232 rc = k_read(0, r1, w_len); in main()
[all …]
Dmmsg.c128 const unsigned int w_len = in main() local
130 const unsigned int r_len = (w_len + 1) / 2; in main()
/external/python/cpython3/Parser/pegen/
Dparse_string.c96 Py_ssize_t w_len; in decode_unicode_with_escapes() local
105 w_len = PyUnicode_GET_LENGTH(w); in decode_unicode_with_escapes()
106 for (i = 0; i < w_len; i++) { in decode_unicode_with_escapes()
/external/python/cpython2/Python/
Dceval.c5158 Py_ssize_t w_len = PyString_GET_SIZE(w); in string_concatenate() local
5159 Py_ssize_t new_len = v_len + w_len; in string_concatenate()
5222 PyString_AS_STRING(w), w_len); in string_concatenate()