Home
last modified time | relevance | path

Searched refs:bytes_read (Results 1 – 5 of 5) sorted by relevance

/bionic/libc/stdio/
Dfread.c127 ssize_t bytes_read = (*fp->_read)(fp->_cookie, dst, total); in fread() local
128 if (bytes_read <= 0) { in fread()
129 fp->_flags |= (bytes_read == 0) ? __SEOF : __SERR; in fread()
132 dst += bytes_read; in fread()
133 total -= bytes_read; in fread()
/bionic/libc/bionic/
Dbionic_netlink.cpp81 ssize_t bytes_read; in ReadResponses() local
82 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, data_, size_, 0))) > 0) { in ReadResponses()
84 for (; NLMSG_OK(hdr, static_cast<size_t>(bytes_read)); hdr = NLMSG_NEXT(hdr, bytes_read)) { in ReadResponses()
/bionic/tests/
Dfcntl_test.cpp166 ssize_t bytes_read = splice(in, 0, pipe_fds[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); in TEST() local
167 ASSERT_NE(bytes_read, -1); in TEST()
169 …ssize_t bytes_written = splice(pipe_fds[0], NULL, tf.fd, 0, bytes_read, SPLICE_F_MORE | SPLICE_F_M… in TEST()
170 ASSERT_EQ(bytes_read, bytes_written); in TEST()
215 ssize_t bytes_read = splice(in, 0, pipe1[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); in TEST() local
216 ASSERT_NE(bytes_read, -1); in TEST()
221 ASSERT_EQ(bytes_read, bytes_teed); in TEST()
Dgtest_main.cpp720 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(child_proc.child_read_fd, buf, sizeof(buf) - 1)); in ReadChildProcOutput() local
721 if (bytes_read > 0) { in ReadChildProcOutput()
722 buf[bytes_read] = '\0'; in ReadChildProcOutput()
724 } else if (bytes_read == 0) { in ReadChildProcOutput()
/bionic/libc/tzcode/
Dlocaltime.c2357 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); in __bionic_open_tzdata_path() local
2358 if (bytes_read != sizeof(header)) { in __bionic_open_tzdata_path()
2360 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()
2401 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()