Changes between Version 89 and Version 90 of library_stdio
- Timestamp:
- Jun 16, 2015, 7:22:51 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v89 v90 179 179 * O_RDONLY (0x01) : file accessed as read-only. Default is read/write. 180 180 * O_CREATE (0x20) : file created if it does not exist on disk. Default is no creation. 181 If the specified directorydoes not exist, an error is returned.182 183 WARNING: A node name (file or directory) cannot be larger than 37characters.181 If one of the directories specified in the pathd does not exist, an error is returned. 182 183 WARNING: A single node name (file or directory) cannot be larger than 33 characters. 184 184 185 185 Returns file descriptor index if success 186 Returns -1 if error. 186 Returns a negative value if error: 187 * -1 : "fat not initialised" 188 * -2 : "path to parent not found" 189 * -3 : "name in path too long" 190 * -4 : "file not found" 191 * -5 : "no more free cluster" 192 * -6 : "cannot update FAT on block device" 193 * -7 : "cannot update FS-INFO on block device" 194 * -8 : "file descriptor array full" 195 187 196 188 197 === 2) int '''giet_fat_close'''( unsigned int fd_id ) === … … 206 215 Returns number of bytes actually transferred if success. 207 216 Returns 0 if (offset + count) is larger than the file size. 208 Returns -1 if error. 217 Returns a negative value if error. 218 209 219 210 220 === 5) int '''giet_fat_write'''( unsigned int fd_id , void* buffer, unsigned int count ) ===