fix libplumb
This commit is contained in:
parent
f161341946
commit
915ce5c28f
2 changed files with 11 additions and 7 deletions
|
|
@ -9,8 +9,10 @@ char *home;
|
||||||
int
|
int
|
||||||
plumbopen(char *name, int omode)
|
plumbopen(char *name, int omode)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
int fd, f;
|
int fd, f;
|
||||||
char *s;
|
char *s;
|
||||||
|
#endif
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
||||||
if(name[0] == '/')
|
if(name[0] == '/')
|
||||||
|
|
@ -21,7 +23,8 @@ plumbopen(char *name, int omode)
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
snprint(buf, sizeof buf, "%s/mnt/plumb", home);
|
snprint(buf, sizeof buf, "%s/mnt/plumb", home);
|
||||||
/* fd = open(buf, omode);
|
#if 0
|
||||||
|
fd = open(buf, omode);
|
||||||
if(fd >= 0)
|
if(fd >= 0)
|
||||||
return fd;
|
return fd;
|
||||||
snprint(buf, sizeof buf, "/mnt/term/mnt/plumb/%s", name);
|
snprint(buf, sizeof buf, "/mnt/term/mnt/plumb/%s", name);
|
||||||
|
|
@ -33,7 +36,7 @@ plumbopen(char *name, int omode)
|
||||||
if(s == nil)
|
if(s == nil)
|
||||||
return -1;
|
return -1;
|
||||||
snprint(buf, sizeof buf, "/mnt/plumb/%s", name);
|
snprint(buf, sizeof buf, "/mnt/plumb/%s", name);
|
||||||
*/
|
#endif
|
||||||
return open(buf, omode);
|
return open(buf, omode);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,11 @@
|
||||||
</$objtype/mkfile
|
PLAN9=../..
|
||||||
|
<$PLAN9/src/mkhdr
|
||||||
|
|
||||||
LIB=/$objtype/lib/libplumb.a
|
LIB=libplumb.a
|
||||||
OFILES=\
|
OFILES=\
|
||||||
event.$O\
|
event.$O\
|
||||||
mesg.$O\
|
mesg.$O\
|
||||||
|
|
||||||
HFILES=/sys/include/plumb.h
|
HFILES=$PLAN9/include/plumb.h
|
||||||
|
|
||||||
</sys/src/cmd/mksyslib
|
<$PLAN9/src/mksyslib
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue