Changes between Version 29 and Version 30 of file_system


Ignore:
Timestamp:
Dec 15, 2015, 1:50:16 PM (8 years ago)
Author:
alain
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • file_system

    v29 v30  
    145145This function implements the "giet_fat_lseek()" system call.
    146146It repositions the offset in the file defined by the file descriptor, according to the offset and whence arguments.
    147 The accepted values for the whence argument are SEEK_SET and SEEK_CUR:
     147The accepted values for the whence argument are SEEK_SET / SEEK_CUR / SEEK_END :
    148148 * SEEK_SET =>  new_offset = offset
    149149 * SEEK_CUR =>  new_offset = current_offset + offset
     150 * SEEK_END => new_offset = file_size + offset
    150151Arguments:
    151152 * '''fd_id''' : file descriptor index
    152153 * '''offset''' : offset value (can be negative)
    153  * '''whence''' : SEEK_SET / SEEK_CUR
     154 * '''whence''' : SEEK_SET / SEEK_CUR / SEEK_END
    154155Returns new seek value (in bytes) on success. Returns a negative value on error:
    155156 * GIET_FAT32_NOT_INITIALIZED,