summaryrefslogtreecommitdiff
path: root/sys/src/cmd/rio/fsys.c
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@vmi>2011-11-29 13:41:02 -0500
committercinap_lenrek <cinap_lenrek@vmi>2011-11-29 13:41:02 -0500
commit25f4840c7eb70b7af3da3e9c13fcff704fab9d11 (patch)
tree93d6528203a36f0b43d9f8bf176b5513f3079a45 /sys/src/cmd/rio/fsys.c
parentc389d96769438345bd929285fb7500e22ba50bc3 (diff)
rio: dont serve /dev/screen from display->image, as its not updated on resize. instead, use screen and omit the file if provided by the enviroment. allow unaligned reads.
Diffstat (limited to 'sys/src/cmd/rio/fsys.c')
-rw-r--r--sys/src/cmd/rio/fsys.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/sys/src/cmd/rio/fsys.c b/sys/src/cmd/rio/fsys.c
index 3f7e87e19..673b53222 100644
--- a/sys/src/cmd/rio/fsys.c
+++ b/sys/src/cmd/rio/fsys.c
@@ -430,9 +430,13 @@ filsyswalk(Filsys *fs, Xfid *x, Fid *f)
dir = dirtab;
goto Accept;
}
-
+
+ /* don't serve these if it's provided in the environment */
if(snarffd>=0 && strcmp(x->wname[i], "snarf")==0)
- break; /* don't serve /dev/snarf if it's provided in the environment */
+ break;
+ if(strcmp(x->wname[i], "screen")==0 && access("/dev/screen", AEXIST)==0)
+ break;
+
id = WIN(f->qid);
d = dirtab;
d++; /* skip '.' */