Revert "wip"

This reverts commit 87f0edc45b.
This commit is contained in:
Jan (janneke) Nieuwenhuizen 2022-10-19 08:21:52 +02:00
parent 87f0edc45b
commit 78f4fff329
No known key found for this signature in database
GPG Key ID: F3C1A0D9C1D65273
2 changed files with 3 additions and 7 deletions

View File

@ -32,12 +32,7 @@
#endif
#ifndef EOF
// FIXME M2_Planet chokes on -1, even inside #if ! __M2__
#if __arm__ || __i386__
#define EOF 0xffffffff
#else
#define EOF 0xffffffffffffffff
#endif
#define EOF -1
#endif
#ifndef NULL

View File

@ -27,9 +27,10 @@
off_t
lseek (int filedes, off_t offset, int whence)
{
long long_filedes = filedes;
long long_offset = offset;
size_t skip = __buffered_read_clear (filedes);
if (whence == SEEK_CUR)
offset -= skip;
return _sys_call3 (SYS_lseek, filedes, long_offset, whence);
return _sys_call3 (SYS_lseek, long_filedes, long_offset, whence);
}