aboutsummaryrefslogtreecommitdiff
path: root/src/libplumb
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2003-11-25 03:03:30 +0000
committerrsc <devnull@localhost>2003-11-25 03:03:30 +0000
commit915ce5c28fb8a5413d307ec978ec0c9b85fa72fe (patch)
tree55bfc71cbc01a29b3684f4e56894adf1c4cfd693 /src/libplumb
parentf16134194619967ffa53151eeb9538b127aae850 (diff)
downloadplan9port-915ce5c28fb8a5413d307ec978ec0c9b85fa72fe.tar.gz
plan9port-915ce5c28fb8a5413d307ec978ec0c9b85fa72fe.tar.bz2
plan9port-915ce5c28fb8a5413d307ec978ec0c9b85fa72fe.zip
fix libplumb
Diffstat (limited to 'src/libplumb')
-rwxr-xr-xsrc/libplumb/mesg.c9
-rwxr-xr-xsrc/libplumb/mkfile9
2 files changed, 11 insertions, 7 deletions
diff --git a/src/libplumb/mesg.c b/src/libplumb/mesg.c
index ba80ef2a..8678d753 100755
--- a/src/libplumb/mesg.c
+++ b/src/libplumb/mesg.c
@@ -9,8 +9,10 @@ char *home;
int
plumbopen(char *name, int omode)
{
+#if 0
int fd, f;
char *s;
+#endif
char buf[256];
if(name[0] == '/')
@@ -21,19 +23,20 @@ plumbopen(char *name, int omode)
return -1;
}
snprint(buf, sizeof buf, "%s/mnt/plumb", home);
-/* fd = open(buf, omode);
+#if 0
+ fd = open(buf, omode);
if(fd >= 0)
return fd;
snprint(buf, sizeof buf, "/mnt/term/mnt/plumb/%s", name);
fd = open(buf, omode);
if(fd >= 0)
return fd;
- /* try mounting service * /
+ /* try mounting service */
s = getenv("plumbsrv");
if(s == nil)
return -1;
snprint(buf, sizeof buf, "/mnt/plumb/%s", name);
-*/
+#endif
return open(buf, omode);
}
diff --git a/src/libplumb/mkfile b/src/libplumb/mkfile
index a7b0b579..e2d42edd 100755
--- a/src/libplumb/mkfile
+++ b/src/libplumb/mkfile
@@ -1,10 +1,11 @@
-</$objtype/mkfile
+PLAN9=../..
+<$PLAN9/src/mkhdr
-LIB=/$objtype/lib/libplumb.a
+LIB=libplumb.a
OFILES=\
event.$O\
mesg.$O\
-HFILES=/sys/include/plumb.h
+HFILES=$PLAN9/include/plumb.h
-</sys/src/cmd/mksyslib
+<$PLAN9/src/mksyslib