Changes between Version 81 and Version 82 of library_stdio


Ignore:
Timestamp:
Jun 11, 2015, 7:55:55 PM (9 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • library_stdio

    v81 v82  
    181181WARNING: A node name (file or directory) cannot be larger than 30 characters.
    182182
    183 Returns the file descriptor index if success
     183Returns file descriptor index if success
    184184Returns  -1 if error.
    185185
    186 === 2)  '''void giet_fat_close'''( unsigned int fd_id ) ===
     186=== 2)  '''int giet_fat_close'''( unsigned int fd_id ) ===
    187187Close a file identified by the ''fd_id'' file descriptor.
    188188It decrements the reference count in the inode associated to the file, and release the fd_id entry in the file descriptors array.
    189189If the reference count is zero, it writes all dirty clusters on block device, and releases the memory allocated to the file_cache.
    190190
    191 === 3) '''void get_fat_file_info'''( unsigned int fd_id , unsigned int* size , unsigned int* offset ) ===
     191Returns 0 if success.
     192Returns -1 if error.
     193
     194=== 3) '''int get_fat_file_info'''( unsigned int fd_id , unsigned int* size , unsigned int* offset ) ===
    192195This function returns the "size" and the current "offset" value for a file identified  by the "fd_id" argument.
     196
     197Returns 0 if success.
     198Returns -1 if error.
    193199
    194200=== 4) int '''giet_fat_read'''( unsigned int fd_id , void* buffer , unsigned int count ) ===
     
    207213Returns -1 if error.
    208214
    209 === int '''giet_fat_lseek'''( unsigned int fd_id , unsigned int offset , unsigned int whence ) ===
     215=== 6) int '''giet_fat_lseek'''( unsigned int fd_id , unsigned int offset , unsigned int whence ) ===
    210216This function has the same semantic as the UNIX lseek() function.
    211217It repositions the offset in the file descriptor "fd_id", according to the "offset" and "whence" arguments.
     
    215221Returns -1 if error.
    216222
    217 === int '''giet_fat_rm'''( char* pathname ) ===
     223=== 7) int '''giet_fat_rm'''( char* pathname ) ===
    218224This function has the same semantic as the UNIX unlink() function.
    219225It deletes a file identified by the absolute "pathname" argument from the sile system.
     
    227233Returns -1 if error.
    228234
    229 === int '''get_fat_mkdir( char* pathname ) ===
     235=== 8) int '''get_fat_mkdir( char* pathname ) ===
    230236This function has the same semantic as the UNIX mkdir() function.
    231237It creates in the file system the directory specified by the absolute "pathname" argument. 
     
    239245Returns -1 if error.
    240246
    241 === void '''get_fat_rmdir'''( char* pathname ) ===
     247=== 9) int '''get_fat_rmdir'''( char* pathname ) ===
    242248This function has the same semantic as the UNIX mkdir() function.
    243249It deletes the directory specified by the absolute "pathname" argument from the file system.