shithub: riscv

ref: f88a55e79b5bf656e7f9578d1318a955b9a4963a
dir: /sys/src/ape/lib/ap/riscv64/_seek.c/

View raw version
extern long __SEEK(long long*, int, long long, int);

long long
_SEEK(int fd, long long o, int p)
{
	long long l;

	if(__SEEK(&l, fd, o, p) < 0)
		l = -1;
	return l;
}