Home
last modified time | relevance | path

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

123

/bionic/docs/
DEINTR.md6 the kernel needs to interrupt that system call. For something like a read(2)
7 call where some data has already been read, the call can just return with
8 what data it has. (This is one reason why read(2) sometimes returns less data
12 But what if read(2) hasn't read any data yet? Or what if you've made some other
62 n = read(fd, buf, buf_size); // BAD!
63 n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size)); // GOOD!
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/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.cpp92 ASSERT_EQ(STR_SSIZE(STRING_MSG), read(tf.fd, buf, sizeof(STRING_MSG))); in TEST()
170 ASSERT_EQ(static_cast<ssize_t>(pagesize), read(tf.fd, buf, pagesize)); in TEST()
173 ASSERT_EQ(static_cast<ssize_t>(pagesize), read(tf.fd, buf, pagesize)); in TEST()
176 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.cpp521 EXPECT_FORTIFY_DEATH(read(kBogusFD, small_buffer, sizeof(small_buffer) + 1)); in FORTIFY_TEST()
567 EXPECT_NO_DEATH(read(kBogusFD, split.tiny_buffer, sizeof(split))); in FORTIFY_TEST()
587 EXPECT_FORTIFY_DEATH(read(kBogusFD, unknown, count)); in FORTIFY_TEST()
Dpidfd_test.cpp77 ASSERT_EQ(3, read(dup.get(), buf, sizeof(buf))); in 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.cpp413 TEMP_FAILURE_RETRY(read(worker_pipe_read.get(), &buf, sizeof(buf))); in PtraceResumptionTest()
419 TEMP_FAILURE_RETRY(read(worker_pipe_setup_read.get(), &buf, sizeof(buf))); in PtraceResumptionTest()
Dutils.h248 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 __BIONIC_COMPLICATED_NULLNESS __pass_object_size0 buf, size_t coun… 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/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()
Dexecinfo.cpp144 ssize_t num_read = read(fd.get(), cur_string, file_size); in backtrace_symbols()
Dmalloc_heapprofd.cpp167 ssize_t rd = read(fd, cmdline, sizeof(cmdline) - 1); in GetHeapprofdProgramProperty()
/bionic/libc/tzcode/
Dbionic.cpp142 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); in __bionic_open_tzdata_path()
181 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.cpp84 ssize_t nread = read(statm_fd, buf, BUF_SIZE); in BM_read_statm()
/bionic/libc/tools/
Dcheck-symbols-glibc.py45 ignored_symbols |= set(open(f, 'r').read().splitlines())
Dsymbols.py25 for line in f.read().splitlines():
/bionic/tools/versioner/
Drun_tests.py29 expected_output = f.read()
/bionic/libc/kernel/tools/
Dutils.py100 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.cpp124 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer, sizeof(buffer) - 1)); in RunTest()

123