1 2 3 4 5 6 7
#include <errno.h> #include <unistd.h> #include <syscall.h> off_t lseek(int fildes, off_t offset, int whence) { RC_ERRNO(syscall(SYS_LSEEK, (u32)fildes, offset, whence, 0, 0)); }