12 lines
225 B
C
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));
|
|
}
|
|
|