lib9: move seek into open.c

More preparation for opendir.
This commit is contained in:
Russ Cox 2020-05-17 12:38:32 -04:00
parent 6fd4e901ce
commit 16f60479e1
4 changed files with 7 additions and 12 deletions

View file

@ -129,13 +129,18 @@ p9open(char *name, int mode)
return fd;
}
vlong
p9seek(int fd, vlong offset, int whence)
{
return lseek(fd, offset, whence);
}
int
p9close(int fd)
{
return close(fd);
}
extern int _p9dir(struct stat*, struct stat*, char*, Dir*, char**, char*);
#if defined(__linux__)