Home
last modified time | relevance | path

Searched refs:n_read (Results 1 – 19 of 19) sorted by relevance

/third_party/glib/fuzzing/
Ddriver.c14 size_t n_read, len; in main() local
28 n_read = fread (buf, 1, len, f); in main()
29 assert (n_read == len); in main()
/third_party/json/test/thirdparty/Fuzzer/afl/
Dafl_driver.cpp268 ssize_t n_read = read(0, AflInputBuf, kMaxAflInputSize); in main() local
269 if (n_read > 0) { in main()
272 uint8_t *copy = new uint8_t[n_read]; in main()
273 memcpy(copy, AflInputBuf, n_read); in main()
280 LLVMFuzzerTestOneInput(copy, n_read); in main()
/third_party/json/test/thirdparty/Fuzzer/standalone/
DStandaloneFuzzTargetMain.c35 size_t n_read = fread(buf, 1, len, f); in main() local
36 assert(n_read == len); in main()
39 fprintf(stderr, "Done: %s: (%zd bytes)\n", argv[i], n_read); in main()
/third_party/glib/gio/inotify/
Dinotify-kernel.c174 gsize n_read; in ik_source_read_all_the_events() local
176 n_read = ik_source_read_some_events (iks, buffer, buffer_len); in ik_source_read_all_the_events()
181 if (n_read + MAX_EVENT_SIZE > buffer_len) in ik_source_read_all_the_events()
199 new_buffer = g_malloc (n_read + n_readable); in ik_source_read_all_the_events()
200 memcpy (new_buffer, buffer, n_read); in ik_source_read_all_the_events()
201 n_read += ik_source_read_some_events (iks, new_buffer + n_read, n_readable); in ik_source_read_all_the_events()
212 *length_out = n_read; in ik_source_read_all_the_events()
/third_party/gettext/libtextstyle/gnulib-local/lib/
Dhtml-styled-ostream.oo.c170 size_t n_read = safe_read (fd, buf, sizeof (buf)); in html_styled_ostream_create() local
171 if (n_read == SAFE_READ_ERROR) in html_styled_ostream_create()
174 if (n_read == 0) in html_styled_ostream_create()
177 ostream_write_mem (stream->destination, buf, n_read); in html_styled_ostream_create()
/third_party/gettext/gettext-tools/src/
Durlget.c222 ssize_t n_read = read (src_fd, buf, buf_size); in cat_file() local
223 if (n_read < 0) in cat_file()
231 if (n_read == 0) in cat_file()
234 if (full_write (STDOUT_FILENO, buf, n_read) < n_read) in cat_file()
/third_party/python/Parser/
Dmyreadline.c121 DWORD n_read, total_read, wbuflen, u8len; in _PyOS_WindowsConsoleReadline() local
126 n_read = (DWORD)-1; in _PyOS_WindowsConsoleReadline()
134 if (!ReadConsoleW(hStdIn, &wbuf[total_read], wbuflen - total_read, &n_read, NULL)) { in _PyOS_WindowsConsoleReadline()
138 if (n_read == (DWORD)-1 && (err = GetLastError()) == ERROR_OPERATION_ABORTED) { in _PyOS_WindowsConsoleReadline()
141 if (n_read == 0) { in _PyOS_WindowsConsoleReadline()
161 total_read += n_read; in _PyOS_WindowsConsoleReadline()
/third_party/glib/gio/tests/
Dconverter-stream.c291 gsize n_read, n_written; in test_expander() local
311 &n_read, &n_written, NULL); in test_expander()
314 g_assert (n_read == 11); in test_expander()
388 gsize n_read, expanded_size; in test_compressor() local
404 &n_read, &expanded_size, NULL); in test_compressor()
406 g_assert (n_read == 11); in test_compressor()
435 g_assert_cmpmem (unexpanded_data, n_read - 1, converted, total_read); in test_compressor()
466 n_read - 1); in test_compressor()
964 gsize n_read, expanded_size; in test_converter_pollable() local
983 &n_read, &expanded_size, NULL); in test_converter_pollable()
[all …]
/third_party/gstreamer/gstplugins_base/ext/gl/
Dgstgloverlay.c575 gsize n_read; in load_file() local
589 n_read = fread (buff, 1, sizeof (buff), fp); in load_file()
590 if (n_read != sizeof (buff)) { in load_file()
747 gint n_read; in gst_gl_overlay_load_png() local
753 n_read = fread (magic, 1, sizeof (magic), fp); in gst_gl_overlay_load_png()
754 if (n_read != sizeof (magic)) { in gst_gl_overlay_load_png()
/third_party/glib/gio/
Dgoutputstream.c766 gssize n_read, n_written; in g_output_stream_real_splice() local
783 n_read = g_input_stream_read (source, buffer, sizeof (buffer), cancellable, error); in g_output_stream_real_splice()
784 if (n_read == -1) in g_output_stream_real_splice()
790 if (n_read == 0) in g_output_stream_real_splice()
794 while (n_read > 0) in g_output_stream_real_splice()
796 n_written = class->write_fn (stream, p, n_read, cancellable, error); in g_output_stream_real_splice()
804 n_read -= n_written; in g_output_stream_real_splice()
2648 gssize n_read; member
2776 if (op->n_written < op->n_read) in real_splice_async_write_cb()
2780 op->n_read - op->n_written, in real_splice_async_write_cb()
[all …]
Dgfile.c2899 gssize n_read; in copy_stream_with_progress() local
2944 n_read = g_input_stream_read (in, buffer, STREAM_BUFFER_SIZE, cancellable, error); in copy_stream_with_progress()
2945 if (n_read == -1) in copy_stream_with_progress()
2951 if (n_read == 0) in copy_stream_with_progress()
2954 current_size += n_read; in copy_stream_with_progress()
2956 res = g_output_stream_write_all (out, buffer, n_read, &n_written, cancellable, error); in copy_stream_with_progress()
3068 long n_read; in splice_stream_with_progress() local
3074 if (!do_splice (fd_in, &offset_in, buffer[1], NULL, buffer_size, &n_read, error)) in splice_stream_with_progress()
3077 if (n_read == 0) in splice_stream_with_progress()
3083 while (n_read > 0) in splice_stream_with_progress()
[all …]
/third_party/gstreamer/gstplugins_base/gst-libs/gst/tag/
Did3v2frames.c1103 glong n_read = 0, size = 0; in parse_insert_string_field() local
1142 field = g_utf16_to_utf8 (utf16, len, &n_read, &size, NULL); in parse_insert_string_field()
1143 if (field != NULL && n_read > 0 && g_utf8_validate (field, -1, NULL)) { in parse_insert_string_field()
1155 n_read = size = 0; in parse_insert_string_field()
1158 field = g_utf16_to_utf8 (utf16, len, &n_read, &size, NULL); in parse_insert_string_field()
1161 if (field != NULL && n_read > 0 && g_utf8_validate (field, -1, NULL)) in parse_insert_string_field()
/third_party/skia/third_party/externals/abseil-cpp/absl/debugging/
Dsymbolize_elf.inc537 ssize_t n_read =
539 if (n_read == -1) {
541 } else if (n_read > kMaxSectionNameLen) {
546 absl::string_view name(header_name, strnlen(header_name, n_read));
586 ssize_t n_read = ReadFromOffset(fd, &header_name, name_len, name_offset);
587 if (n_read < 0) {
589 } else if (static_cast<size_t>(n_read) != name_len) {
743 const ssize_t n_read = ReadFromOffset(fd, out, out_size, off);
744 if (n_read <= 0) {
747 "Unable to read from fd %d at offset %zu: n_read = %zd", fd,
[all …]
/third_party/abseil-cpp/absl/debugging/
Dsymbolize_elf.inc537 ssize_t n_read =
539 if (n_read == -1) {
541 } else if (n_read > kMaxSectionNameLen) {
546 absl::string_view name(header_name, strnlen(header_name, n_read));
586 ssize_t n_read = ReadFromOffset(fd, &header_name, name_len, name_offset);
587 if (n_read < 0) {
589 } else if (static_cast<size_t>(n_read) != name_len) {
733 const ssize_t n_read = ReadFromOffset(fd, out, out_size, off);
734 if (n_read <= 0) {
737 "Unable to read from fd %d at offset %zu: n_read = %zd", fd,
[all …]
/third_party/ffmpeg/libavfilter/
Daf_headphone.c263 int n_read; in headphone_fast_convolute() local
268 n_read = FFMIN(ir_len, in->nb_samples); in headphone_fast_convolute()
269 for (j = 0; j < n_read; j++) { in headphone_fast_convolute()
275 for (j = n_read; j < in->nb_samples; j++) { in headphone_fast_convolute()
Daf_sofalizer.c459 int n_read; in sofalizer_fast_convolute() local
467 n_read = FFMIN(ir_samples, in->nb_samples); in sofalizer_fast_convolute()
468 for (j = 0; j < n_read; j++) { in sofalizer_fast_convolute()
477 for (j = n_read; j < in->nb_samples; j++) { in sofalizer_fast_convolute()
/third_party/pulseaudio/src/modules/bluetooth/
Dmodule-bluez5-device.c1417 int n_read; in thread_func() local
1420 n_read = a2dp_process_push(u); in thread_func()
1422 n_read = sco_process_push(u); in thread_func()
1424 if (n_read < 0) in thread_func()
1427 if (have_sink && n_read > 0) { in thread_func()
1429 bytes_to_write += n_read; in thread_func()
/third_party/libuv/test/
Dtest-spawn.c1967 DWORD n_read; in spawn_stdin_stdout() local
1970 if (!ReadFile(h_stdin, buf, sizeof buf, &n_read, NULL)) { in spawn_stdin_stdout()
1974 to_write = n_read; in spawn_stdin_stdout()
/third_party/gstreamer/gstplugins_base/gst/typefind/
Dgsttypefindfunctions.c3897 glong n_read = 0, size = 0; in mss_manifest_type_find() local
3957 utf8 = g_utf16_to_utf8 (utf16_ne, length / 2, &n_read, &size, NULL); in mss_manifest_type_find()
3958 if (utf8 != NULL && n_read > 0) { in mss_manifest_type_find()