Use fseeko instead of fseek
Showing
1 changed file
with
3 additions
and
3 deletions
... | @@ -82,7 +82,7 @@ _file_read (mu_stream_t stream, char *optr, size_t osize, | ... | @@ -82,7 +82,7 @@ _file_read (mu_stream_t stream, char *optr, size_t osize, |
82 | 82 | ||
83 | if (fs->offset != offset) | 83 | if (fs->offset != offset) |
84 | { | 84 | { |
85 | if (fseek (fs->file, offset, SEEK_SET) != 0) | 85 | if (fseeko (fs->file, offset, SEEK_SET) != 0) |
86 | return errno; | 86 | return errno; |
87 | fs->offset = offset; | 87 | fs->offset = offset; |
88 | } | 88 | } |
... | @@ -126,7 +126,7 @@ _file_readline (mu_stream_t stream, char *optr, size_t osize, | ... | @@ -126,7 +126,7 @@ _file_readline (mu_stream_t stream, char *optr, size_t osize, |
126 | 126 | ||
127 | if (fs->offset != offset) | 127 | if (fs->offset != offset) |
128 | { | 128 | { |
129 | if (fseek (fs->file, offset, SEEK_SET) != 0) | 129 | if (fseeko (fs->file, offset, SEEK_SET) != 0) |
130 | return errno; | 130 | return errno; |
131 | fs->offset = offset; | 131 | fs->offset = offset; |
132 | } | 132 | } |
... | @@ -178,7 +178,7 @@ _file_write (mu_stream_t stream, const char *iptr, size_t isize, | ... | @@ -178,7 +178,7 @@ _file_write (mu_stream_t stream, const char *iptr, size_t isize, |
178 | 178 | ||
179 | if (fs->offset != offset) | 179 | if (fs->offset != offset) |
180 | { | 180 | { |
181 | if (fseek (fs->file, offset, SEEK_SET) != 0) | 181 | if (fseeko (fs->file, offset, SEEK_SET) != 0) |
182 | return errno; | 182 | return errno; |
183 | fs->offset = offset; | 183 | fs->offset = offset; |
184 | } | 184 | } | ... | ... |
-
Please register or sign in to post a comment