Changeset 746 for soft/giet_vm
- Timestamp:
- Dec 15, 2015, 4:19:16 PM (9 years ago)
- Location:
- soft/giet_vm/giet_fat32
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
soft/giet_vm/giet_fat32/fat32.c
r744 r746 3630 3630 // the "seek" and "whence" arguments. 3631 3631 // It has the same semantic as the UNIX lseek() function. 3632 // Accepted values for whence are SEEK_SET and SEEK_CUR.3632 // Accepted values for whence are SEEK_SET / SEEK_CUR / SEEK_END. 3633 3633 ///////////////////////////////////////////////////////////////////////////////// 3634 3634 // Returns new seek value (in bytes) on success. … … 3679 3679 if ( whence == SEEK_CUR ) new_seek = _fat.fd[fd_id].seek + seek; 3680 3680 else if ( whence == SEEK_SET ) new_seek = seek; 3681 else if ( whence == SEEK_END ) new_seek = _fat.fd[fd_id].inode->size + seek; 3681 3682 else 3682 3683 { -
soft/giet_vm/giet_fat32/fat32_shared.h
r664 r746 46 46 #define SEEK_SET 0 47 47 #define SEEK_CUR 1 48 #define SEEK_END 2 48 49 49 50 /********************************************************************************
Note: See TracChangeset
for help on using the changeset viewer.