1 #define _FILE_OFFSET_BITS 64
4 #include <msp/core/systemerror.h>
6 #include "handle_private.h"
13 using namespace Msp::IO;
15 int sys_seek_type(SeekType st)
24 throw invalid_argument("sys_seek_type");
32 /* Android libc does not recognize _FILE_OFFSET_BITS so this hack is necessary
33 to get 64-bit seeks. */
39 SeekOffset sys_seek(Handle &handle, SeekOffset offset, SeekType type)
41 off_t ret = lseek(*handle, offset, sys_seek_type(type));
45 throw bad_seek(offset, type);
47 throw system_error("lseek64");