Searched refs:bytes_read (Results 1 – 6 of 6) sorted by relevance
/bionic/libc/stdio/ |
D | fread.c | 127 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/ |
D | bionic_netlink.cpp | 82 ssize_t bytes_read; in ReadResponses() local 83 while ((bytes_read = TEMP_FAILURE_RETRY(recv(fd_, data_, size_, 0))) > 0) { in ReadResponses() 85 for (; NLMSG_OK(hdr, static_cast<size_t>(bytes_read)); hdr = NLMSG_NEXT(hdr, bytes_read)) { in ReadResponses()
|
/bionic/tests/ |
D | fcntl_test.cpp | 175 ssize_t bytes_read = splice(in, 0, pipe_fds[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); in TEST() local 176 ASSERT_NE(bytes_read, -1); in TEST() 178 …ssize_t bytes_written = splice(pipe_fds[0], NULL, tf.fd, 0, bytes_read, SPLICE_F_MORE | SPLICE_F_M… in TEST() 179 ASSERT_EQ(bytes_read, bytes_written); in TEST() 224 ssize_t bytes_read = splice(in, 0, pipe1[1], NULL, 8*1024, SPLICE_F_MORE | SPLICE_F_MOVE); in TEST() local 225 ASSERT_NE(bytes_read, -1); in TEST() 230 ASSERT_EQ(bytes_read, bytes_teed); in TEST()
|
D | utils.h | 190 ssize_t bytes_read; in Run() local 191 while ((bytes_read = TEMP_FAILURE_RETRY(read(fds[0], buf, sizeof(buf)))) > 0) { in Run() 192 output.append(buf, bytes_read); in Run()
|
D | gtest_main.cpp | 760 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(child_proc.child_read_fd, buf, sizeof(buf) - 1)); in ReadChildProcOutput() local 761 if (bytes_read > 0) { in ReadChildProcOutput() 762 buf[bytes_read] = '\0'; in ReadChildProcOutput() 764 } else if (bytes_read == 0) { in ReadChildProcOutput()
|
/bionic/libc/tzcode/ |
D | bionic.cpp | 116 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); in __bionic_open_tzdata_path() local 117 if (bytes_read != sizeof(header)) { in __bionic_open_tzdata_path() 119 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path() 158 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()
|