Home
last modified time | relevance | path

Searched refs:total_read (Results 1 – 18 of 18) sorted by relevance

/third_party/ltp/testcases/kernel/syscalls/writev/
Dwritev03.c90 int total_read; in run() local
100 for (total_read = 0; total_read < tst_atomic_load(&written);) { in run()
101 total_read += SAFE_READ(0, readfd, readbuf+total_read, in run()
102 BUF_SIZE + 1 - total_read); in run()
108 if (total_read > BUF_SIZE) in run()
111 if (total_read <= 0) in run()
114 if (memcmp(readbuf, buf, total_read)) { in run()
/third_party/python/Parser/
Dmyreadline.c121 DWORD n_read, total_read, wbuflen, u8len; in _PyOS_WindowsConsoleReadline() local
127 total_read = 0; in _PyOS_WindowsConsoleReadline()
134 if (!ReadConsoleW(hStdIn, &wbuf[total_read], wbuflen - total_read, &n_read, NULL)) { in _PyOS_WindowsConsoleReadline()
161 total_read += n_read; in _PyOS_WindowsConsoleReadline()
162 if (total_read == 0 || wbuf[total_read - 1] == L'\n') { in _PyOS_WindowsConsoleReadline()
167 wbuf[total_read] = '\0'; in _PyOS_WindowsConsoleReadline()
205 wbuf, total_read, in _PyOS_WindowsConsoleReadline()
217 wbuf, total_read, in _PyOS_WindowsConsoleReadline()
/third_party/glib/gio/tests/
Dconverter-stream.c292 gsize total_read; in test_expander() local
329 total_read = 0; in test_expander()
341 total_read += res; in test_expander()
344 g_assert_cmpmem (converted1, n_written, converted2, total_read); in test_expander()
389 gsize total_read; in test_compressor() local
419 total_read = 0; in test_compressor()
431 total_read += res; in test_compressor()
435 g_assert_cmpmem (unexpanded_data, n_read - 1, converted, total_read); in test_compressor()
480 total_read = 0; in test_compressor()
492 total_read += res; in test_compressor()
[all …]
Dlive-g-file.c500 gssize read, total_read; in test_initial_structure() local
560 total_read = 0; in test_initial_structure()
562 while (total_read < PATTERN_FILE_SIZE) in test_initial_structure()
566 g_input_stream_read (G_INPUT_STREAM (ins), buffer + total_read, in test_initial_structure()
569 total_read += read; in test_initial_structure()
571 read, total_read, PATTERN_FILE_SIZE); in test_initial_structure()
573 g_assert_cmpint (total_read, ==, PATTERN_FILE_SIZE); in test_initial_structure()
/third_party/mesa3d/src/compiler/glsl/glcpp/
Dglcpp.c52 size_t total_read = 0; in load_text_fp() local
56 if (total_read + CHUNK + 1 > text_size) { in load_text_fp()
64 bytes = fread (text + total_read, 1, CHUNK, fp); in load_text_fp()
65 total_read += bytes; in load_text_fp()
72 text[total_read] = '\0'; in load_text_fp()
/third_party/mesa3d/src/compiler/glsl/
Dstandalone.cpp342 size_t total_read = 0; in load_text_file() local
356 size_t bytes = fread(text + total_read, in load_text_file()
357 1, size - total_read, fp); in load_text_file()
358 if (bytes < size - total_read) { in load_text_file()
368 total_read += bytes; in load_text_file()
369 } while (total_read < size); in load_text_file()
371 text[total_read] = '\0'; in load_text_file()
/third_party/ltp/testcases/kernel/fs/proc/
Dproc01.c68 unsigned long long total_read; variable
425 total_read += file_total_read; in readproc()
474 "total read: %llu bytes, %u objs", total_read, in main()
/third_party/gstreamer/gstplugins_base/tests/check/elements/
Dmultisocketsink.c130 gssize total_read, read; in read_handle_n_bytes_exactly() local
138 total_read = 0; in read_handle_n_bytes_exactly()
141 g_socket_receive (srchandle, data + total_read, count - total_read, in read_handle_n_bytes_exactly()
150 total_read += read; in read_handle_n_bytes_exactly()
153 read, total_read); in read_handle_n_bytes_exactly()
155 while (total_read < count); in read_handle_n_bytes_exactly()
/third_party/flutter/skia/third_party/externals/sdl/src/file/
DSDL_rwops.c185 size_t total_read = 0; in windows_file_read() local
209 total_read += read_ahead; in windows_file_read()
223 total_read += read_ahead; in windows_file_read()
230 total_read += byte_read; in windows_file_read()
232 return (total_read / size); in windows_file_read()
/third_party/curl/lib/
Dkrb5.c556 size_t total_read = 0; in sec_recv() local
573 total_read += bytes_read; in sec_recv()
586 total_read += bytes_read; in sec_recv()
589 return total_read; in sec_recv()
/third_party/boost/libs/beast/test/extern/zlib-1.2.11/contrib/minizip/
Dminizip.c192 unsigned long total_read = 0; in getFileCrc() local
212 total_read += size_read; in getFileCrc()
/third_party/skia/third_party/externals/zlib/contrib/minizip/
Dminizip.c192 unsigned long total_read = 0; in getFileCrc() local
212 total_read += size_read; in getFileCrc()
/third_party/flutter/skia/third_party/externals/zlib/contrib/minizip/
Dminizip.c192 unsigned long total_read = 0; in getFileCrc() local
212 total_read += size_read; in getFileCrc()
/third_party/boost/tools/boost_install/test/iostreams/zlib-1.2.11/contrib/minizip/
Dminizip.c192 unsigned long total_read = 0; in getFileCrc() local
212 total_read += size_read; in getFileCrc()
/third_party/zlib/contrib/minizip/
Dminizip.c193 unsigned long total_read = 0; in getFileCrc() local
213 total_read += size_read; in getFileCrc()
/third_party/ffmpeg/libavformat/
Dmpeg.c925 int ret, psize, total_read = 0, i; in vobsub_read_packet() local
978 if (total_read + pkt_size > psize) in vobsub_read_packet()
980 total_read += pkt_size; in vobsub_read_packet()
993 } while (total_read < psize); in vobsub_read_packet()
/third_party/libsoup/
DChangeLog.pre-git6649 header_len of 0 and a total_read of 0 in the case of a SIGPIPE; in
/third_party/chromium/patch/
D0004-3.2-Beta5.patch45304 return total_read;