/third_party/boost/libs/asio/test/ |
D | read_at.cpp | 152 char read_buf[sizeof(read_data)]; in test_3_arg_mutable_buffer_read_at() local 154 = boost::asio::buffer(read_buf, sizeof(read_buf)); in test_3_arg_mutable_buffer_read_at() 157 memset(read_buf, 0, sizeof(read_buf)); in test_3_arg_mutable_buffer_read_at() 163 memset(read_buf, 0, sizeof(read_buf)); in test_3_arg_mutable_buffer_read_at() 170 memset(read_buf, 0, sizeof(read_buf)); in test_3_arg_mutable_buffer_read_at() 177 memset(read_buf, 0, sizeof(read_buf)); in test_3_arg_mutable_buffer_read_at() 184 memset(read_buf, 0, sizeof(read_buf)); in test_3_arg_mutable_buffer_read_at() 191 memset(read_buf, 0, sizeof(read_buf)); in test_3_arg_mutable_buffer_read_at() 201 char read_buf[sizeof(read_data)]; in test_3_arg_vector_buffers_read_at() local 203 buffers.push_back(boost::asio::buffer(read_buf, 32)); in test_3_arg_vector_buffers_read_at() [all …]
|
D | read.cpp | 159 char read_buf[sizeof(read_data)]; in test_2_arg_mutable_buffer_read() local 161 = boost::asio::buffer(read_buf, sizeof(read_buf)); in test_2_arg_mutable_buffer_read() 164 memset(read_buf, 0, sizeof(read_buf)); in test_2_arg_mutable_buffer_read() 171 memset(read_buf, 0, sizeof(read_buf)); in test_2_arg_mutable_buffer_read() 178 memset(read_buf, 0, sizeof(read_buf)); in test_2_arg_mutable_buffer_read() 188 char read_buf[sizeof(read_data)]; in test_2_arg_vector_buffers_read() local 190 buffers.push_back(boost::asio::buffer(read_buf, 32)); in test_2_arg_vector_buffers_read() 191 buffers.push_back(boost::asio::buffer(read_buf, 39) + 32); in test_2_arg_vector_buffers_read() 192 buffers.push_back(boost::asio::buffer(read_buf) + 39); in test_2_arg_vector_buffers_read() 195 memset(read_buf, 0, sizeof(read_buf)); in test_2_arg_vector_buffers_read() [all …]
|
D | buffered_write_stream.cpp | 173 const boost::asio::mutable_buffer read_buf = boost::asio::buffer(read_data); in test_sync_operations() local 179 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations() 198 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations() 208 boost::asio::buffer(read_buf), error); in test_sync_operations() 299 const boost::asio::mutable_buffer read_buf = boost::asio::buffer(read_data); in test_async_operations() local 305 boost::asio::buffer(read_buf + bytes_read), in test_async_operations() 333 boost::asio::buffer(read_buf + bytes_read), in test_async_operations() 344 client_socket.async_read_some(boost::asio::buffer(read_buf), handle_read_eof); in test_async_operations()
|
D | buffered_read_stream.cpp | 172 const boost::asio::mutable_buffer read_buf = boost::asio::buffer(read_data); in test_sync_operations() local 178 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations() 196 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations() 206 boost::asio::buffer(read_buf), error); in test_sync_operations() 288 const boost::asio::mutable_buffer read_buf = boost::asio::buffer(read_data); in test_async_operations() local 294 boost::asio::buffer(read_buf + bytes_read), in test_async_operations() 318 boost::asio::buffer(read_buf + bytes_read), in test_async_operations() 329 client_socket.async_read_some(boost::asio::buffer(read_buf), handle_read_eof); in test_async_operations()
|
D | buffered_stream.cpp | 184 const boost::asio::mutable_buffer read_buf = boost::asio::buffer(read_data); in test_sync_operations() local 190 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations() 209 boost::asio::buffer(read_buf + bytes_read)); in test_sync_operations() 219 boost::asio::buffer(read_buf), error); in test_sync_operations() 310 const boost::asio::mutable_buffer read_buf = boost::asio::buffer(read_data); in test_async_operations() local 316 boost::asio::buffer(read_buf + bytes_read), in test_async_operations() 344 boost::asio::buffer(read_buf + bytes_read), in test_async_operations() 355 client_socket.async_read_some(boost::asio::buffer(read_buf), handle_read_eof); in test_async_operations()
|
/third_party/ltp/testcases/kernel/syscalls/dup2/ |
D | dup207.c | 51 char read_buf[20]; in run() local 53 memset(read_buf, 0, sizeof(read_buf)); in run() 67 SAFE_READ(1, nfd, read_buf, tc->exp_size); in run() 68 if (strncmp(read_buf, tc->exp_data, tc->exp_size)) in run() 69 tst_res(TFAIL, "Expect %s, but get %s.", tc->exp_data, read_buf); in run() 71 tst_res(TPASS, "Get expected buf %s", read_buf); in run()
|
/third_party/ltp/testcases/kernel/syscalls/lseek/ |
D | lseek01.c | 39 char read_buf[64]; in verify_lseek() local 43 SAFE_READ(0, fd, read_buf, sizeof(read_buf)); in verify_lseek() 45 memset(read_buf, 0, sizeof(read_buf)); in verify_lseek() 60 SAFE_READ(1, fd, read_buf, tc->exp_size); in verify_lseek() 62 if (tc->exp_data && strcmp(read_buf, tc->exp_data)) { in verify_lseek()
|
D | lseek07.c | 39 char read_buf[64]; in verify_lseek() local 42 memset(read_buf, 0, sizeof(read_buf)); in verify_lseek() 63 SAFE_READ(1, *tc->fd, read_buf, tc->exp_size); in verify_lseek() 65 if (strcmp(read_buf, tc->exp_data)) { in verify_lseek() 67 tc->fname, tc->off, read_buf); in verify_lseek() 70 tc->fname, tc->off, read_buf); in verify_lseek()
|
/third_party/ltp/testcases/kernel/syscalls/pread/ |
D | pread01.c | 30 static char *read_buf[NBUFS]; variable 49 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in compare_bufers() 61 SAFE_PREAD(1, fildes, read_buf[2], K1, K2); in verify_pread() 65 SAFE_PREAD(1, fildes, read_buf[3], K1, K3); in verify_pread() 68 SAFE_READ(1, fildes, read_buf[0], K1); in verify_pread() 71 SAFE_PREAD(1, fildes, read_buf[1], K1, K1); in verify_pread() 85 read_buf[count] = SAFE_MALLOC(K1); in setup() 104 free(read_buf[count]); in cleanup()
|
/third_party/ltp/testcases/kernel/sound/ |
D | snd_timer01.c | 89 char read_buf[MAX_BUFSIZE]; in run() local 97 iov.iov_base = read_buf; in run() 98 iov.iov_len = sizeof(read_buf) - 1; in run() 103 memset(read_buf, 0, sizeof(read_buf)); in run() 114 if (read_buf[i]) { in run() 122 len = strlen(read_buf); in run()
|
/third_party/glib/glib/ |
D | giochannel.c | 162 : (channel)->read_buf) 195 channel->read_buf = NULL; /* Lazy allocate buffers */ in g_io_channel_init() 249 if (channel->read_buf) in g_io_channel_unref() 250 g_string_free (channel->read_buf, TRUE); in g_io_channel_unref() 573 if (channel->read_buf) in g_io_channel_purge() 574 g_string_truncate (channel->read_buf, 0); in g_io_channel_purge() 733 if (channel->read_buf && (channel->read_buf->len > 0)) in g_io_channel_get_buffer_condition() 1116 if (channel->read_buf) in g_io_channel_seek_position() 1117 offset -= channel->read_buf->len; in g_io_channel_seek_position() 1150 if (channel->read_buf) in g_io_channel_seek_position() [all …]
|
/third_party/ltp/testcases/kernel/syscalls/llseek/ |
D | llseek03.c | 78 char read_buf[128]; in verify_lseek64() local 83 SAFE_READ(1, fd, read_buf, 4); in verify_lseek64() 99 memset(read_buf, 0, sizeof(read_buf)); in verify_lseek64() 101 ret = SAFE_READ(0, fd, read_buf, tc->read); in verify_lseek64() 112 if (strcmp(read_buf, tc->str)) in verify_lseek64()
|
/third_party/libsnd/tests/ |
D | dwvw_test.c | 57 static int read_buf [BUFFER_SIZE] ; in dwvw_test() local 89 if ((k = sf_read_int (file, read_buf, BUFFER_SIZE)) != BUFFER_SIZE) in dwvw_test() 95 { if (read_buf [k] != write_buf [k]) in dwvw_test() 97 write_buf [k] >> (32 - bit_width), read_buf [k] >> (32 - bit_width), in dwvw_test() 99 oct_save_int (write_buf, read_buf, BUFFER_SIZE) ; in dwvw_test()
|
/third_party/ltp/testcases/kernel/syscalls/truncate/ |
D | truncate02.c | 48 char read_buf[tc->read_count]; in verify_truncate() local 51 memset(read_buf, 'b', tc->read_count); in verify_truncate() 80 SAFE_PREAD(1, fd, read_buf, tc->read_count, tc->read_off); in verify_truncate() 82 if (read_buf[i] != tc->exp_char) { in verify_truncate() 84 TESTFILE, read_buf[i], tc->exp_char); in verify_truncate()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_wait/ |
D | epoll_wait01.c | 42 char read_buf[write_size]; in get_writesize() local 44 SAFE_READ(1, fds[0], read_buf, sizeof(read_buf)); in get_writesize() 134 char read_buf[sizeof(write_buf)]; in verify_epollin() local 169 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollin() 175 char read_buf[sizeof(write_buf)]; in verify_epollio() local 216 SAFE_READ(1, fds[0], read_buf, sizeof(write_buf)); in verify_epollio()
|
/third_party/ltp/testcases/kernel/syscalls/pwrite/ |
D | pwrite01.c | 31 static char *read_buf[NBUFS]; variable 51 SAFE_READ(1, fildes, read_buf[count], K1); in check_file_contents() 53 if (memcmp(write_buf[count], read_buf[count], K1) != 0) { in check_file_contents() 89 read_buf[count] = SAFE_MALLOC(K1); in setup() 102 free(read_buf[count]); in cleanup()
|
/third_party/ltp/testcases/kernel/syscalls/msync/ |
D | msync01.c | 92 char read_buf[BUF_SIZE]; /* buffer to hold data read from file */ in main() local 119 nread = read(fildes, read_buf, sizeof(read_buf)); in main() 129 if (read_buf[count] != 1) in main()
|
/third_party/ffmpeg/libavformat/ |
D | segafilmenc.c | 175 uint8_t *buf, *read_buf[2]; in write_header() local 183 read_buf[0] = buf; in write_header() 184 read_buf[1] = header; in write_header() 209 read_size[read_buf_id] = avio_read(read_pb, read_buf[read_buf_id], in write_header() 215 avio_write(format_context->pb, read_buf[read_buf_id], n); in write_header()
|
/third_party/ltp/testcases/kernel/syscalls/poll/ |
D | poll01.c | 48 char read_buf[BUF_SIZE]; in verify_pollin() local 72 SAFE_READ(1, fildes[0], read_buf, sizeof(write_buf)); in verify_pollin()
|
/third_party/libsoup/libsoup/ |
D | soup-multipart-input-stream.c | 350 guchar read_buf[RESPONSE_BLOCK_SIZE]; in soup_multipart_input_stream_read_headers() local 361 nread = soup_filter_input_stream_read_line (priv->base_stream, read_buf, sizeof (read_buf), in soup_multipart_input_stream_read_headers() 367 g_byte_array_append (priv->meta_buf, read_buf, nread); in soup_multipart_input_stream_read_headers() 379 buf = &read_buf[nread - 4]; in soup_multipart_input_stream_read_headers()
|
/third_party/ltp/testcases/kernel/syscalls/epoll_ctl/ |
D | epoll_ctl01.c | 77 char read_buf[sizeof(write_buf)]; in check_epoll_ctl() local 120 SAFE_READ(1, fd[0], read_buf, sizeof(write_buf)); in check_epoll_ctl()
|
/third_party/NuttX/drivers/usbdev/gadget/ |
D | f_hid.c | 350 ret = memcpy_s(hid->read_buf, HID_OUT_DATA_SIZE, req->buf, req->xfrd); in fhid_output_request_complete() 474 hid->read_buf = memalign(USB_CACHE_ALIGN_SIZE, HID_OUT_DATA_SIZE); in usbclass_hid_bind() 475 if (hid->read_buf == NULL) in usbclass_hid_bind() 541 if (hid->read_buf != NULL) in usbclass_hid_unbind() 543 free(hid->read_buf); in usbclass_hid_unbind() 544 hid->read_buf = NULL; in usbclass_hid_unbind() 601 req->buf = (uint8_t *)hid->read_buf; in usbclass_hid_set_endpoint()
|
/third_party/gstreamer/gstreamer/libs/gst/check/libcheck/ |
D | check_pack.c | 74 static int read_buf (FILE * fdes, int size, char *buf); 338 read_buf (FILE * fdes, int size, char *buf) in read_buf() function 467 nread = read_buf (fdes, CK_MAX_MSG_SIZE, buf); in punpack() 481 nread = read_buf (fdes, n, buf + nparse); in punpack()
|
/third_party/boost/libs/asio/test/latency/ |
D | udp_client.cpp | 54 std::vector<unsigned char> read_buf(buf_size); in main() local 67 do socket.receive(boost::asio::buffer(read_buf), 0, ec); in main()
|
D | tcp_client.cpp | 74 std::vector<unsigned char> read_buf(buf_size); in main() local 92 boost::asio::buffer(read_buf), in main()
|