diff options
Diffstat (limited to 'userland/libc/unistd/lseek.c')
-rw-r--r-- | userland/libc/unistd/lseek.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/userland/libc/unistd/lseek.c b/userland/libc/unistd/lseek.c new file mode 100644 index 0000000..2dcd661 --- /dev/null +++ b/userland/libc/unistd/lseek.c @@ -0,0 +1,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)); +} |