summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/fsys.c
diff options
context:
space:
mode:
authorJacob Moody <moody@posixcafe.org>2022-08-19 23:35:41 +0000
committerJacob Moody <moody@posixcafe.org>2022-08-19 23:35:41 +0000
commit4009eb2feecfa4722d5cb22be4f5db9f26d15be3 (patch)
tree70861cb2df8a4a881110d1b57973fa23499095a0 /sys/src/cmd/rio/fsys.c
parenta36f997368057fe298524de52310cc4e98bddba8 (diff)
rio: correct tap code
Remove tapmesg, allow the reads to accept flushes, accept writes of multiple messages, move open/close to Xfid code.
Diffstat (limited to 'sys/src/cmd/rio/fsys.c')
-rw-r--r--sys/src/cmd/rio/fsys.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/sys/src/cmd/rio/fsys.c b/sys/src/cmd/rio/fsys.c
index 49c9c7d2f..601802545 100644
--- a/sys/src/cmd/rio/fsys.c
+++ b/sys/src/cmd/rio/fsys.c
@@ -116,16 +116,6 @@ cexecpipe(int *p0, int *p1)
return 0;
}
-void
-toggletap(char mode)
-{
- Tapmesg m;
-
- m.type = mode;
- m.s = nil;
- send(fromtap, &m);
-}
-
Filsys*
filsysinit(Channel *cxfidalloc)
{
@@ -518,8 +508,6 @@ filsysopen(Filsys *fs, Xfid *x, Fid *f)
if(((f->dir->perm&~(DMDIR|DMAPPEND))&m) != m)
goto Deny;
- if(FILE(f->qid) == Qtap)
- toggletap(Fon);
sendp(x->c, xfidopen);
return nil;
@@ -629,8 +617,6 @@ filsysclunk(Filsys *fs, Xfid *x, Fid *f)
if(f->open){
f->busy = FALSE;
f->open = FALSE;
- if(FILE(f->qid) == Qtap)
- toggletap(Foff);
sendp(x->c, xfidclose);
return nil;
}