shithub: riscv

ref: 3bd5ff9583c4b33aa27754fb4c3b6792261feb8a
dir: /sys/src/ape/lib/ap/amd64/_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;
}