blob: 0aa741a665d8b12f5c31f8f79165c48a0f7ee19a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#include <u.h>
#include <libc.h>
extern int _seek(vlong*, int, vlong, int);
vlong
seek(int fd, vlong o, int p)
{
vlong l;
if(_seek(&l, fd, o, p) < 0)
l = -1LL;
return l;
}
|