4 * Christian Groessler, 07-Aug-2000
16 /*****************************************************************************/
18 /*****************************************************************************/
22 int __fastcall__ fseek (FILE* f, long offset, int whence)
26 /* Is the file open? */
27 if ((f->f_flags & _FOPEN) == 0) {
28 _errno = EINVAL; /* File not open */
32 res = lseek(f->f_fd, offset, whence);
33 if (res == -1L) return -1;