tlib9: move seek into open.c - plan9port - [fork] Plan 9 from user space
HTML git clone git://src.adamsgaard.dk/plan9port
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 16f60479e16e3714b376e633c6b902a32e0607ea
DIR parent 6fd4e901ce48f2e056c505c81320f786175588ff
HTML Author: Russ Cox <rsc@swtch.com>
Date: Sun, 17 May 2020 12:38:32 -0400
lib9: move seek into open.c
More preparation for opendir.
Diffstat:
M src/lib9/mkfile | 1 -
M src/lib9/open.c | 7 ++++++-
D src/lib9/seek.c | 8 --------
M src/mkmk.sh | 3 +--
4 files changed, 7 insertions(+), 12 deletions(-)
---
DIR diff --git a/src/lib9/mkfile b/src/lib9/mkfile
t@@ -139,7 +139,6 @@ LIB9OFILES=\
readn.$O\
rfork.$O\
searchpath.$O\
- seek.$O\
sendfd.$O\
sleep.$O\
strdup.$O\
DIR diff --git a/src/lib9/open.c b/src/lib9/open.c
t@@ -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__)
DIR diff --git a/src/lib9/seek.c b/src/lib9/seek.c
t@@ -1,8 +0,0 @@
-#include <u.h>
-#include <libc.h>
-
-vlong
-seek(int fd, vlong offset, int whence)
-{
- return lseek(fd, offset, whence);
-}
DIR diff --git a/src/mkmk.sh b/src/mkmk.sh
t@@ -73,7 +73,6 @@ echo cd `pwd`
9c readn.c
9c rfork.c
9c searchpath.c
-9c seek.c
9c sendfd.c
9c sleep.c
9c strdup.c
t@@ -149,7 +148,7 @@ echo cd `pwd`
9c utf/utfrrune.c
9c utf/utfrune.c
9c utf/utfutf.c
mx1.adamsgaard.dk:70 /src/plan9port/commit/16f60479e16e3714b376e633c6b902a32e0607ea.gph:79: line too long