Changes between Version 148 and Version 149 of library_stdio


Ignore:
Timestamp:
Mar 17, 2016, 12:29:27 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v148 v149  
    231231 
    232232=== 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>.
     233This function allocates a file descriptor to the calling thread, for the file identified by its absolute <pathname>.
    234234If several threads try to open the same file, each thread obtains a private file descriptor.
    235235The semantic is similar to the UNIX open() function, but the UNIX access rights are not supported.
    236236The 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.
    238238 * 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.
     241If one of the directories specified in the paththnamr does not exist, an error is returned.
    240242
    241243WARNING : A single node name (file or directory) cannot be larger than 33 characters.