Add support for user-level 9P servers/clients and various bug fixes to go with them.

This commit is contained in:
rsc 2003-12-11 17:48:38 +00:00
parent ac244f8d28
commit 32f69c36e0
60 changed files with 965 additions and 485 deletions

View file

@ -38,7 +38,8 @@ data matches '[a-zA-Z¡-
data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(jpe?g|JPE?G|gif|GIF|tiff?|TIFF?|ppm|bit)'
arg isfile $0
plumb to image
plumb client page -wi
plumb start qiv -t $1
# plumb client page -wi
# postscript/pdf/dvi go to page but not over the a plumb port
# the port is here for reference but is unused
@ -47,7 +48,8 @@ data matches '[a-zA-Z¡-
data matches '([a-zA-Z¡-￿0-9_\-./]+)\.(ps|PS|eps|EPS|pdf|PDF|dvi|DVI)'
arg isfile $0
plumb to postscript
plumb start page -w $file
plumb start gv $file
# plumb start page -w $file
# existing files, possibly tagged by line number, go to editor
type is text
@ -56,8 +58,7 @@ arg isfile $1
data set $file
attr add addr=$3
plumb to edit
plumb start /usr/local/plan9/bin/B $file:$3
# plumb client window $editor
plumb client $editor
# .h files are looked up in /usr/include and passed to edit
type is text
@ -66,8 +67,7 @@ arg isfile /usr/include/$1
data set $file
attr add addr=$3
plumb to edit
plumb start /usr/local/plan9/bin/B $file:$3
# plumb client window $editor
plumb client $editor
# .h files are looked up in /usr/local/include and passed to edit
type is text
@ -76,8 +76,7 @@ arg isfile /usr/local/include/$1
data set $file
attr add addr=$3
plumb to edit
plumb start /usr/local/plan9/bin/B $file:$3
# plumb client window $editor
plumb client $editor
# .h files are looked up in /usr/local/plan9/include and passed to edit
type is text
@ -86,8 +85,7 @@ arg isfile /usr/local/plan9/include/$1
data set $file
attr add addr=$3
plumb to edit
plumb start /usr/local/plan9/bin/B $file:$3
# plumb client window $editor
plumb client $editor
# .m files are looked up in /sys/module and passed to edit
type is text
@ -96,8 +94,7 @@ arg isfile /sys/module/$1
data set $file
attr add addr=$3
plumb to edit
plumb start /usr/local/plan9/bin/B $file:$3
# plumb client window $editor
plumb client window $editor
# faces -> new mail window for message
type is text
@ -113,13 +110,14 @@ plumb start rc -c 'man '$2' '$1' >[2=1] | plumb -i -d edit -a ''action=showdata
# start rule for images without known suffixes
dst is image
arg isfile $data
plumb to image
plumb client page -wi
plumb start qiv -t $data
# start rule for postscript without known suffixes
dst is postscript
arg isfile $data
plumb start page -w $data
plumb start gv $data
type is text
data matches 'Local (.*)'