Home
last modified time | relevance | path

Searched refs:read (Results 1 – 25 of 61) sorted by relevance

123

/bionic/tests/
Dsys_sendfile_test.cpp42 ASSERT_EQ(2, TEMP_FAILURE_RETRY(read(dst_file.fd, &buf, 2))); in TEST()
61 ASSERT_EQ(2, TEMP_FAILURE_RETRY(read(dst_file.fd, &buf, 2))); in TEST()
Dsys_mman_test.cpp88 ASSERT_EQ(STR_SSIZE(STRING_MSG), read(tf.fd, buf, sizeof(STRING_MSG))); in TEST()
166 ASSERT_EQ(static_cast<ssize_t>(pagesize), read(tf.fd, buf, pagesize)); in TEST()
169 ASSERT_EQ(static_cast<ssize_t>(pagesize), read(tf.fd, buf, pagesize)); in TEST()
172 ASSERT_EQ(static_cast<ssize_t>(pagesize), read(tf.fd, buf, pagesize)); in TEST()
Dsys_signalfd_test.cpp47 ASSERT_EQ(static_cast<ssize_t>(sizeof(sfd_si)), read(fd, &sfd_si, sizeof(sfd_si))); in TestSignalFd()
Dclang_fortify_tests.cpp544 EXPECT_FORTIFY_DEATH(read(kBogusFD, small_buffer, sizeof(small_buffer) + 1)); in FORTIFY_TEST()
590 EXPECT_NO_DEATH(read(kBogusFD, split.tiny_buffer, sizeof(split))); in FORTIFY_TEST()
610 EXPECT_FORTIFY_DEATH(read(kBogusFD, unknown, count)); in FORTIFY_TEST()
Dsys_select_test.cpp71 ASSERT_EQ(static_cast<ssize_t>(sizeof(DELAY_MSG)), read(fd, buf, sizeof(DELAY_MSG))); in DelayedWriteCleanup()
Dsys_ptrace_test.cpp408 TEMP_FAILURE_RETRY(read(worker_pipe_read.get(), &buf, sizeof(buf))); in PtraceResumptionTest()
414 TEMP_FAILURE_RETRY(read(worker_pipe_setup_read.get(), &buf, sizeof(buf))); in PtraceResumptionTest()
Dutils.h254 while ((bytes_read = TEMP_FAILURE_RETRY(read(fds[0], buf, sizeof(buf)))) > 0) { in Run()
/bionic/libc/include/bits/fortify/
Dunistd.h151 ssize_t read(int fd, void* const __pass_object_size0 buf, size_t count) in read() function
153 __error_if_overflows_ssizet(count, read) in read()
154 __error_if_overflows_objectsize(count, __bos0(buf), read) { in read()
162 return __call_bypassing_fortify(read)(fd, buf, count); in read()
/bionic/libc/tools/
Dgenerate-NOTICE.py124 content = open(path, "r").read().decode("utf-8")
127 content = open(path, "r").read().decode("iso-8859-1")
Dcheck-symbols-glibc.py45 ignored_symbols |= set(open(f, 'r').read().splitlines())
Dsymbols.py25 for line in f.read().splitlines():
/bionic/libc/bionic/
Deventfd.cpp41 return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1; in eventfd_read()
Dgetentropy.cpp42 ssize_t count = TEMP_FAILURE_RETRY(read(fd.get(), static_cast<char*>(buffer) + collected, in getentropy_urandom()
Dpthread_setname_np.cpp68 ssize_t n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size)); in pthread_getname_np()
Dmalloc_heapprofd.cpp167 ssize_t rd = read(fd, cmdline, sizeof(cmdline) - 1); in GetHeapprofdProgramProperty()
/bionic/libc/tzcode/
Dbionic.cpp123 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); in __bionic_open_tzdata_path()
162 if (TEMP_FAILURE_RETRY(read(fd, index, index_size)) != static_cast<ssize_t>(index_size)) { in __bionic_open_tzdata_path()
/bionic/benchmarks/
Dget_heap_size_benchmark.cpp86 ssize_t nread = read(statm_fd, buf, BUF_SIZE); in BM_read_statm()
/bionic/tools/versioner/
Drun_tests.py29 expected_output = f.read()
/bionic/libc/kernel/tools/
Dutils.py101 olddata = f.read()
/bionic/benchmarks/linker_relocation/gen/
Dliblinker_reloc_bench_089.S180 CALL(read)
Dliblinker_reloc_bench_023.S222 CALL(read)
/bionic/benchmarks/tests/
Dinterface_test.cpp127 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer, sizeof(buffer) - 1)); in RunTest()
/bionic/docs/
Dlibc_assembler.md133 * Verify the routine does not read past the end of the buffers. Many
135 read past the end. This kind of bug results in an infrequent and difficult to
/bionic/libc/include/
Dunistd.h238 ssize_t read(int __fd, void* __buf, size_t __count);
/bionic/libc/dns/resolv/
Dres_send.c878 while ((n = read(statp->_vcsock, (char *)cp, (size_t)len)) > 0) { in send_vc()
924 while (len != 0 && (n = read(statp->_vcsock, (char *)cp, (size_t)len)) > 0){ in send_vc()
944 n = read(statp->_vcsock, junk, in send_vc()

123