aboutsummaryrefslogtreecommitdiff
path: root/src/main/extractor_datasource.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/extractor_datasource.c')
-rw-r--r--src/main/extractor_datasource.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/main/extractor_datasource.c b/src/main/extractor_datasource.c
index 90dd077..a55679d 100644
--- a/src/main/extractor_datasource.c
+++ b/src/main/extractor_datasource.c
@@ -17,8 +17,14 @@
17 Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19 */ 19 */
20/**
21 * @file main/extractor_datasource.c
22 * @brief random access and possibly decompression of data from buffer in memory or file on disk
23 * @author Christian Grothoff
24 */
20 25
21#include "platform.h" 26#include "platform.h"
27#include "extractor_datasource.h"
22 28
23#if HAVE_LIBBZ2 29#if HAVE_LIBBZ2
24#include <bzlib.h> 30#include <bzlib.h>
@@ -219,13 +225,7 @@ bfds_pick_next_buffer_at (struct BufferedFileDataSource *bfds,
219 bfds->buffer_pos = pos; 225 bfds->buffer_pos = pos;
220 return 0; 226 return 0;
221 } 227 }
222#if WINDOWS 228 position = (int64_t) LSEEK (bfds->fd, pos, SEEK_SET);
223 position = _lseeki64 (bfds->fd, pos, SEEK_SET);
224#elif HAVE_LSEEK64
225 position = lseek64 (bfds->fd, pos, SEEK_SET);
226#else
227 position = (int64_t) lseek (bfds->fd, pos, SEEK_SET);
228#endif
229 if (position < 0) 229 if (position < 0)
230 return -1; 230 return -1;
231 bfds->fpos = position; 231 bfds->fpos = position;