tumbledemerald-legacy/agbcc/libc/syscalls/syslseek.c

18 lines
275 B
C
Raw Normal View History

2022-05-19 19:14:13 +02:00
/* connector for lseek */
#include <reent.h>
#include <unistd.h>
off_t
lseek (fd, pos, whence)
int fd;
off_t pos;
int whence;
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
return _lseek_r (_REENT, fd, pos, whence);
#else
return _lseek (fd, pos, whence);
#endif
}