core/unix/os.c
/* FIXME - not available in 2.0 or earlier kernels, not really an issue since no one
 * should be running anything that old. */
not available in 2.0 or earlier kernels, not really an issue since no one
should be running anything that old.
not available in 2 . 0 or earlier kernels not really an issue since no one should be running anything that old .
int
llseek_syscall(int fd, int64 offset, int origin, int64 *result)
{
#ifdef X64
    *result = dynamorio_syscall(SYS_lseek, 3, fd, offset, origin);
    return ((*result > 0) ? 0 : (int)*result);
#else
    return dynamorio_syscall(SYS__llseek, 5, fd, (uint)((offset >> 32) & 0xFFFFFFFF),
                             (uint)(offset & 0xFFFFFFFF), result, origin); 
#endif
}
int llseek_syscall ( int fd , int64 offset , int origin , int64 * result ) { #ifdef X64 * result = dynamorio_syscall ( SYS_lseek , 3 , fd , offset , origin ) ; return ( ( * result > 0 ) ? 0 : ( int ) * result ) ; #else return dynamorio_syscall ( SYS__llseek , 5 , fd , ( uint ) ( ( offset >> 32 ) & 0xFFFFFFFF ) , ( uint ) ( offset & 0xFFFFFFFF ) , result , origin ) ; #endif }
FIXME - not available in 2.0 or earlier kernels, not really an issue since no one
 should be running anything that old.
FIXME - not available in 2 . 0 or earlier kernels not really an issue since no one should be running anything that old .