summaryrefslogtreecommitdiff
path: root/userland/libc/unistd/lseek.c
blob: b9ebfaebd916ae83abcc8dd279604d98923939d0 (plain)
1
2
3
4
5
6
7
#include <errno.h>
#include <syscall.h>
#include <unistd.h>

int lseek(int fildes, int offset, int whence) {
  RC_ERRNO(syscall(SYS_LSEEK, (u32)fildes, offset, whence, 0, 0));
}