Changes between Version 29 and Version 30 of file_system
- Timestamp:
- Dec 15, 2015, 1:50:16 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
file_system
v29 v30 145 145 This function implements the "giet_fat_lseek()" system call. 146 146 It 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:147 The accepted values for the whence argument are SEEK_SET / SEEK_CUR / SEEK_END : 148 148 * SEEK_SET => new_offset = offset 149 149 * SEEK_CUR => new_offset = current_offset + offset 150 * SEEK_END => new_offset = file_size + offset 150 151 Arguments: 151 152 * '''fd_id''' : file descriptor index 152 153 * '''offset''' : offset value (can be negative) 153 * '''whence''' : SEEK_SET / SEEK_CUR 154 * '''whence''' : SEEK_SET / SEEK_CUR / SEEK_END 154 155 Returns new seek value (in bytes) on success. Returns a negative value on error: 155 156 * GIET_FAT32_NOT_INITIALIZED,