Changes between Version 84 and Version 85 of library_stdio


Ignore:
Timestamp:
Jun 15, 2015, 2:08:45 PM (10 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v84 v85  
    172172 * The Fat-Descriptor (in cluster[0,0] contains the FAT32 general information.
    173173
    174 === 1) int '''giet_fat_open'''( char* pathname ) ===
     174=== 1) int '''giet_fat_open'''( char* pathname, unsigned int flags ) ===
    175175This function allocates a file descriptor to the calling task, for the file identified by its absolute "pathname".
    176176If several tasks try to open the same file, each task obtains a private file descriptor.
    177177The 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.
     178The 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.
    179181If the specified directory does not exist, an error is returned.
    180182
    181 WARNING: A node name (file or directory) cannot be larger than 30 characters.
     183WARNING: A node name (file or directory) cannot be larger than 37 characters.
    182184
    183185Returns file descriptor index if success