core/unix/os.c
/* return the current file position, -1 on failure */
return the current file position, -1 on failure
return the current file position - 1 on failure
int64
os_tell(file_t f)
{
    int64 result = -1;
    int ret = 0;
    ret = llseek_syscall(f, 0, SEEK_CUR, &result);
    if (ret != 0)
        return -1;
    return result;
}
int64 os_tell ( file_t f ) { int64 result = -1 ; int ret = 0 ; ret = llseek_syscall ( f , 0 , SEEK_CUR , & result ) ; if ( ret != 0 ) return -1 ; return result ; }
return the current file position, -1 on failure
return the current file position - 1 on failure