Searched refs:read (Results 1 - 25 of 42) sorted by relevance

12

/bionic/libc/bionic/
H A Deventfd_read.cpp33 return (read(fd, value, sizeof(*value)) == sizeof(*value)) ? 0 : -1;
H A Dgetentropy.cpp40 ssize_t count = TEMP_FAILURE_RETRY(read(fd, static_cast<char*>(buffer) + collected,
H A Dpthread_setname_np.cpp65 ssize_t n = TEMP_FAILURE_RETRY(read(fd, buf, buf_size));
/bionic/libc/arch-arm/syscalls/
H A Dread.S5 ENTRY(read) function
16 END(read)
/bionic/libc/arch-arm64/syscalls/
H A Dread.S5 ENTRY(read) function
14 END(read)
/bionic/libc/arch-mips/syscalls/
H A Dread.S5 ENTRY(read) function
19 END(read)
/bionic/libc/arch-x86_64/syscalls/
H A Dread.S5 ENTRY(read) function
15 END(read)
/bionic/libc/arch-mips64/syscalls/
H A Dread.S5 ENTRY(read) function
25 END(read)
/bionic/libc/arch-x86/syscalls/
H A Dread.S5 ENTRY(read) function
39 END(read)
/bionic/tests/
H A Dsys_sendfile_test.cpp41 ASSERT_EQ(2, TEMP_FAILURE_RETRY(read(dst_file.fd, &buf, 2)));
60 ASSERT_EQ(2, TEMP_FAILURE_RETRY(read(dst_file.fd, &buf, 2)));
H A Dsys_signalfd_test.cpp47 ASSERT_EQ(static_cast<ssize_t>(sizeof(sfd_si)), read(fd, &sfd_si, sizeof(sfd_si)));
H A Dsys_mman_test.cpp88 ASSERT_EQ(STR_SSIZE(STRING_MSG), read(tf.fd, buf, sizeof(STRING_MSG)));
166 ASSERT_EQ(static_cast<ssize_t>(pagesize), read(tf.fd, buf, pagesize));
169 ASSERT_EQ(static_cast<ssize_t>(pagesize), read(tf.fd, buf, pagesize));
172 ASSERT_EQ(static_cast<ssize_t>(pagesize), read(tf.fd, buf, pagesize));
H A Dfortify_filecheck_diagnostics_test.cpp236 // GCC: error: call to '__read_dest_size_error' declared with attribute error: read called with size bigger than destination
237 // CLANG: error: in call to 'read', 'count' bytes overflows the given object
238 read(0, buf, 6);
H A Dsys_select_test.cpp71 ASSERT_EQ(static_cast<ssize_t>(sizeof(DELAY_MSG)), read(fd, buf, sizeof(DELAY_MSG)));
96 // If there is data to be read on STDIN, then the number of
150 // If there is data to be read on STDIN, then the number of
/bionic/libc/include/bits/fortify/
H A Dunistd.h147 ssize_t read(int fd, void* const __pass_object_size0 buf, size_t count)
149 __error_if_overflows_ssizet(count, read)
150 __error_if_overflows_objectsize(count, __bos0(buf), read) {
154 return __call_bypassing_fortify(read)(fd, buf, count);
213 ssize_t __read_real(int, void*, size_t) __RENAME(read); variable
227 __errordecl(__read_dest_size_error, "read called with size bigger than destination");
228 __errordecl(__read_count_toobig_error, "read called with count > SSIZE_MAX");
355 ssize_t read(int fd, void* buf, size_t count) { function
/bionic/tools/versioner/current/bits/fortify/
H A Dunistd.h147 ssize_t read(int fd, void* const __pass_object_size0 buf, size_t count)
149 __error_if_overflows_ssizet(count, read)
150 __error_if_overflows_objectsize(count, __bos0(buf), read) {
154 return __call_bypassing_fortify(read)(fd, buf, count);
213 ssize_t __read_real(int, void*, size_t) __RENAME(read); variable
227 __errordecl(__read_dest_size_error, "read called with size bigger than destination");
228 __errordecl(__read_count_toobig_error, "read called with count > SSIZE_MAX");
355 ssize_t read(int fd, void* buf, size_t count) { function
/bionic/libc/tools/
H A Dgenerate-NOTICE.py123 content = open(path, "r").read().decode("utf-8")
126 content = open(path, "r").read().decode("iso-8859-1")
H A Dcheck-symbols-glibc.py45 ignored_symbols |= set(open(f, 'r').read().splitlines())
H A Dsymbols.py25 for line in f.read().splitlines():
H A Dgenseccomp.py242 existing = open(output_path).read()
/bionic/libc/tzcode/
H A Dbionic.cpp117 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header)));
119 fprintf(stderr, "%s: could not read header of \"%s\": %s\n",
120 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read");
157 if (TEMP_FAILURE_RETRY(read(fd, index, index_size)) != static_cast<ssize_t>(index_size)) {
158 fprintf(stderr, "%s: could not read index of \"%s\": %s\n",
159 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read");
/bionic/tools/versioner/
H A Drun_tests.py29 expected_output = f.read()
/bionic/tools/relocation_packer/src/
H A Dmain.cc109 if (TEMP_FAILURE_RETRY(read(fd.get(), e_ident, EI_NIDENT)) != EI_NIDENT) {
110 LOG(ERROR) << file << ": failed to read elf header:" << strerror(errno);
/bionic/libc/kernel/tools/
H A Dutils.py101 olddata = f.read()
/bionic/benchmarks/tests/
H A Dinterface_test.cpp118 ssize_t bytes = TEMP_FAILURE_RETRY(read(fd_, buffer, sizeof(buffer) - 1));

Completed in 314 milliseconds

12