Searched defs:bytes_read (Results 1 - 6 of 6) sorted by relevance

/bionic/libc/bionic/
H A Dbionic_netlink.cpp82 ssize_t bytes_read; local
83 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, data_, size_, 0))) > 0) {
85 for (; NLMSG_OK(hdr, static_cast<size_t>(bytes_read)); hdr = NLMSG_NEXT(hdr, bytes_read)) {
/bionic/libc/tzcode/
H A Dbionic.cpp117 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); local
118 if (bytes_read != sizeof(header)) {
120 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read");
159 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read");
/bionic/tests/
H A Dfcntl_test.cpp177 ssize_t bytes_read = splice(in, 0, pipe_fds[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); local
178 ASSERT_NE(bytes_read, -1);
180 ssize_t bytes_written = splice(pipe_fds[0], NULL, tf.fd, 0, bytes_read, SPLICE_F_MORE | SPLICE_F_MOVE);
181 ASSERT_EQ(bytes_read, bytes_written);
226 ssize_t bytes_read = splice(in, 0, pipe1[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); local
227 ASSERT_NE(bytes_read, -1);
232 ASSERT_EQ(bytes_read, bytes_teed);
H A Dutils.h217 ssize_t bytes_read; local
218 while ((bytes_read = TEMP_FAILURE_RETRY(read(fds[0], buf, sizeof(buf)))) > 0) {
219 output.append(buf, bytes_read);
H A Dgtest_main.cpp775 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(child_proc.child_read_fd, buf, sizeof(buf) - 1)); local
776 if (bytes_read > 0) {
777 buf[bytes_read] = '\0';
779 } else if (bytes_read == 0) {
/bionic/libc/stdio/
H A Dstdio.cpp1084 ssize_t bytes_read = (*fp->_read)(fp->_cookie, dst, total); local
1085 if (bytes_read <= 0) {
1086 fp->_flags |= (bytes_read == 0) ? __SEOF : __SERR;
1089 dst += bytes_read;
1090 total -= bytes_read;

Completed in 298 milliseconds