Data is read from the file specified by the first parameter (fileno) to the area in memory specified by the second parameter (buf). The number of bytes of data to be read is specified by the third parameter (count). |
When the end of the file is reached, only a number of bytes fewer than or equal to count bytes can be read. |
When reading is performed successfully, the actual number of bytes read is returned; if the read operation fails, -1 is returned. |
Normal: Actual number of bytes read
fileno Number of the file to be read