/bionic/docs/ |
D | EINTR.md | 6 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!
|
D | libc_assembler.md | 133 * 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/ |
D | sys_sendfile_test.cpp | 42 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()
|
D | sys_mman_test.cpp | 92 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()
|
D | sys_signalfd_test.cpp | 47 ASSERT_EQ(static_cast<ssize_t>(sizeof(sfd_si)), read(fd, &sfd_si, sizeof(sfd_si))); in TestSignalFd()
|
D | clang_fortify_tests.cpp | 521 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()
|
D | pidfd_test.cpp | 77 ASSERT_EQ(3, read(dup.get(), buf, sizeof(buf))); in TEST()
|
D | sys_select_test.cpp | 71 ASSERT_EQ(static_cast<ssize_t>(sizeof(DELAY_MSG)), read(fd, buf, sizeof(DELAY_MSG))); in DelayedWriteCleanup()
|
D | sys_ptrace_test.cpp | 413 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()
|
D | utils.h | 248 while ((bytes_read = TEMP_FAILURE_RETRY(read(fds[0], buf, sizeof(buf)))) > 0) { in Run()
|
/bionic/libc/include/bits/fortify/ |
D | unistd.h | 151 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/ |
D | eventfd.cpp | 41 return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1; in eventfd_read()
|
D | getentropy.cpp | 42 ssize_t count = TEMP_FAILURE_RETRY(read(fd.get(), static_cast<char*>(buffer) + collected, in getentropy_urandom()
|
D | pthread_setname_np.cpp | 68 ssize_t n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size)); in pthread_getname_np()
|
D | execinfo.cpp | 144 ssize_t num_read = read(fd.get(), cur_string, file_size); in backtrace_symbols()
|
D | malloc_heapprofd.cpp | 167 ssize_t rd = read(fd, cmdline, sizeof(cmdline) - 1); in GetHeapprofdProgramProperty()
|
/bionic/libc/tzcode/ |
D | bionic.cpp | 142 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/ |
D | get_heap_size_benchmark.cpp | 84 ssize_t nread = read(statm_fd, buf, BUF_SIZE); in BM_read_statm()
|
/bionic/libc/tools/ |
D | check-symbols-glibc.py | 45 ignored_symbols |= set(open(f, 'r').read().splitlines())
|
D | symbols.py | 25 for line in f.read().splitlines():
|
/bionic/tools/versioner/ |
D | run_tests.py | 29 expected_output = f.read()
|
/bionic/libc/kernel/tools/ |
D | utils.py | 100 olddata = f.read()
|
/bionic/benchmarks/linker_relocation/gen/ |
D | liblinker_reloc_bench_089.S | 180 CALL(read)
|
D | liblinker_reloc_bench_023.S | 222 CALL(read)
|
/bionic/benchmarks/tests/ |
D | interface_test.cpp | 124 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer, sizeof(buffer) - 1)); in RunTest()
|