Lines Matching full:read
82 /* Test Read
84 * A wrapper for read(2), that automatically handles the following
88 * + Read of less than requested amount
91 * For each of the above, an additional read is performed to automatically
93 * There are also many cases where read(2) can return an unexpected
96 * contains at least the number of requested bytes to be read. A TEST_ASSERT
98 * data is read. It is the callers responsibility to assure that sufficient
101 * Note, for function signature compatibility with read(2), this function
102 * returns the number of bytes read, but that value will always be equal
105 * read(2) or cause a TEST_ASSERT failure.
108 * fd - Opened file descriptor to file to be read.
109 * count - Number of bytes to read.
112 * buf - Starting address of where to write the bytes read.
115 * On success, number of bytes read.
126 * read(2) manpage for details. in test_read()
131 rc = read(fd, ptr, num_left); in test_read()
136 "Unexpected read failure,\n" in test_read()
147 TEST_ASSERT(rc > 0, "Unexpected ret from read,\n" in test_read()