diff options
author | Russ Cox <rsc@swtch.com> | 2020-05-17 12:38:32 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2020-05-17 20:15:41 -0400 |
commit | 16f60479e16e3714b376e633c6b902a32e0607ea (patch) | |
tree | abf8c947b88aad79c32c0c604dc9010f24088d9d /src/lib9/open.c | |
parent | 6fd4e901ce48f2e056c505c81320f786175588ff (diff) | |
download | plan9port-16f60479e16e3714b376e633c6b902a32e0607ea.tar.gz plan9port-16f60479e16e3714b376e633c6b902a32e0607ea.tar.bz2 plan9port-16f60479e16e3714b376e633c6b902a32e0607ea.zip |
lib9: move seek into open.c
More preparation for opendir.
Diffstat (limited to 'src/lib9/open.c')
-rw-r--r-- | src/lib9/open.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib9/open.c b/src/lib9/open.c index 43910694..ffee7931 100644 --- a/src/lib9/open.c +++ b/src/lib9/open.c @@ -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__) |