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

@ -139,7 +139,6 @@ LIB9OFILES=\
readn.$O\
rfork.$O\
searchpath.$O\
seek.$O\
sendfd.$O\
sleep.$O\
strdup.$O\

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__)

View file

@ -1,8 +0,0 @@
#include <u.h>
#include <libc.h>
vlong
seek(int fd, vlong offset, int whence)
{
return lseek(fd, offset, whence);
}