Lines Matching full:read
112 * Read from a file. Can return:
113 * - zero if the read was completely successful
114 * - the number of bytes _not_ read, if the read was partially successful
115 * - the number of bytes not read, plus the top bit set (0x80000000), if
116 * the read was partially successful due to end of file
123 * So if (for example) the user is trying to read 8 bytes at a time
127 * - it can return 0x80000003 (3 bytes not read due to EOF)
128 * - OR it can return 3 (3 bytes not read), and then return
129 * 0x80000008 (8 bytes not read due to EOF) on the next attempt
130 * - OR it can return 3 (3 bytes not read), and then return
131 * 8 (8 bytes not read, meaning 0 read, meaning EOF) on the next
159 size = read(fh, buf, len); in _sys_read()