plan9port/src/cmd
Michael Teichgräber 4fe82be00a Related to issue
http://bitbucket.org/rsc/plan9port/issue/38/

This patch tries to make 9pserve work again with
9P2000 clients, in case the server handled by 9pserve
expects 9P2000.u.

(Since changeset
http://bitbucket.org/rsc/plan9port/changeset/d9843471f0bc/
servers using srv() stop communicating after they
received a 9P2000 msg that has a different .u
definition.)

Tattach, Tauth and Tcreate 9P2000 messages will
be translated now, if neccessary, to 9P2000.u by
growing them to the new size, and providing the
missing (default) values.

The code of the first two message types has been
tested with drawterm on linux (dialing factotum),
and mounts from within 9vx to plan9port's factotum
and dossrv.

The code for Tcreate couldn't be tested due to lack
of file servers both speaking 9P2000.u and allowing file
creation.

R=rsc_swtch, rsc
CC=codebot
http://codereview.appspot.com/151052
2009-11-30 12:39:50 -08:00
..
9pfuse merge 2009-06-16 07:16:25 -07:00
9term convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
9660 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
9660srv 9660srv: dynamically init fcalls 2008-12-01 19:22:35 -05:00
acid Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
acidtypes Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
acme acme: fix Load of acme with no windows 2009-11-30 12:35:05 -08:00
astro Use va_args in cosadd/sinadd (Michael Teichgräber) 2006-05-27 18:35:26 +00:00
auth secstore: avoid name conflict with SS macro 2008-12-01 19:27:32 -05:00
auxstats stats: make more stats work in Linux 2009-08-08 16:45:27 -04:00
awk awk: sync with Plan 9 2009-08-11 20:16:30 -04:00
bzip2 Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
cb try to handle Beof in the macros (Michael Teichgräber) 2007-03-25 18:32:51 +00:00
db Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
devdraw devdraw: draft of new Cocoa-based devdraw 2009-09-29 09:35:23 -07:00
dict merge 2007-08-22 09:00:26 -04:00
diff diff: continue after i/o errors when diffing many files 2007-11-05 11:09:39 -05:00
draw stats: make more stats work in Linux 2009-08-08 16:45:27 -04:00
eqn INSTALL: fix build on Snow Leopard 2009-09-11 13:51:50 -04:00
faces Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
fontsrv fontsrv: add half-documented -s option 2009-07-08 22:23:58 -07:00
grap INSTALL: fix build on Snow Leopard 2009-09-11 13:51:50 -04:00
graph no c99 isms 2006-05-31 04:55:43 +00:00
grep no need to be so forward about it 2007-05-03 22:27:52 +00:00
gzip shut up gcc! 2006-04-20 20:28:08 +00:00
hoc hoc: print exact floating point output 2007-12-07 15:29:19 -05:00
htmlfmt Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
htmlroff htmlroff: ignore \X... text; allow delims besides quote 2008-11-11 10:59:48 -08:00
index More troff bits; if you want them elsewhere, feel free to repo copy them. 2004-05-17 03:22:35 +00:00
ip dhcpd: fix build on OS X, silence non-log prints 2009-09-13 17:48:44 -04:00
jpg misc: array bounds fixes that gcc finds (John Gosset) 2008-05-10 13:35:19 -04:00
lex bug fix 2006-04-20 21:51:05 +00:00
lp Changes. 2005-08-31 02:20:12 +00:00
map system tan() is probably good enough 2006-04-21 04:00:56 +00:00
mk unix fix 2007-04-21 22:36:01 +00:00
mnihongo Goodbye SHORTLIB 2005-01-04 22:10:29 +00:00
mpm make compile 2006-02-17 18:21:29 +00:00
ndb post9pservice: add extra arg to unmodified calls 2008-04-17 16:13:04 -04:00
netfiles Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
page page: remove temporary file at program exit; fixes reading from stdin 2009-08-20 14:38:31 -04:00
pic INSTALL: fix build on Snow Leopard 2009-09-11 13:51:50 -04:00
plot Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
plumb post9pservice: add extra arg to unmodified calls 2008-04-17 16:13:04 -04:00
postscript postscript: update for 32-bit Rune 2009-09-13 17:42:33 -04:00
proof darwin 2006-04-21 04:26:02 +00:00
rc rc: implement and document <>{cmd} notation 2009-09-13 18:26:51 -04:00
rio rio: stub out _NET_WM_STATE_FULLSCREEN support 2008-07-09 14:30:30 -04:00
sam convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
samterm merge 2009-04-30 07:29:24 -07:00
scat scat: fix 64-bit warning 2009-05-25 21:06:12 -07:00
smugfs smugfs: delete debugging prints 2009-07-29 11:28:00 -04:00
snarfer snarfer: OS X native version (ha!) 2008-06-30 19:40:59 -04:00
spell Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
tapefs misc: array bounds fixes that gcc finds (John Gosset) 2008-05-10 13:35:19 -04:00
tbl cast 2006-04-20 22:56:08 +00:00
tcs tcs: update for 32-bit Rune 2009-09-13 17:43:37 -04:00
tpic INSTALL: fix build on Snow Leopard 2009-09-11 13:51:50 -04:00
troff convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
troff2html fix again 2007-03-25 17:28:01 +00:00
upas mailfs: plumb messages correctly even if body comes before header 2008-12-06 18:54:02 -08:00
vac vacfs: no post9pservice with -i 2009-07-26 13:13:20 -04:00
vbackup vbackup: fix build on FreeBSD 8 2009-09-12 23:26:48 -04:00
venti venti: handle FS block size > MaxIo 2009-08-23 17:35:22 -04:00
.cvsignore Ignore more. 2005-09-13 00:42:27 +00:00
9p.c 9p: honour the -l flag to ls 2008-07-22 03:22:33 +10:00
9pserve.c Related to issue 2009-11-30 12:39:50 -08:00
acmeevent.c in with the new 2005-01-04 22:30:59 +00:00
ascii.c new utilities. 2003-11-23 18:04:47 +00:00
auxclog.c libc conflict on os x 2007-03-15 17:35:43 +00:00
basename.c new utilities. 2003-11-23 18:04:47 +00:00
bc.y bc: cleanup, make sure to run 9 dc 2008-12-06 16:45:22 -08:00
cal.c new utilities. 2003-11-23 18:04:47 +00:00
calendar.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
cat.c new utilities. 2003-11-23 18:04:47 +00:00
cleanname.c new utilities. 2003-11-23 18:04:47 +00:00
cmp.c new utilities. 2003-11-23 18:04:47 +00:00
comm.c no /fd/0 2005-01-14 20:08:31 +00:00
core.c do not readdir files - from zoltan jarai 2005-01-30 19:45:08 +00:00
date.c new utilities. 2003-11-23 18:04:47 +00:00
dc.c dc: cleanup, fix off-by-one memory error 2008-12-06 16:45:40 -08:00
dd.c new utilities. 2003-11-23 18:04:47 +00:00
delatex.lx merge 2008-01-30 10:30:45 -05:00
deroff.c no wide character constants; sigh 2005-05-07 22:42:06 +00:00
dformat bwk's dformat. 2004-05-16 07:58:31 +00:00
dial.c send output to fd instead of 0 2005-02-11 16:42:48 +00:00
du.C du: build by default; fix bug gcc discovered 2009-02-05 09:17:54 -08:00
echo.c new utilities. 2003-11-23 18:04:47 +00:00
ed.c ed: update to 32-bit Runes 2009-09-16 16:46:07 -04:00
factor.c new utilities. 2003-11-23 18:04:47 +00:00
file.c x3f support 2008-10-08 21:16:13 -05:00
fmt.c avoid double spacing 2006-05-10 04:13:56 +00:00
fortune.c have lrand now 2005-01-04 21:25:26 +00:00
freq.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
fsize.c new utilities. 2003-11-23 18:04:47 +00:00
getflags.c move files that codebot put in the wrong place 2009-08-14 20:38:22 -07:00
hget.c print final verbose update (Lou Kamenov) 2006-10-12 01:47:30 +00:00
hist.c apple 2005-07-13 21:34:11 +00:00
idiff.c lib9: add mode parameter to opentemp 2008-07-10 11:10:10 -04:00
import.c import: add -x flag 2008-12-06 16:44:26 -08:00
join.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
listen1.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
look.c no wide character constants; sigh 2005-05-07 22:42:06 +00:00
ls.C Make ls -lF work. 2007-01-29 15:12:42 +00:00
md5sum.C new utilities. 2003-11-23 18:04:47 +00:00
mkdir.C add -m flag 2004-04-21 22:37:29 +00:00
mkfile scat: add to build 2009-04-30 11:09:52 -07:00
mtime.c add new guys 2004-04-21 23:22:06 +00:00
namespace.c Add namespace.c 2004-03-21 14:07:19 +00:00
netkey.c changes 2005-02-11 19:51:21 +00:00
news.c Many small edits. 2005-01-13 04:49:19 +00:00
p.c use tty 2004-04-24 05:22:42 +00:00
pbd.c Add tcs; it compiles in my world, but I haven't tried it in Russ's yet. 2004-04-21 01:15:41 +00:00
pr.c os x changes 2005-01-11 17:43:53 +00:00
primes.c add new guys 2004-04-21 23:22:06 +00:00
ramfs.c misc: more post9pservice callers 2008-05-07 12:55:48 -04:00
read.c in with the new 2005-01-04 22:30:59 +00:00
readcons.c new program readcons 2005-02-13 18:03:41 +00:00
resample.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
rm.c Many small edits. 2005-01-13 04:49:19 +00:00
sed.c convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
seq.c new seq from plan 9 (Anthony Martin) 2006-10-12 01:42:11 +00:00
sftpcache.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
sha1sum.c new utilities. 2003-11-23 18:04:47 +00:00
sleep.c new utilities. 2003-11-23 18:04:47 +00:00
sort.c sort: use noted(NDFLT) in note handler 2008-06-01 08:26:10 -04:00
split.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
srv.c misc: more post9pservice callers 2008-05-07 12:55:48 -04:00
strings.c no /fd/ 2005-11-12 16:43:07 +00:00
sum.c new utilities. 2003-11-23 18:04:47 +00:00
tail.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
tar.c src/cmd/tar.c: avoid conflict with strnlen in libc 2008-12-01 19:41:36 -05:00
tee.c new utilities. 2003-11-23 18:04:47 +00:00
test.c oops 2007-05-21 21:09:24 +00:00
time.c Fix small bugs. 2004-05-11 17:51:27 +00:00
touch.c print error if changing time fails 2007-05-20 14:37:29 +00:00
tr.c convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
unicode.c convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
uniq.c I just hate to be pushed around by some @#$%^& machine. 2005-07-19 18:00:07 +00:00
units.y Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
unutf.c Add the #goo to allow use in C++. 2003-11-25 01:40:27 +00:00
usage.c move files that codebot put in the wrong place 2009-08-14 20:38:22 -07:00
wc.c Use gcc -ansi -pedantic in 9c. Fix many non-C89-isms. 2006-04-01 19:24:03 +00:00
xd.c merge 2009-02-04 20:12:48 -08:00
yacc.c write YYARG def to ftable (fdefine might be null, and is not the right place anyway) 2007-01-29 16:46:16 +00:00