Searched refs:bytes_read (Results 1 – 4 of 4) 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/tests/ |
D | fcntl_test.cpp | 166 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()
|
D | gtest_main.cpp | 702 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(child_proc.child_read_fd, buf, sizeof(buf) - 1)); in CollectChildTestResult() local 703 if (bytes_read > 0) { in CollectChildTestResult() 704 buf[bytes_read] = '\0'; in CollectChildTestResult() 706 } else if (bytes_read == 0) { in CollectChildTestResult()
|
/bionic/libc/tzcode/ |
D | localtime.c | 2158 ssize_t bytes_read = TEMP_FAILURE_RETRY(read(fd, &header, sizeof(header))); in __bionic_open_tzdata_path() local 2159 if (bytes_read != sizeof(header)) { in __bionic_open_tzdata_path() 2161 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path() 2202 __FUNCTION__, path, (bytes_read == -1) ? strerror(errno) : "short read"); in __bionic_open_tzdata_path()
|