Projet_SETI_RISC-V/riscv-gnu-toolchain/newlib/libgloss/riscv/sys_lseek.c
2023-03-06 14:48:14 +01:00

10 lines
225 B
C

#include <machine/syscall.h>
#include <sys/types.h>
#include "internal_syscall.h"
/* Set position in a file. */
off_t
_lseek(int file, off_t ptr, int dir)
{
return syscall_errno (SYS_lseek, 3, file, ptr, dir, 0, 0, 0);
}