summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/lseek.c
blob: 2dcd661c32e959cbba1c528899d28d139d255198 (plain)
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));
}