Home
last modified time | relevance | path

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

/external/rust/crates/libz-sys/src/zlib-ng/test/fuzz/
Dstandalone_fuzz_target_runner.c12 size_t len, n_read, err; in main() local
25 n_read = fread(buf, 1, len, f); in main()
26 assert(n_read == len); in main()
32 fprintf(stderr, "Done: %s: (%d bytes)\n", argv[i], (int)n_read); in main()
/external/llvm/lib/Fuzzer/afl/
Dafl_driver.cpp262 ssize_t n_read = read(0, AflInputBuf, kMaxAflInputSize); in main() local
263 if (n_read > 0) { in main()
266 uint8_t *copy = new uint8_t[n_read]; in main()
267 memcpy(copy, AflInputBuf, n_read); in main()
273 LLVMFuzzerTestOneInput(copy, n_read); in main()
/external/igt-gpu-tools/lib/
Digt_pm.c595 ssize_t n_read; in igt_get_runtime_pm_status() local
599 n_read = read(pm_status_fd, buf, ARRAY_SIZE(buf) - 1); in igt_get_runtime_pm_status()
600 igt_assert(n_read >= 0); in igt_get_runtime_pm_status()
601 buf[n_read] = '\0'; in igt_get_runtime_pm_status()
603 if (strncmp(buf, "suspended\n", n_read) == 0) in igt_get_runtime_pm_status()
605 else if (strncmp(buf, "active\n", n_read) == 0) in igt_get_runtime_pm_status()
607 else if (strncmp(buf, "suspending\n", n_read) == 0) in igt_get_runtime_pm_status()
609 else if (strncmp(buf, "resuming\n", n_read) == 0) in igt_get_runtime_pm_status()
/external/llvm-project/compiler-rt/lib/fuzzer/afl/
Dafl_driver.cpp255 ssize_t n_read = read(0, AflInputBuf, kMaxAflInputSize); in main() local
256 if (n_read > 0) { in main()
259 uint8_t *copy = new uint8_t[n_read]; in main()
260 memcpy(copy, AflInputBuf, n_read); in main()
262 LLVMFuzzerTestOneInput(copy, n_read); in main()
/external/rust/crates/libfuzzer-sys/libfuzzer/afl/
Dafl_driver.cpp255 ssize_t n_read = read(0, AflInputBuf, kMaxAflInputSize); in main() local
256 if (n_read > 0) { in main()
259 uint8_t *copy = new uint8_t[n_read]; in main()
260 memcpy(copy, AflInputBuf, n_read); in main()
262 LLVMFuzzerTestOneInput(copy, n_read); in main()
/external/rust/crates/libfuzzer-sys/libfuzzer/standalone/
DStandaloneFuzzTargetMain.c34 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()
/external/llvm-project/compiler-rt/lib/fuzzer/standalone/
DStandaloneFuzzTargetMain.c34 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()
/external/python/cpython3/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()
/external/libevent/test/
Dbench_httpclient.c64 size_t n_read; member
79 ri->n_read += n; in readcb()
90 total_n_bytes += ri->n_read; in errorcb()
162 ri->n_read = 0; in launch_request()
Dregress.c2147 ev_ssize_t n_read; in re_add_read_cb() local
2151 n_read = read(fd, buf, sizeof(buf)); in re_add_read_cb()
2153 if (n_read < 0) { in re_add_read_cb()
/external/rust/crates/libz-sys/src/zlib-ng/test/
Dswitchlevels.c27 size_t n_read = fread(buf + total_read, 1, size - total_read, stdin); in read_all() local
32 if (n_read == 0) { in read_all()
36 total_read += n_read; in read_all()
/external/llvm-project/llvm/include/llvm/Demangle/
DDemangle.h56 char *microsoftDemangle(const char *mangled_name, size_t *n_read,
/external/abseil-cpp/absl/debugging/
Dsymbolize_elf.inc522 ssize_t n_read =
524 if (n_read == -1) {
526 } else if (n_read > kMaxSectionNameLen) {
530 header_name[n_read] = '\0';
572 ssize_t n_read = ReadFromOffset(fd, &header_name, name_len, name_offset);
573 if (n_read < 0) {
575 } else if (static_cast<size_t>(n_read) != name_len) {
719 const ssize_t n_read = ReadFromOffset(fd, out, out_size, off);
720 if (n_read <= 0) {
723 "Unable to read from fd %d at offset %zu: n_read = %zd", fd,
[all …]
/external/webrtc/third_party/abseil-cpp/absl/debugging/
Dsymbolize_elf.inc522 ssize_t n_read =
524 if (n_read == -1) {
526 } else if (n_read > kMaxSectionNameLen) {
530 header_name[n_read] = '\0';
572 ssize_t n_read = ReadFromOffset(fd, &header_name, name_len, name_offset);
573 if (n_read < 0) {
575 } else if (static_cast<size_t>(n_read) != name_len) {
719 const ssize_t n_read = ReadFromOffset(fd, out, out_size, off);
720 if (n_read <= 0) {
723 "Unable to read from fd %d at offset %zu: n_read = %zd", fd,
[all …]
/external/rust/crates/grpcio-sys/grpc/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 …]
/external/libtextclassifier/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 …]
/external/angle/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) {
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 …]
/external/openscreen/third_party/abseil/src/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 …]
/external/llvm-project/lldb/source/Plugins/Platform/POSIX/
DPlatformPOSIX.cpp235 const uint64_t n_read = ReadFile(fd_src, offset, buffer_sp->GetBytes(), in GetFile() local
239 if (n_read == 0) in GetFile()
242 buffer_sp->GetBytes(), n_read, in GetFile()
243 error) != n_read) { in GetFile()
248 offset += n_read; in GetFile()
/external/libevent/
Dbufferevent_openssl.c283 unsigned long n_read; member
558 bev_ssl->counts.n_read = rbio ? BIO_number_read(rbio) : 0; in init_bio_counts()
568 unsigned long r = num_r - bev_ssl->counts.n_read; in decrement_buckets()
574 bev_ssl->counts.n_read = num_r; in decrement_buckets()
Devmap.c956 int n_read = 0, n_write = 0, n_close = 0; local
968 ++n_read;
975 EVUTIL_ASSERT(n_read == io_info->nread);
/external/llvm-project/lldb/source/Target/
DPlatform.cpp1681 const uint64_t n_read = in DownloadModuleSlice() local
1685 if (n_read == 0) { in DownloadModuleSlice()
1689 offset += n_read; in DownloadModuleSlice()
1690 total_bytes_read += n_read; in DownloadModuleSlice()
1691 dst.write(&buffer[0], n_read); in DownloadModuleSlice()
/external/igt-gpu-tools/tests/
Dkms_frontbuffer_tracking.c809 ssize_t n_read; in fbc_get_last_action() local
816 n_read = sscanf(action, "Last action: %ld.%ld", in fbc_get_last_action()
818 igt_assert(n_read == 2); in fbc_get_last_action()
856 ssize_t n_read; in fbc_setup_last_action() local
870 n_read = sscanf(action, "Last action: %ld.%ld", in fbc_setup_last_action()
872 igt_assert(n_read == 2); in fbc_setup_last_action()
/external/igt-gpu-tools/tests/i915/
Di915_pm_rpm.c187 ssize_t n_read; in get_pc8_status() local
191 n_read = read(pc8_status_fd, buf, ARRAY_SIZE(buf)); in get_pc8_status()
192 igt_assert(n_read >= 0); in get_pc8_status()
193 buf[n_read] = '\0'; in get_pc8_status()