toaruos/libc/unistd/lseek.c
2021-05-31 10:54:11 +09:00

12 lines
225 B
C

#include <unistd.h>
#include <errno.h>
#include <syscall.h>
#include <syscall_nums.h>
DEFN_SYSCALL3(seek, SYS_SEEK, int, long, int);
off_t lseek(int file, off_t ptr, int dir) {
__sets_errno(syscall_seek(file,ptr,dir));
}