; ; Christian Groessler, May 2002 ; ; this file provides the lseek() function ; ; off_t __fastcall__ lseek(int fd, off_t offset, int whence); ; .export _lseek .import incsp6,__oserror .import __inviocb,ldax0sp,ldaxysp,fdtoiocb .import __dos_type .import fd_table .importzp sreg,ptr1,ptr2,ptr3,ptr4 .importzp tmp1,tmp2,tmp3 .include "atari.inc" .include "errno.inc" .include "fd.inc" ; seeking not supported, return -1 and ENOSYS errno value no_supp:jsr incsp6 lda #