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 | |
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')
-rw-r--r-- | src/lib9/mkfile | 1 | ||||
-rw-r--r-- | src/lib9/open.c | 7 | ||||
-rw-r--r-- | src/lib9/seek.c | 8 |
3 files changed, 6 insertions, 10 deletions
diff --git a/src/lib9/mkfile b/src/lib9/mkfile index 6fb3d4a7..db267dfe 100644 --- a/src/lib9/mkfile +++ b/src/lib9/mkfile @@ -139,7 +139,6 @@ LIB9OFILES=\ readn.$O\ rfork.$O\ searchpath.$O\ - seek.$O\ sendfd.$O\ sleep.$O\ strdup.$O\ 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__) diff --git a/src/lib9/seek.c b/src/lib9/seek.c deleted file mode 100644 index b626355f..00000000 --- a/src/lib9/seek.c +++ /dev/null @@ -1,8 +0,0 @@ -#include <u.h> -#include <libc.h> - -vlong -seek(int fd, vlong offset, int whence) -{ - return lseek(fd, offset, whence); -} |