Changes between Version 148 and Version 149 of library_stdio
- Timestamp:
- Mar 17, 2016, 12:29:27 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v148 v149 231 231 232 232 === 1) int '''giet_fat_open'''( char* pathname, unsigned int flags ) === 233 This function allocates a file descriptor to the calling thread, for the file identified by its absolute ‘’<pathname>.233 This function allocates a file descriptor to the calling thread, for the file identified by its absolute <pathname>. 234 234 If several threads try to open the same file, each thread obtains a private file descriptor. 235 235 The semantic is similar to the UNIX open() function, but the UNIX access rights are not supported. 236 236 The two following flags are supported, and can be ''ored'' to define the <flags> argument: 237 * O_RDONLY (0x01) : file accessed as read-only. Default is read/write.237 * O_RDONLY : The file can only be accessed as read-only. Default is read/write. 238 238 * O_CREATE (0x20) : file created if it does not exist on disk. Default is no creation. 239 If one of the directories specified in the paththread does not exist, an error is returned. 239 * O_TRUNC : All clusters allocated to the file are released, and the file size is reset to 0. 240 * O_APPEND : The offset in the file descriptor is initialized to the file size. 241 If one of the directories specified in the paththnamr does not exist, an error is returned. 240 242 241 243 WARNING : A single node name (file or directory) cannot be larger than 33 characters.