Changes between Version 84 and Version 85 of library_stdio
- Timestamp:
- Jun 15, 2015, 2:08:45 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
library_stdio
v84 v85 172 172 * The Fat-Descriptor (in cluster[0,0] contains the FAT32 general information. 173 173 174 === 1) int '''giet_fat_open'''( char* pathname ) ===174 === 1) int '''giet_fat_open'''( char* pathname, unsigned int flags ) === 175 175 This function allocates a file descriptor to the calling task, for the file identified by its absolute "pathname". 176 176 If several tasks try to open the same file, each task obtains a private file descriptor. 177 177 The semantic is similar to the UNIX open() function, but the UNIX oflags and the UNIX access rights are not supported. 178 If the file does not exist in the specified directory, it is created. 178 The two following flags can be ''ored'' in the '''flags''' argument: 179 * O_RDONLY : the file will accessed as read-only. Default value is read/write. 180 * O_CREATE : the file will be created if it does not exist on the file system. Default value is no creation. 179 181 If the specified directory does not exist, an error is returned. 180 182 181 WARNING: A node name (file or directory) cannot be larger than 3 0characters.183 WARNING: A node name (file or directory) cannot be larger than 37 characters. 182 184 183 185 Returns file descriptor index if success