Browse Source

Plan 9 from Bell Labs 2006-08-13

David du Colombier 14 years ago
parent
commit
518ae91de5

+ 20 - 21
dist/replica/_plan9.db

@@ -5410,7 +5410,7 @@ rc/bin/ape/grep - 775 sys sys 1023738308 60
 rc/bin/ape/install - 775 sys sys 1015089725 572
 rc/bin/ape/ld - 775 sys sys 1107957880 98
 rc/bin/ape/ls - 775 sys sys 1143927118 1032
-rc/bin/ape/printf - 664 sys sys 1139841311 60
+rc/bin/ape/printf - 775 sys sys 1139841311 60
 rc/bin/ape/psh - 775 sys sys 1040481105 240
 rc/bin/ape/ranlib - 775 sys sys 1099176402 18
 rc/bin/ape/rmdir - 775 sys sys 945617286 16
@@ -5451,7 +5451,7 @@ rc/bin/leak - 775 sys sys 1139744263 1052
 rc/bin/lookman - 775 sys sys 1017679344 686
 rc/bin/lp - 775 sys sys 1146317617 5154
 rc/bin/mail - 775 sys sys 1045504003 138
-rc/bin/man - 775 sys sys 1138555265 2520
+rc/bin/man - 775 sys sys 1155361978 2516
 rc/bin/map - 775 sys sys 945617207 1576
 rc/bin/mapdemo - 775 sys sys 945617207 4075
 rc/bin/membername - 775 sys sys 945617207 89
@@ -5462,7 +5462,6 @@ rc/bin/patch/applied - 775 sys sys 1115941614 111
 rc/bin/patch/apply - 775 sys sys 1109511606 1285
 rc/bin/patch/create - 775 sys sys 1141738939 1509
 rc/bin/patch/diff - 775 sys sys 1109511606 474
-rc/bin/patch/email - 775 sys sys 1109511607 409
 rc/bin/patch/list - 775 sys sys 1115941576 749
 rc/bin/patch/move - 775 sys sys 1112166652 643
 rc/bin/patch/note - 664 sys sys 1109511607 663
@@ -6621,7 +6620,7 @@ sys/lib/man/trademarks - 664 sys sys 958527089 1838
 sys/lib/mimetype - 664 sys sys 1120564829 6236
 sys/lib/newuser - 775 sys sys 1112362340 1226
 sys/lib/plumb - 20000000775 sys sys 944957365 0
-sys/lib/plumb/basic - 664 sys sys 1143814229 2878
+sys/lib/plumb/basic - 664 sys sys 1155363394 2879
 sys/lib/plumb/fileaddr - 664 sys sys 944957365 88
 sys/lib/postscript - 20000000775 sys sys 950322802 0
 sys/lib/postscript/afm - 20000000775 sys sys 950322802 0
@@ -7357,7 +7356,7 @@ sys/man/1/pwd - 664 sys sys 1104639653 744
 sys/man/1/rc - 664 sys sys 1144685483 20019
 sys/man/1/replica - 664 sys sys 1138843328 7210
 sys/man/1/resample - 664 sys sys 1015024740 1083
-sys/man/1/rio - 664 sys sys 1130425691 14707
+sys/man/1/rio - 664 sys sys 1155362586 14707
 sys/man/1/rm - 664 sys sys 944959673 515
 sys/man/1/rwd - 664 sys sys 1042469992 2958
 sys/man/1/sam - 664 sys sys 1113743327 18295
@@ -7422,7 +7421,7 @@ sys/man/2/allocimage - 664 sys sys 1046787977 7304
 sys/man/2/arg - 664 sys sys 1139744263 2184
 sys/man/2/arith3 - 664 sys sys 969499887 4397
 sys/man/2/assert - 664 sys sys 1102868467 377
-sys/man/2/atof - 664 sys sys 1015091517 2766
+sys/man/2/atof - 664 sys sys 1155361945 2777
 sys/man/2/auth - 664 sys sys 1017423719 7539
 sys/man/2/authsrv - 664 sys sys 1055734550 4145
 sys/man/2/bin - 664 sys sys 985023077 1880
@@ -7708,7 +7707,7 @@ sys/man/8/cron - 664 sys sys 1063858596 1867
 sys/man/8/dhcpd - 664 sys sys 1032654987 5237
 sys/man/8/disksim - 664 sys sys 1144150487 1476
 sys/man/8/drawterm - 664 sys sys 1135901219 1741
-sys/man/8/fossilcons - 664 sys sys 1138466274 18276
+sys/man/8/fossilcons - 664 sys sys 1155362671 18291
 sys/man/8/fs - 664 sys sys 1055701170 15029
 sys/man/8/fsconfig - 664 sys sys 1142906116 8281
 sys/man/8/getflags - 664 sys sys 1139839200 1712
@@ -8028,7 +8027,7 @@ sys/src/9/pc/screen.c - 664 sys sys 1136336092 13971
 sys/src/9/pc/screen.h - 664 sys sys 1147023549 4256
 sys/src/9/pc/sd53c8xx.c - 664 sys sys 1149280015 55135
 sys/src/9/pc/sd53c8xx.n - 664 sys sys 1131290556 12657
-sys/src/9/pc/sdata.c - 664 sys sys 1141793347 52244
+sys/src/9/pc/sdata.c - 664 sys sys 1155361705 52464
 sys/src/9/pc/sdmv50xx.c - 664 sys sys 1131290638 25780
 sys/src/9/pc/sdmylex.c - 664 sys sys 1133068062 27806
 sys/src/9/pc/sdscsi.c - 664 sys sys 1146746630 7106
@@ -8051,7 +8050,7 @@ sys/src/9/pc/vgahiqvideo.c - 664 sys sys 1131290601 4098
 sys/src/9/pc/vgai81x.c - 664 sys sys 1135487942 4421
 sys/src/9/pc/vgamach64xx.c - 664 sys sys 1131290601 28257
 sys/src/9/pc/vgamga2164w.c - 664 sys sys 1132331257 4769
-sys/src/9/pc/vgamga4xx.c - 664 sys sys 1143927896 9573
+sys/src/9/pc/vgamga4xx.c - 664 sys sys 1155364221 9879
 sys/src/9/pc/vganeomagic.c - 664 sys sys 1131422294 10255
 sys/src/9/pc/vganvidia.c - 664 sys sys 1145906148 12373
 sys/src/9/pc/vgargb524.c - 664 sys sys 1131290602 4251
@@ -9018,7 +9017,7 @@ sys/src/boot/pc/devfloppy.c - 664 sys sys 1032215913 15505
 sys/src/boot/pc/devfloppy.h - 664 sys sys 1032409559 4081
 sys/src/boot/pc/devi82365.c - 664 sys sys 1144961189 15051
 sys/src/boot/pc/devpccard.c - 664 sys sys 1153333456 33897
-sys/src/boot/pc/devsd.c - 664 sys sys 1077033681 11262
+sys/src/boot/pc/devsd.c - 664 sys sys 1155361765 11262
 sys/src/boot/pc/dma.c - 664 sys sys 1015007949 4972
 sys/src/boot/pc/dosboot.c - 664 sys sys 1097716791 11240
 sys/src/boot/pc/dosfs.h - 664 sys sys 1032215924 1467
@@ -9075,7 +9074,7 @@ sys/src/boot/pc/queue.c - 664 sys sys 1015007954 566
 sys/src/boot/pc/sd.h - 664 sys sys 1153333456 2244
 sys/src/boot/pc/sd53c8xx.c - 664 sys sys 1144961191 52127
 sys/src/boot/pc/sd53c8xx.i - 664 sys sys 1015007955 27245
-sys/src/boot/pc/sdata.c - 664 sys sys 1144961191 38221
+sys/src/boot/pc/sdata.c - 664 sys sys 1155361707 38635
 sys/src/boot/pc/sdmylex.c - 664 sys sys 1144961191 28693
 sys/src/boot/pc/sdscsi.c - 664 sys sys 1144961224 7006
 sys/src/boot/pc/trap.c - 664 sys sys 1144961191 7499
@@ -9408,7 +9407,7 @@ sys/src/cmd/aquarela/smbtime.c - 664 sys sys 1135892114 1232
 sys/src/cmd/aquarela/smbtrans2client.c - 664 sys sys 1135892114 3726
 sys/src/cmd/aquarela/smbtrans2find.c - 664 sys sys 1135892115 9041
 sys/src/cmd/aquarela/smbtrans2query.c - 664 sys sys 1135892115 8215
-sys/src/cmd/aquarela/smbtrans2set.c - 664 sys sys 1135892115 2440
+sys/src/cmd/aquarela/smbtrans2set.c - 664 sys sys 1155362132 2510
 sys/src/cmd/aquarela/smbtransaction.c - 664 sys sys 1135892115 16684
 sys/src/cmd/aquarela/smbtree.c - 664 sys sys 1135892115 1314
 sys/src/cmd/aquarela/testconnect.c - 664 sys sys 1135892115 1533
@@ -9716,7 +9715,7 @@ sys/src/cmd/aux/vga/mach64.c - 664 sys sys 1014925009 8279
 sys/src/cmd/aux/vga/mach64xx.c - 664 sys sys 1097900455 30266
 sys/src/cmd/aux/vga/main.c - 664 sys sys 1131741978 9725
 sys/src/cmd/aux/vga/mga2164w.c - 664 sys sys 1135487945 13173
-sys/src/cmd/aux/vga/mga4xx.c - 664 sys sys 1143927895 36098
+sys/src/cmd/aux/vga/mga4xx.c - 664 sys sys 1155364222 36908
 sys/src/cmd/aux/vga/mkfile - 664 sys sys 1115734903 927
 sys/src/cmd/aux/vga/neomagic.c - 664 sys sys 1104430499 8975
 sys/src/cmd/aux/vga/notes.txt - 664 sys sys 1028334647 14376
@@ -12243,7 +12242,7 @@ sys/src/cmd/history.c - 664 sys sys 1136378274 6098
 sys/src/cmd/hoc - 20000000775 sys sys 954036932 0
 sys/src/cmd/hoc/code.c - 664 sys sys 1132451870 10050
 sys/src/cmd/hoc/hoc.h - 664 sys sys 944960999 2358
-sys/src/cmd/hoc/hoc.y - 664 sys sys 984718583 9640
+sys/src/cmd/hoc/hoc.y - 664 sys sys 1155364037 9666
 sys/src/cmd/hoc/init.c - 664 sys sys 944960999 1441
 sys/src/cmd/hoc/math.c - 664 sys sys 944961000 990
 sys/src/cmd/hoc/mkfile - 664 sys sys 944960999 173
@@ -13111,7 +13110,7 @@ sys/src/cmd/rdbfs.c - 664 sys sys 1142342219 7633
 sys/src/cmd/read.c - 664 sys sys 1022047660 1278
 sys/src/cmd/replica - 20000000775 sys sys 1018321113 0
 sys/src/cmd/replica/all.h - 664 sys sys 1091904421 1265
-sys/src/cmd/replica/applychanges.c - 664 sys sys 1068497831 6123
+sys/src/cmd/replica/applychanges.c - 664 sys sys 1155363028 6122
 sys/src/cmd/replica/applylog.c - 664 sys sys 1139667399 21874
 sys/src/cmd/replica/avl.c - 664 sys sys 1068497830 6242
 sys/src/cmd/replica/compactdb.c - 664 sys sys 1018323475 652
@@ -13410,7 +13409,7 @@ sys/src/cmd/telco/mkfile - 664 sys sys 944961290 201
 sys/src/cmd/telco/telco.c - 664 sys sys 1021579996 26253
 sys/src/cmd/telco/telcodata - 775 sys sys 944961290 95
 sys/src/cmd/telco/telcofax - 664 sys sys 944961289 30
-sys/src/cmd/test.c - 664 sys sys 1079372543 5409
+sys/src/cmd/test.c - 664 sys sys 1155362259 5606
 sys/src/cmd/time.c - 664 sys sys 1014926662 1546
 sys/src/cmd/tlsclient.c - 664 sys sys 1024375149 1631
 sys/src/cmd/tlssrv.c - 664 sys sys 1134498997 3426
@@ -14285,13 +14284,13 @@ sys/src/cmd/vt/vt.c - 664 sys sys 1133808291 19606
 sys/src/cmd/wc.c - 664 sys sys 984717764 12652
 sys/src/cmd/webcookies.c - 664 sys sys 1132449468 23687
 sys/src/cmd/webfs - 20000000775 sys sys 1015015823 0
-sys/src/cmd/webfs/buf.c - 664 sys sys 1032665987 1198
+sys/src/cmd/webfs/buf.c - 664 sys sys 1155362544 1199
 sys/src/cmd/webfs/client.c - 664 sys sys 1130422711 6818
 sys/src/cmd/webfs/cookies.c - 664 sys sys 1128664611 21888
 sys/src/cmd/webfs/dat.h - 664 sys sys 1128664462 1621
 sys/src/cmd/webfs/fns.h - 664 sys sys 1032665987 1453
 sys/src/cmd/webfs/fs.c - 664 sys sys 1128664603 10944
-sys/src/cmd/webfs/http.c - 664 sys sys 1144685411 9503
+sys/src/cmd/webfs/http.c - 664 sys sys 1155363881 9305
 sys/src/cmd/webfs/io.c - 664 sys sys 1034736588 1384
 sys/src/cmd/webfs/main.c - 664 sys sys 1128664462 1083
 sys/src/cmd/webfs/mkfile - 664 sys sys 1032665986 340
@@ -14941,7 +14940,7 @@ sys/src/libc/port/mkfile - 664 sys sys 1067719044 1545
 sys/src/libc/port/mktemp.c - 664 sys sys 1014927399 395
 sys/src/libc/port/muldiv.c - 664 sys sys 1014927399 403
 sys/src/libc/port/nan.c - 664 sys sys 1014927399 610
-sys/src/libc/port/needsrcquote.c - 664 sys sys 1037034490 151
+sys/src/libc/port/needsrcquote.c - 664 sys sys 1155363805 152
 sys/src/libc/port/netcrypt.c - 664 sys sys 1014927400 317
 sys/src/libc/port/netmkaddr.c - 664 sys sys 1014927400 863
 sys/src/libc/port/nrand.c - 664 sys sys 1035832917 191
@@ -15131,7 +15130,7 @@ sys/src/libdraw/stringsubfont.c - 664 sys sys 944961725 960
 sys/src/libdraw/stringwidth.c - 664 sys sys 1080400060 1589
 sys/src/libdraw/subfont.c - 664 sys sys 984709666 495
 sys/src/libdraw/subfontcache.c - 664 sys sys 1082924459 752
-sys/src/libdraw/subfontname.c - 664 sys sys 1115916774 789
+sys/src/libdraw/subfontname.c - 664 sys sys 1155362344 813
 sys/src/libdraw/test.c - 664 sys sys 944961725 201
 sys/src/libdraw/unloadimage.c - 664 sys sys 944961725 1000
 sys/src/libdraw/window.c - 664 sys sys 1018387005 3529
@@ -15172,7 +15171,7 @@ sys/src/libgeometry/quaternion.c - 664 sys sys 944961726 5707
 sys/src/libgeometry/transform.c - 664 sys sys 944961726 1995
 sys/src/libgeometry/tstack.c - 664 sys sys 944961726 4716
 sys/src/libhtml - 20000000775 sys sys 1016902547 0
-sys/src/libhtml/build.c - 664 sys sys 1143384150 94721
+sys/src/libhtml/build.c - 664 sys sys 1155362319 94787
 sys/src/libhtml/impl.h - 664 sys sys 1021580002 4627
 sys/src/libhtml/lex.c - 664 sys sys 1143220767 28128
 sys/src/libhtml/mkfile - 664 sys sys 1035389778 246

+ 20 - 21
dist/replica/plan9.db

@@ -5410,7 +5410,7 @@ rc/bin/ape/grep - 775 sys sys 1023738308 60
 rc/bin/ape/install - 775 sys sys 1015089725 572
 rc/bin/ape/ld - 775 sys sys 1107957880 98
 rc/bin/ape/ls - 775 sys sys 1143927118 1032
-rc/bin/ape/printf - 664 sys sys 1139841311 60
+rc/bin/ape/printf - 775 sys sys 1139841311 60
 rc/bin/ape/psh - 775 sys sys 1040481105 240
 rc/bin/ape/ranlib - 775 sys sys 1099176402 18
 rc/bin/ape/rmdir - 775 sys sys 945617286 16
@@ -5451,7 +5451,7 @@ rc/bin/leak - 775 sys sys 1139744263 1052
 rc/bin/lookman - 775 sys sys 1017679344 686
 rc/bin/lp - 775 sys sys 1146317617 5154
 rc/bin/mail - 775 sys sys 1045504003 138
-rc/bin/man - 775 sys sys 1138555265 2520
+rc/bin/man - 775 sys sys 1155361978 2516
 rc/bin/map - 775 sys sys 945617207 1576
 rc/bin/mapdemo - 775 sys sys 945617207 4075
 rc/bin/membername - 775 sys sys 945617207 89
@@ -5462,7 +5462,6 @@ rc/bin/patch/applied - 775 sys sys 1115941614 111
 rc/bin/patch/apply - 775 sys sys 1109511606 1285
 rc/bin/patch/create - 775 sys sys 1141738939 1509
 rc/bin/patch/diff - 775 sys sys 1109511606 474
-rc/bin/patch/email - 775 sys sys 1109511607 409
 rc/bin/patch/list - 775 sys sys 1115941576 749
 rc/bin/patch/move - 775 sys sys 1112166652 643
 rc/bin/patch/note - 664 sys sys 1109511607 663
@@ -6621,7 +6620,7 @@ sys/lib/man/trademarks - 664 sys sys 958527089 1838
 sys/lib/mimetype - 664 sys sys 1120564829 6236
 sys/lib/newuser - 775 sys sys 1112362340 1226
 sys/lib/plumb - 20000000775 sys sys 944957365 0
-sys/lib/plumb/basic - 664 sys sys 1143814229 2878
+sys/lib/plumb/basic - 664 sys sys 1155363394 2879
 sys/lib/plumb/fileaddr - 664 sys sys 944957365 88
 sys/lib/postscript - 20000000775 sys sys 950322802 0
 sys/lib/postscript/afm - 20000000775 sys sys 950322802 0
@@ -7357,7 +7356,7 @@ sys/man/1/pwd - 664 sys sys 1104639653 744
 sys/man/1/rc - 664 sys sys 1144685483 20019
 sys/man/1/replica - 664 sys sys 1138843328 7210
 sys/man/1/resample - 664 sys sys 1015024740 1083
-sys/man/1/rio - 664 sys sys 1130425691 14707
+sys/man/1/rio - 664 sys sys 1155362586 14707
 sys/man/1/rm - 664 sys sys 944959673 515
 sys/man/1/rwd - 664 sys sys 1042469992 2958
 sys/man/1/sam - 664 sys sys 1113743327 18295
@@ -7422,7 +7421,7 @@ sys/man/2/allocimage - 664 sys sys 1046787977 7304
 sys/man/2/arg - 664 sys sys 1139744263 2184
 sys/man/2/arith3 - 664 sys sys 969499887 4397
 sys/man/2/assert - 664 sys sys 1102868467 377
-sys/man/2/atof - 664 sys sys 1015091517 2766
+sys/man/2/atof - 664 sys sys 1155361945 2777
 sys/man/2/auth - 664 sys sys 1017423719 7539
 sys/man/2/authsrv - 664 sys sys 1055734550 4145
 sys/man/2/bin - 664 sys sys 985023077 1880
@@ -7708,7 +7707,7 @@ sys/man/8/cron - 664 sys sys 1063858596 1867
 sys/man/8/dhcpd - 664 sys sys 1032654987 5237
 sys/man/8/disksim - 664 sys sys 1144150487 1476
 sys/man/8/drawterm - 664 sys sys 1135901219 1741
-sys/man/8/fossilcons - 664 sys sys 1138466274 18276
+sys/man/8/fossilcons - 664 sys sys 1155362671 18291
 sys/man/8/fs - 664 sys sys 1055701170 15029
 sys/man/8/fsconfig - 664 sys sys 1142906116 8281
 sys/man/8/getflags - 664 sys sys 1139839200 1712
@@ -8028,7 +8027,7 @@ sys/src/9/pc/screen.c - 664 sys sys 1136336092 13971
 sys/src/9/pc/screen.h - 664 sys sys 1147023549 4256
 sys/src/9/pc/sd53c8xx.c - 664 sys sys 1149280015 55135
 sys/src/9/pc/sd53c8xx.n - 664 sys sys 1131290556 12657
-sys/src/9/pc/sdata.c - 664 sys sys 1141793347 52244
+sys/src/9/pc/sdata.c - 664 sys sys 1155361705 52464
 sys/src/9/pc/sdmv50xx.c - 664 sys sys 1131290638 25780
 sys/src/9/pc/sdmylex.c - 664 sys sys 1133068062 27806
 sys/src/9/pc/sdscsi.c - 664 sys sys 1146746630 7106
@@ -8051,7 +8050,7 @@ sys/src/9/pc/vgahiqvideo.c - 664 sys sys 1131290601 4098
 sys/src/9/pc/vgai81x.c - 664 sys sys 1135487942 4421
 sys/src/9/pc/vgamach64xx.c - 664 sys sys 1131290601 28257
 sys/src/9/pc/vgamga2164w.c - 664 sys sys 1132331257 4769
-sys/src/9/pc/vgamga4xx.c - 664 sys sys 1143927896 9573
+sys/src/9/pc/vgamga4xx.c - 664 sys sys 1155364221 9879
 sys/src/9/pc/vganeomagic.c - 664 sys sys 1131422294 10255
 sys/src/9/pc/vganvidia.c - 664 sys sys 1145906148 12373
 sys/src/9/pc/vgargb524.c - 664 sys sys 1131290602 4251
@@ -9018,7 +9017,7 @@ sys/src/boot/pc/devfloppy.c - 664 sys sys 1032215913 15505
 sys/src/boot/pc/devfloppy.h - 664 sys sys 1032409559 4081
 sys/src/boot/pc/devi82365.c - 664 sys sys 1144961189 15051
 sys/src/boot/pc/devpccard.c - 664 sys sys 1153333456 33897
-sys/src/boot/pc/devsd.c - 664 sys sys 1077033681 11262
+sys/src/boot/pc/devsd.c - 664 sys sys 1155361765 11262
 sys/src/boot/pc/dma.c - 664 sys sys 1015007949 4972
 sys/src/boot/pc/dosboot.c - 664 sys sys 1097716791 11240
 sys/src/boot/pc/dosfs.h - 664 sys sys 1032215924 1467
@@ -9075,7 +9074,7 @@ sys/src/boot/pc/queue.c - 664 sys sys 1015007954 566
 sys/src/boot/pc/sd.h - 664 sys sys 1153333456 2244
 sys/src/boot/pc/sd53c8xx.c - 664 sys sys 1144961191 52127
 sys/src/boot/pc/sd53c8xx.i - 664 sys sys 1015007955 27245
-sys/src/boot/pc/sdata.c - 664 sys sys 1144961191 38221
+sys/src/boot/pc/sdata.c - 664 sys sys 1155361707 38635
 sys/src/boot/pc/sdmylex.c - 664 sys sys 1144961191 28693
 sys/src/boot/pc/sdscsi.c - 664 sys sys 1144961224 7006
 sys/src/boot/pc/trap.c - 664 sys sys 1144961191 7499
@@ -9408,7 +9407,7 @@ sys/src/cmd/aquarela/smbtime.c - 664 sys sys 1135892114 1232
 sys/src/cmd/aquarela/smbtrans2client.c - 664 sys sys 1135892114 3726
 sys/src/cmd/aquarela/smbtrans2find.c - 664 sys sys 1135892115 9041
 sys/src/cmd/aquarela/smbtrans2query.c - 664 sys sys 1135892115 8215
-sys/src/cmd/aquarela/smbtrans2set.c - 664 sys sys 1135892115 2440
+sys/src/cmd/aquarela/smbtrans2set.c - 664 sys sys 1155362132 2510
 sys/src/cmd/aquarela/smbtransaction.c - 664 sys sys 1135892115 16684
 sys/src/cmd/aquarela/smbtree.c - 664 sys sys 1135892115 1314
 sys/src/cmd/aquarela/testconnect.c - 664 sys sys 1135892115 1533
@@ -9716,7 +9715,7 @@ sys/src/cmd/aux/vga/mach64.c - 664 sys sys 1014925009 8279
 sys/src/cmd/aux/vga/mach64xx.c - 664 sys sys 1097900455 30266
 sys/src/cmd/aux/vga/main.c - 664 sys sys 1131741978 9725
 sys/src/cmd/aux/vga/mga2164w.c - 664 sys sys 1135487945 13173
-sys/src/cmd/aux/vga/mga4xx.c - 664 sys sys 1143927895 36098
+sys/src/cmd/aux/vga/mga4xx.c - 664 sys sys 1155364222 36908
 sys/src/cmd/aux/vga/mkfile - 664 sys sys 1115734903 927
 sys/src/cmd/aux/vga/neomagic.c - 664 sys sys 1104430499 8975
 sys/src/cmd/aux/vga/notes.txt - 664 sys sys 1028334647 14376
@@ -12243,7 +12242,7 @@ sys/src/cmd/history.c - 664 sys sys 1136378274 6098
 sys/src/cmd/hoc - 20000000775 sys sys 954036932 0
 sys/src/cmd/hoc/code.c - 664 sys sys 1132451870 10050
 sys/src/cmd/hoc/hoc.h - 664 sys sys 944960999 2358
-sys/src/cmd/hoc/hoc.y - 664 sys sys 984718583 9640
+sys/src/cmd/hoc/hoc.y - 664 sys sys 1155364037 9666
 sys/src/cmd/hoc/init.c - 664 sys sys 944960999 1441
 sys/src/cmd/hoc/math.c - 664 sys sys 944961000 990
 sys/src/cmd/hoc/mkfile - 664 sys sys 944960999 173
@@ -13111,7 +13110,7 @@ sys/src/cmd/rdbfs.c - 664 sys sys 1142342219 7633
 sys/src/cmd/read.c - 664 sys sys 1022047660 1278
 sys/src/cmd/replica - 20000000775 sys sys 1018321113 0
 sys/src/cmd/replica/all.h - 664 sys sys 1091904421 1265
-sys/src/cmd/replica/applychanges.c - 664 sys sys 1068497831 6123
+sys/src/cmd/replica/applychanges.c - 664 sys sys 1155363028 6122
 sys/src/cmd/replica/applylog.c - 664 sys sys 1139667399 21874
 sys/src/cmd/replica/avl.c - 664 sys sys 1068497830 6242
 sys/src/cmd/replica/compactdb.c - 664 sys sys 1018323475 652
@@ -13410,7 +13409,7 @@ sys/src/cmd/telco/mkfile - 664 sys sys 944961290 201
 sys/src/cmd/telco/telco.c - 664 sys sys 1021579996 26253
 sys/src/cmd/telco/telcodata - 775 sys sys 944961290 95
 sys/src/cmd/telco/telcofax - 664 sys sys 944961289 30
-sys/src/cmd/test.c - 664 sys sys 1079372543 5409
+sys/src/cmd/test.c - 664 sys sys 1155362259 5606
 sys/src/cmd/time.c - 664 sys sys 1014926662 1546
 sys/src/cmd/tlsclient.c - 664 sys sys 1024375149 1631
 sys/src/cmd/tlssrv.c - 664 sys sys 1134498997 3426
@@ -14285,13 +14284,13 @@ sys/src/cmd/vt/vt.c - 664 sys sys 1133808291 19606
 sys/src/cmd/wc.c - 664 sys sys 984717764 12652
 sys/src/cmd/webcookies.c - 664 sys sys 1132449468 23687
 sys/src/cmd/webfs - 20000000775 sys sys 1015015823 0
-sys/src/cmd/webfs/buf.c - 664 sys sys 1032665987 1198
+sys/src/cmd/webfs/buf.c - 664 sys sys 1155362544 1199
 sys/src/cmd/webfs/client.c - 664 sys sys 1130422711 6818
 sys/src/cmd/webfs/cookies.c - 664 sys sys 1128664611 21888
 sys/src/cmd/webfs/dat.h - 664 sys sys 1128664462 1621
 sys/src/cmd/webfs/fns.h - 664 sys sys 1032665987 1453
 sys/src/cmd/webfs/fs.c - 664 sys sys 1128664603 10944
-sys/src/cmd/webfs/http.c - 664 sys sys 1144685411 9503
+sys/src/cmd/webfs/http.c - 664 sys sys 1155363881 9305
 sys/src/cmd/webfs/io.c - 664 sys sys 1034736588 1384
 sys/src/cmd/webfs/main.c - 664 sys sys 1128664462 1083
 sys/src/cmd/webfs/mkfile - 664 sys sys 1032665986 340
@@ -14941,7 +14940,7 @@ sys/src/libc/port/mkfile - 664 sys sys 1067719044 1545
 sys/src/libc/port/mktemp.c - 664 sys sys 1014927399 395
 sys/src/libc/port/muldiv.c - 664 sys sys 1014927399 403
 sys/src/libc/port/nan.c - 664 sys sys 1014927399 610
-sys/src/libc/port/needsrcquote.c - 664 sys sys 1037034490 151
+sys/src/libc/port/needsrcquote.c - 664 sys sys 1155363805 152
 sys/src/libc/port/netcrypt.c - 664 sys sys 1014927400 317
 sys/src/libc/port/netmkaddr.c - 664 sys sys 1014927400 863
 sys/src/libc/port/nrand.c - 664 sys sys 1035832917 191
@@ -15131,7 +15130,7 @@ sys/src/libdraw/stringsubfont.c - 664 sys sys 944961725 960
 sys/src/libdraw/stringwidth.c - 664 sys sys 1080400060 1589
 sys/src/libdraw/subfont.c - 664 sys sys 984709666 495
 sys/src/libdraw/subfontcache.c - 664 sys sys 1082924459 752
-sys/src/libdraw/subfontname.c - 664 sys sys 1115916774 789
+sys/src/libdraw/subfontname.c - 664 sys sys 1155362344 813
 sys/src/libdraw/test.c - 664 sys sys 944961725 201
 sys/src/libdraw/unloadimage.c - 664 sys sys 944961725 1000
 sys/src/libdraw/window.c - 664 sys sys 1018387005 3529
@@ -15172,7 +15171,7 @@ sys/src/libgeometry/quaternion.c - 664 sys sys 944961726 5707
 sys/src/libgeometry/transform.c - 664 sys sys 944961726 1995
 sys/src/libgeometry/tstack.c - 664 sys sys 944961726 4716
 sys/src/libhtml - 20000000775 sys sys 1016902547 0
-sys/src/libhtml/build.c - 664 sys sys 1143384150 94721
+sys/src/libhtml/build.c - 664 sys sys 1155362319 94787
 sys/src/libhtml/impl.h - 664 sys sys 1021580002 4627
 sys/src/libhtml/lex.c - 664 sys sys 1143220767 28128
 sys/src/libhtml/mkfile - 664 sys sys 1035389778 246

+ 21 - 0
dist/replica/plan9.log

@@ -30229,3 +30229,24 @@
 1155331806 0 a lib/face/48x48x8/e/ericvh.2 - 664 sys sys 1155331573 1049
 1155331806 1 a lib/face/48x48x8/f/fst.1 - 664 sys sys 1155331586 6750
 1155349807 0 c sys/src/cmd/tar.c - 664 sys sys 1155348700 24133
+1155362407 0 m rc/bin/ape/printf - 775 sys sys 1139841311 60
+1155362407 1 c rc/bin/man - 775 sys sys 1155361978 2516
+1155362407 2 c sys/man/2/atof - 664 sys sys 1155361945 2777
+1155362407 3 c sys/src/9/pc/sdata.c - 664 sys sys 1155361705 52464
+1155362407 4 c sys/src/boot/pc/devsd.c - 664 sys sys 1155361765 11262
+1155362407 5 c sys/src/boot/pc/sdata.c - 664 sys sys 1155361707 38635
+1155362407 6 c sys/src/cmd/aquarela/smbtrans2set.c - 664 sys sys 1155362132 2510
+1155362407 7 c sys/src/cmd/test.c - 664 sys sys 1155362259 5606
+1155362407 8 c sys/src/libdraw/subfontname.c - 664 sys sys 1155362344 813
+1155362407 9 c sys/src/libhtml/build.c - 664 sys sys 1155362319 94787
+1155364206 0 c sys/lib/plumb/basic - 664 sys sys 1155363394 2879
+1155364206 1 c sys/man/1/rio - 664 sys sys 1155362586 14707
+1155364206 2 c sys/man/8/fossilcons - 664 sys sys 1155362671 18291
+1155364206 3 c sys/src/9/pc/vgamga4xx.c - 664 sys sys 1155364221 9879
+1155364206 4 c sys/src/cmd/aux/vga/mga4xx.c - 664 sys sys 1155364222 36908
+1155364206 5 c sys/src/cmd/hoc/hoc.y - 664 sys sys 1155364037 9666
+1155364206 6 c sys/src/cmd/webfs/buf.c - 664 sys sys 1155362544 1199
+1155364206 7 c sys/src/cmd/webfs/http.c - 664 sys sys 1155363881 9305
+1155364206 8 c sys/src/cmd/replica/applychanges.c - 664 sys sys 1155363028 6122
+1155364206 9 c sys/src/libc/port/needsrcquote.c - 664 sys sys 1155363805 152
+1155364206 10 d rc/bin/patch/email - 775 sys sys 1109511607 0

+ 0 - 0
rc/bin/ape/printf


+ 2 - 2
rc/bin/man

@@ -34,9 +34,9 @@ fn roff {
 		case 2
 			{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | troff $Nflag -$MAN
 		case 3
-			{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | troff $Nflag -$MAN
+			{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | troff $Nflag -$MAN
 		case *
-			{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | | $preproc(4) | troff $Nflag -$MAN
+			{echo -n $FONTS; cat $2< /dev/null} | $preproc(1) | $preproc(2) | $preproc(3) | $preproc(4) | troff $Nflag -$MAN
 	}
 }
 

+ 0 - 27
rc/bin/patch/email

@@ -1,27 +0,0 @@
-#!/bin/rc
-
-rfork e
-if(! ~ $#* 2){
-	echo 'usage: patch/email name email-address' >[1=2]
-	exit usage
-}
-
-if(! test -d /n/sources/patch){
-	rfork n
-	9fs sources
-}
-
-if(! test -d /n/sources/patch/$1){
-	echo 'no such patch' /n/sources/patch/$1 >[1=2]
-	exit nopatch
-}
-
-cd /n/sources/patch/$1 || exit nopatch
-if(! patch/okay .){
-	echo 'bad patch: '$status >[1=2]
-	exit badpatch
-}
-
->email
-chmod 660 email
-echo $2 >email

+ 2 - 2
sys/lib/plumb/basic

@@ -10,7 +10,7 @@ plumb to showmail
 # cheap http/gif,jpeg,ps,pdf renderer
 type is text
 data matches '(https?|ftp|file|gopher|mailto|news|nntp|telnet|wais|prospero)://[a-zA-Z0-9_@\-]+([.:][a-zA-Z0-9_@\-]+)*/?[a-zA-Z0-9_?.,%#~&/\-+=]+([:.][a-zA-Z0-9_?,%#~&/\-+=]+)*\.(jpe?g|JPE?G|gif|GIF|ps|PS|pdf|PDF|png|PNG)'
-plumb start rc -c 'hget '$0' | page -w'
+plumb start rc -c 'hget '''$0''' | page -w'
 
 # rtf files go to wdoc2txt
 type is text
@@ -86,7 +86,7 @@ plumb	start	window -r 4 120 750 600 upas/nedmail -s $0
 # man index entries are synthesized
 type is text
 data matches '([a-zA-Z¡-￿0-9_\-./]+)\(([1-8])\)'
-plumb start rc -c 'man -S -b '$2' '$1'
+plumb start rc -c 'man -b '$2' '$1'
 
 # start rule for images without known suffixes
 dst is image

+ 1 - 1
sys/man/1/rio

@@ -384,7 +384,7 @@ for the preceding string (see
 .PP
 Typing a left or right arrow moves the cursor one character in that direction.
 Typing an SOH character (control-A) moves the cursor to the beginning of the
-current line; an ENQ character (control-F) moves to the end.
+current line; an ENQ character (control-E) moves to the end.
 .PP
 Text may be moved vertically within the window.
 A scroll bar on the left of the window shows in its clear portion what fragment of the

+ 3 - 2
sys/man/2/atof

@@ -139,8 +139,9 @@ will be updated.
 These routines set
 .IR errstr .
 .SH BUGS
-.I Atoi
+.I Atoi,
+.I atol,
 and
-.I atol
+.I atoll
 accept octal and hexadecimal numbers in the style of C,
 contrary to the ANSI specification.

+ 5 - 1
sys/man/8/fossilcons

@@ -73,10 +73,14 @@ con /srv/fscons
 .PP
 .B users
 [
-.B -dw
+.B -d
 |
+.B -r
 .I file
 ]
+[
+.B -w
+]
 .PP
 .B who
 .sp

+ 5 - 0
sys/src/9/pc/sdata.c

@@ -1966,6 +1966,8 @@ atapnp(void)
 		case (0x00E5<<16)|0x10DE:	/* nVidia nForce3 Pro */
 		case (0x0035<<16)|0x10DE:	/* nVidia nForce3 MCP */
 		case (0x0053<<16)|0x10DE:	/* nVidia nForce4 */
+		case (0x0054<<16)|0x10DE:	/* nVidia nForce4 SATA */
+		case (0x0055<<16)|0x10DE:	/* nVidia nForce4 SATA */
 			/*
 			 * Ditto, although it may have a different base
 			 * address for the registers (0x50?).
@@ -1986,6 +1988,9 @@ atapnp(void)
 			}
 			span = 32*1024;
 			break;
+		case (0x5229<<16)|0x10B9:	/* ALi M1543 */
+		case (0x5288<<16)|0x10B9:	/* ALi M5288 SATA */
+			/*FALLTHROUGH*/
 		case (0x5513<<16)|0x1039:	/* SiS 962 */
 		case (0x0646<<16)|0x1095:	/* CMD 646 */
 		case (0x0571<<16)|0x1106:	/* VIA 82C686 */

+ 13 - 5
sys/src/9/pc/vgamga4xx.c

@@ -2,6 +2,10 @@
 /*
  * Matrox G200, G400 and G450.
  * Written by Philippe Anel <xigh@free.fr>
+ *
+ *  2006-08-07 : Minor fix to allow the G200 cards to work fine. YDSTORG is now initialized.
+ *             : Also support for 16 and 24 bit modes is added.
+ *             : by Leonardo Valencia <leoval@anixcorp.com>
  */
 
 #include "u.h"
@@ -43,6 +47,7 @@ enum {
  	SRCORG			= 0x2cb4,
 	PITCH			= 0x1c8c,
 	DSTORG			= 0x2cb8,
+	YDSTORG			= 0x1c94,
 	PLNWRT			= 0x1c1c,
 	ZORG			= 0x1c0c,
 	MACCESS			= 0x1c04,
@@ -465,18 +470,15 @@ static void
 mga4xxdrawinit(VGAscr *scr)
 {
 	uchar *mga;
- 	Pcidev *p;
-
-	p = mgapcimatch();
-	if(p->did == MGA200)
-		return;
 
 	if(scr->mmio == 0)
 		return;
+
 	mga = (uchar*)scr->mmio;
 
 	mgawrite32(mga, SRCORG, 0);
 	mgawrite32(mga, DSTORG, 0);
+	mgawrite32(mga, YDSTORG, 0);
 	mgawrite32(mga, ZORG, 0);
 	mgawrite32(mga, PLNWRT, ~0);
 	mgawrite32(mga, FCOL, 0xffff0000);
@@ -488,6 +490,12 @@ mga4xxdrawinit(VGAscr *scr)
 	case 8:
 		mgawrite32(mga, MACCESS, 0);
 		break;
+	case 16:
+		mgawrite32(mga, MACCESS, 1);
+		break;
+	case 24:
+		mgawrite32(mga, MACCESS, 3);
+		break;
 	case 32:
 		mgawrite32(mga, MACCESS, 2);
 		break;

+ 1 - 1
sys/src/boot/pc/devsd.c

@@ -247,7 +247,7 @@ _sdinit(void)
 		else
 			sdlist = sdev;
 		for(tail = sdev; tail->next != nil; tail = tail->next){
-			sdev->index = sdnunit;
+			tail->index = sdnunit;
 			sdnunit += tail->nunit;
 		}
 		tail->index = sdnunit;

+ 8 - 0
sys/src/boot/pc/sdata.c

@@ -1506,7 +1506,15 @@ atapnp(void)
 			 * This can probably be lumped in with the 768 above.
 			 */
 			/*FALLTHROUGH*/
+		case (0x01BC<<16)|0x10DE:	/* nVidia nForce1 */
+		case (0x0065<<16)|0x10DE:	/* nVidia nForce2 */
+		case (0x0085<<16)|0x10DE:	/* nVidia nForce2 MCP */
 		case (0x00D5<<16)|0x10DE:	/* nVidia nForce3 */
+		case (0x00E5<<16)|0x10DE:	/* nVidia nForce3 Pro */
+		case (0x0035<<16)|0x10DE:	/* nVidia nForce3 MCP */
+		case (0x0053<<16)|0x10DE:	/* nVidia nForce4 */
+		case (0x0054<<16)|0x10DE:	/* nVidia nForce4 SATA */
+		case (0x0055<<16)|0x10DE:	/* nVidia nForce4 SATA */
 			/*
 			 * Ditto, although it may have a different base
 			 * address for the registers (0x50?).

+ 2 - 0
sys/src/cmd/aquarela/smbtrans2set.c

@@ -85,6 +85,8 @@ smbtrans2setfileinformation(SmbSession *s, SmbHeader *h)
 		if (s->transaction.in.tdcount < 1)
 			goto misc;
 		f->sf->deleteonclose = *s->transaction.in.data;
+		if (!smbbufferputs(s->transaction.out.parameters, 0))
+			goto misc;
 		pr = SmbProcessResultReply;
 		break;
 

+ 44 - 7
sys/src/cmd/aux/vga/mga4xx.c

@@ -9,6 +9,9 @@
 	- 2001-09-06 : Added Full 2D Accel ! (see drivers in /sys/src/9/pc)
 	- 2001-10-01 : Rid Fix.
 	- 2006-04-01 : Add MGA550 support.
+	- 2006-08-07 : Add support for 16 and 24bits modes.
+				HW accel now works for the G200 cards too (see kernel).
+				by Leonardo Valencia <leoval@anixcorp.com>
 
      Greets and Acknowledgements go to :
      	- Sylvain Chipaux <a.k.a. asle>.
@@ -454,7 +457,7 @@ setpalettedepth(int depth)
 	fd = open("#v/vgactl", OWRITE);
 	if(fd < 0)
 		error("mga: can't open vgactl\n");
-	
+
 	cmd[13] = '0' + depth;
 	if(write(fd, cmd, 14) != 14)
 		error("mga: can't set palette depth to %d\n", depth);
@@ -1067,6 +1070,7 @@ init(Vga* vga, Ctlr* ctlr)
 	Ctlr*	c;
 	int	i;
 	ulong	t;
+	int     bppShift;
 
 	mga = vga->private;
 	mode = vga->mode;
@@ -1075,8 +1079,27 @@ init(Vga* vga, Ctlr* ctlr)
 
 	ctlr->flag |= Ulinear;
 
-	if ((mode->z != 32) && (mode->z != 8))
+	/*
+	 * Set the right bppShitf based on depth
+	 */
+
+	switch(mode->z) {
+	case 8: 
+		bppShift = 0;
+		break;
+	case 16:
+		bppShift = 1;
+		break;
+	case 24:
+		bppShift = 0;
+		break;
+	case 32:
+		bppShift = 2;
+		break;
+	default:
+		bppShift = 0;
 		error("depth %d not supported !\n", mode->z);
+	}
 
 	if (mode->interlace)
 		error("interlaced mode not supported !\n");
@@ -1138,7 +1161,7 @@ init(Vga* vga, Ctlr* ctlr)
 	mga->linecomp =		mode->y;
 	mga->hsyncsel = 		0;					/* Do not double lines ... */
 	mga->startadd =		0;
-	mga->offset =			(vga->virtx * mode->z) / 128;
+	mga->offset =		(mode->z==24) ? (vga->virtx * 3) >> (4 - bppShift) : vga->virtx >> (4-bppShift);
 	/* No Zoom */
 	mga->maxscan = 		0;
 	/* Not used in Power Graphic mode */
@@ -1176,9 +1199,9 @@ init(Vga* vga, Ctlr* ctlr)
 	mga->crtcrstN =		1;
 
 	mga->mgamode = 		1;
-	mga->scale =			(mode->z == 8) ? 0 : 3;	/* 8 or 32 bits mode */
+	mga->scale   =		(mode->z == 24) ? ((1 << bppShift)*3)-1 : (1 << bppShift)-1;
 	
-	mga->crtcprotect =		1;
+	mga->crtcprotect =      1;
 	mga->winsize = 		0;
 	mga->winfreq = 		0;
 
@@ -1523,6 +1546,12 @@ load(Vga* vga, Ctlr* ctlr)
 	case 8:
 		dacset(mga, Dac_Xmulctrl, _8bitsPerPixel, ColorDepth);	
 		break;
+	case 16:
+		dacset(mga, Dac_Xmulctrl, _16bitsPerPixel, ColorDepth);	
+		break;
+	case 24:
+		dacset(mga, Dac_Xmulctrl, _24bitsPerPixel, ColorDepth);	
+		break;
 	case 32:
 		dacset(mga, Dac_Xmulctrl, _32bitsPerPixel, ColorDepth);
 		break;
@@ -1569,11 +1598,12 @@ load(Vga* vga, Ctlr* ctlr)
 	trace("mga: crtcext MgaMode loaded !\n");
 	if (ultradebug) Bflush(&stdout);
 
-	if (mode->z == 32) {
+	if (mode->z == 32 || mode->z == 24 ) {
 		/* Initialize Big Endian Mode ! */
 		mgawrite32(mga, 0x1e54, 0x02 << 16);
 	}
 
+
 	/* Set final misc ... enable mapping ... */
 	miscset(mga, mga->misc | Misc_rammapen, 0);
 
@@ -1597,7 +1627,13 @@ load(Vga* vga, Ctlr* ctlr)
 
 	trace("mga: Loaded [bis]!\n" );
 
-	if (mode->z != 8) {
+	/*
+	 * TODO: In 16bpp mode, what is the correct palette ?
+	 *       in the meantime lets use the default one,
+	 *       which has a weird color combination.
+	 */
+
+	if (mode->z != 8 && mode ->z != 16) {
 		/* Initialize Palette */
 		mgawrite8(mga, RAMDACIDX, 0);
 		for (i = 0; i < 0x100; i++) {
@@ -1606,6 +1642,7 @@ load(Vga* vga, Ctlr* ctlr)
 			mgawrite8(mga, RAMDACPALDATA, i);
 		}
 	}
+      
 	trace("mga: Palette initialised !\n");
 
 	/* Enable Cursor */

+ 2 - 2
sys/src/cmd/hoc/hoc.y

@@ -180,7 +180,7 @@ yylex(void)		/* hoc6 */
 		yylval.sym = install("", NUMBER, d);
 		return NUMBER;
 	}
-	if (isalpha(c) || c == '_') {
+	if (isalpha(c) || c == '_' || c >= 0x80) {
 		Symbol *s;
 		char sbuf[100], *p = sbuf;
 		do {
@@ -189,7 +189,7 @@ yylex(void)		/* hoc6 */
 				execerror("name too long", sbuf);
 			}
 			*p++ = c;
-		} while ((c=Bgetc(bin)) >= 0 && (isalnum(c) || c == '_'));
+		} while ((c=Bgetc(bin)) >= 0 && (isalnum(c) || c == '_' || c >= 0x80));
 		Bungetc(bin);
 		*p = '\0';
 		if ((s=lookup(sbuf)) == 0)

+ 1 - 1
sys/src/cmd/replica/applychanges.c

@@ -140,7 +140,7 @@ walk(char *new, char *old, Dir *pd, void*)
 void
 usage(void)
 {
-	fprint(2, "usage: replica/applychanges [-p proto] [-r root] [-t now n] [-u uid] [-x path]... clientdb [path ...]\n");
+	fprint(2, "usage: replica/applychanges [-nuv] [-p proto] [-x path]... clientdb clientroot serverroot [path ...]\n");
 	exits("usage");
 }
 

+ 12 - 4
sys/src/cmd/test.c

@@ -30,10 +30,13 @@ int	isnewerthan(char *, char *);
 int	hasmode(char *, ulong);
 int	tio(char *, int);
 int	e(void), e1(void), e2(void), e3(void);
+char *nxtarg(int);
 
 void
 main(int argc, char *argv[])
 {
+	int r;
+	char *c;
 
 	ac = argc; av = argv; ap = 1;
 	if(EQ(argv[0],"[")) {
@@ -42,7 +45,10 @@ main(int argc, char *argv[])
 	}
 	argv[ac] = 0;
 	if (ac<=1) exits("usage");
-	exits(e()?0:"false");
+	r = e();
+	if(c = nxtarg(1))
+		synbad("unexpected operator/operand: ", c);
+	exits(r?0:"false");
 }
 
 char *
@@ -153,10 +159,12 @@ e3(void) {
 		return(fsizep(nxtarg(0)));
 
 	if(EQ(a, "-t"))
-		if(ap>=ac || !nxtintarg(&int1))
+		if(ap>=ac)
 			return(isatty(1));
-		else
+		else if(nxtintarg(&int1))
 			return(isatty(int1));
+		else
+			synbad("not a valid file descriptor number ", "");
 
 	if(EQ(a, "-n"))
 		return(!EQ(nxtarg(0), ""));
@@ -182,7 +190,7 @@ e3(void) {
 		return(isnewerthan(nxtarg(0), a));
 
 	if(!isint(a, &int1))
-		return(!EQ(a,""));
+		synbad("unexpected operator/operand: ", p2);
 
 	if(nxtintarg(&int2)){
 		if(EQ(p2, "-eq"))

+ 1 - 1
sys/src/cmd/webfs/buf.c

@@ -30,7 +30,7 @@ readibuf(Ibuf *b, char *buf, int len)
 		b->rp += n;
 		return n;
 	}
-	return ioread(b->io, b->fd, buf, len);
+	return ioreadn(b->io, b->fd, buf, len);
 }
 
 void

+ 7 - 21
sys/src/cmd/webfs/http.c

@@ -11,7 +11,7 @@
 #include "dat.h"
 #include "fns.h"
 
-char PostContentType[] = "application/octet-stream";
+char PostContentType[] = "application/x-www-form-urlencoded";
 int httpdebug;
 
 typedef struct HttpState HttpState;
@@ -446,29 +446,15 @@ httpopen(Client *c, Url *url)
 int
 httpread(Client *c, Req *r)
 {
-	char *dst;
 	HttpState *hs;
-	int n;
-	long rlen, tot, len;
+	long n;
 
 	hs = c->aux;
-	dst = r->ofcall.data;
-	len = r->ifcall.count;
-	tot = 0;
-	while (tot < len){
-		rlen = len - tot;
-		n = readibuf(&hs->b, dst + tot, rlen);
-		if(n == 0)
-			break;
-		else if(n < 0){
-			if(tot == 0)
-				return -1;
-			else
-				return tot;
-		}
-		tot += n;
-	}
-	r->ofcall.count = tot;
+	n = readibuf(&hs->b, r->ofcall.data, r->ifcall.count);
+	if(n < 0)
+		return -1;
+
+	r->ofcall.count = n;
 	return 0;
 }
 

+ 1 - 1
sys/src/libc/port/needsrcquote.c

@@ -6,7 +6,7 @@ needsrcquote(int c)
 {
 	if(c <= ' ')
 		return 1;
-	if(strchr("`^#*[]=|\\?${}()'<>&;", c))
+	if(utfrune("`^#*[]=|\\?${}()'<>&;", c))
 		return 1;
 	return 0;
 }

+ 2 - 0
sys/src/libdraw/subfontname.c

@@ -40,11 +40,13 @@ subfontname(char *cfname, char *fname, int maxdepth)
 			free(t);
 			return tmp2;
 		}
+		free(tmp2);
 	}
 
 	/* try default */
 	if(access(t, AREAD) == 0)
 		return t;
 
+	free(t);
 	return nil;
 }

+ 3 - 0
sys/src/libhtml/build.c

@@ -1800,6 +1800,7 @@ getitems(ItemSource* is, uchar* data, int datalen)
 	}
 	outerps = lastps(ps);
 	ans = outerps->items->next;
+	freeitem(outerps->items);
 	// note: ans may be nil and di->kids not nil, if there's a frameset!
 	outerps->items = newispacer(ISPnull);
 	outerps->lastit = outerps->items;
@@ -2563,6 +2564,8 @@ finish_table(Table* t)
 			}
 		}
 	}
+	free(rowspancnt);
+	free(rowspancell);
 }
 
 // Remove tail of cell content until it isn't whitespace.