Changeset 7258c6a in buchla-68k for libcio/fseek.c
- Timestamp:
- 07/09/2017 04:45:34 PM (7 years ago)
- Branches:
- master
- Children:
- 8618599
- Parents:
- 0292fbb
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcio/fseek.c
r0292fbb r7258c6a 11 11 #include "stddefs.h" 12 12 13 extern long lseek(int fd, long pos, int how);13 extern int32_t lseek(int16_t fd, int32_t pos, int16_t how); 14 14 15 15 /* … … 19 19 */ 20 20 21 int fseek(FILE *fp, long pos, int mode)21 int16_t fseek(FILE *fp, int32_t pos, int16_t mode) 22 22 { 23 register int i, lr;24 longcurpos;23 register int16_t i, lr; 24 int32_t curpos; 25 25 26 26 if (fp->_flags & _DIRTY) { … … 32 32 33 33 if (mode EQ 1 AND fp->_bp) 34 pos -= ( long)fp->_bend - (long)fp->_bp;34 pos -= (int32_t)fp->_bend - (int32_t)fp->_bp; 35 35 } 36 36
Note:
See TracChangeset
for help on using the changeset viewer.