Lines Matching full:read
83 /* Test Read
85 * A wrapper for read(2), that automatically handles the following
89 * + Read of less than requested amount
92 * For each of the above, an additional read is performed to automatically
94 * There are also many cases where read(2) can return an unexpected
97 * contains at least the number of requested bytes to be read. A TEST_ASSERT
99 * data is read. It is the callers responsibility to assure that sufficient
102 * Note, for function signature compatibility with read(2), this function
103 * returns the number of bytes read, but that value will always be equal
106 * read(2) or cause a TEST_ASSERT failure.
109 * fd - Opened file descriptor to file to be read.
110 * count - Number of bytes to read.
113 * buf - Starting address of where to write the bytes read.
116 * On success, number of bytes read.
127 * read(2) manpage for details. in test_read()
132 rc = read(fd, ptr, num_left); in test_read()
137 "Unexpected read failure,\n" in test_read()
148 TEST_ASSERT(rc > 0, "Unexpected ret from read,\n" in test_read()