Browse Source

Plan 9 from Bell Labs 2006-12-23

David du Colombier 14 years ago
parent
commit
b6c322eb6b

+ 57 - 53
dist/replica/_plan9.db

@@ -119,7 +119,7 @@
 386/bin/aux/mnihongo - 775 sys sys 1155491744 140114
 386/bin/aux/mouse - 775 sys sys 1148500597 44061
 386/bin/aux/ms2 - 775 sys sys 1148500597 87467
-386/bin/aux/msexceltables - 775 sys sys 1148500598 81689
+386/bin/aux/msexceltables - 775 sys sys 1166819912 83015
 386/bin/aux/mswordstrings - 775 sys sys 1148500598 65635
 386/bin/aux/na - 775 sys sys 1148500598 154517
 386/bin/aux/nfsmount - 775 sys sys 1148500599 234785
@@ -150,7 +150,7 @@
 386/bin/aux/trampoline - 775 sys sys 1148500604 84239
 386/bin/aux/typepasswd - 775 sys sys 1148500604 69832
 386/bin/aux/usage - 775 sys sys 1148500605 59903
-386/bin/aux/vga - 775 sys sys 1158607307 336305
+386/bin/aux/vga - 775 sys sys 1166819912 336336
 386/bin/aux/vmmousepoll - 775 sys sys 1032480572 41434
 386/bin/aux/vmware - 775 sys sys 1049428256 453
 386/bin/aux/vmwarefs - 775 sys sys 1095563640 99117
@@ -225,11 +225,11 @@
 386/bin/eqn - 775 sys sys 1141927235 244405
 386/bin/execnet - 775 sys sys 1160622239 178310
 386/bin/exportfs - 775 sys sys 1164140642 162644
-386/bin/ext2srv - 775 sys sys 1160622240 180000
+386/bin/ext2srv - 775 sys sys 1166819913 179987
 386/bin/faces - 775 sys sys 1155491750 194710
 386/bin/factor - 775 sys sys 1148500632 61793
 386/bin/fcp - 775 sys sys 1148500632 82527
-386/bin/file - 775 sys sys 1159471186 125085
+386/bin/file - 775 sys sys 1166819913 125077
 386/bin/fmt - 775 sys sys 1148500633 65661
 386/bin/fortune - 775 sys sys 1148500633 67450
 386/bin/fossil - 20000000775 sys sys 1042005470 0
@@ -275,7 +275,7 @@
 386/bin/history - 775 sys sys 1148500644 75799
 386/bin/hoc - 775 sys sys 1155491751 100190
 386/bin/html2ms - 775 sys sys 1148500645 66415
-386/bin/htmlfmt - 775 sys sys 1157916202 163475
+386/bin/htmlfmt - 775 sys sys 1166819914 163570
 386/bin/htmlroff - 775 sys sys 1157138536 148544
 386/bin/ico - 775 sys sys 1155491752 162226
 386/bin/iconv - 775 sys sys 1150062738 113723
@@ -301,8 +301,8 @@
 386/bin/ip/httpd/wikipost - 775 sys sys 1148500658 115002
 386/bin/ip/httpfile - 775 sys sys 1162241041 284361
 386/bin/ip/imap4d - 775 sys sys 1156976707 238121
-386/bin/ip/ipconfig - 775 sys sys 1162241042 139478
-386/bin/ip/ping - 775 sys sys 1148500661 76814
+386/bin/ip/ipconfig - 775 sys sys 1166819915 139604
+386/bin/ip/ping - 775 sys sys 1166819915 76819
 386/bin/ip/ppp - 775 sys sys 1162241042 220477
 386/bin/ip/pppoe - 775 sys sys 1148500662 77881
 386/bin/ip/pptp - 775 sys sys 1148500663 127269
@@ -339,10 +339,10 @@
 386/bin/ndb - 20000000775 sys sys 985743147 0
 386/bin/ndb/cs - 775 sys sys 1163208707 150959
 386/bin/ndb/csquery - 775 sys sys 1148500674 61796
-386/bin/ndb/dns - 775 sys sys 1162241045 247347
-386/bin/ndb/dnsdebug - 775 sys sys 1162241046 221826
+386/bin/ndb/dns - 775 sys sys 1166819916 247355
+386/bin/ndb/dnsdebug - 775 sys sys 1166819916 221834
 386/bin/ndb/dnsquery - 775 sys sys 1148500676 63964
-386/bin/ndb/dnstcp - 775 sys sys 1162241047 220794
+386/bin/ndb/dnstcp - 775 sys sys 1166819917 220802
 386/bin/ndb/ipquery - 775 sys sys 1157916209 97048
 386/bin/ndb/mkdb - 775 sys sys 1148500677 64305
 386/bin/ndb/mkhash - 775 sys sys 1148500677 84874
@@ -556,7 +556,7 @@
 386/lib/libflate.a - 664 sys sys 1143777862 76726
 386/lib/libframe.a - 664 sys sys 1147712341 66398
 386/lib/libgeometry.a - 664 sys sys 1143777862 50470
-386/lib/libhtml.a - 664 sys sys 1157916211 229650
+386/lib/libhtml.a - 664 sys sys 1166819918 229152
 386/lib/libhttpd.a - 664 sys sys 1153069071 99458
 386/lib/libip.a - 664 sys sys 1162241052 35552
 386/lib/libl.a - 664 sys sys 1143777863 5372
@@ -7297,7 +7297,7 @@ sys/man/1/dd - 664 sys sys 1055693436 3346
 sys/man/1/delkey - 664 sys sys 1128483118 779
 sys/man/1/deroff - 664 sys sys 1113743324 1826
 sys/man/1/diff - 664 sys sys 1140694865 3089
-sys/man/1/doc2txt - 664 sys sys 1150036613 1850
+sys/man/1/doc2txt - 664 sys sys 1166761437 2304
 sys/man/1/doctype - 664 sys sys 1113743325 860
 sys/man/1/du - 664 sys sys 1134556965 1358
 sys/man/1/echo - 664 sys sys 1079969656 430
@@ -7325,7 +7325,7 @@ sys/man/1/hoc - 664 sys sys 1136378274 2357
 sys/man/1/htmlroff - 664 sys sys 1138396051 1831
 sys/man/1/idiff - 664 sys sys 1113743324 914
 sys/man/1/join - 664 sys sys 1113743324 2561
-sys/man/1/jpg - 664 sys sys 1145882310 4843
+sys/man/1/jpg - 664 sys sys 1166760721 4841
 sys/man/1/kbmap - 664 sys sys 1159419894 846
 sys/man/1/kill - 664 sys sys 1018369246 1193
 sys/man/1/ktrace - 664 sys sys 957920006 1330
@@ -9190,7 +9190,7 @@ sys/src/cmd/5i/mkfile - 664 sys sys 1124229121 265
 sys/src/cmd/5i/run.c - 664 sys sys 1014924773 18578
 sys/src/cmd/5i/stats.c - 664 sys sys 1067739537 3943
 sys/src/cmd/5i/symbols.c - 664 sys sys 1121977746 1724
-sys/src/cmd/5i/syscall.c - 664 sys sys 1124229122 13686
+sys/src/cmd/5i/syscall.c - 664 sys sys 1166822289 13691
 sys/src/cmd/5l - 20000000775 sys sys 1045503939 0
 sys/src/cmd/5l/asm.c - 664 sys sys 1089299173 32633
 sys/src/cmd/5l/compat.c - 664 sys sys 946759353 465
@@ -9339,7 +9339,7 @@ sys/src/cmd/acme/exec.c - 664 sys sys 1136064450 28267
 sys/src/cmd/acme/file.c - 664 sys sys 1044626079 5717
 sys/src/cmd/acme/fns.h - 664 sys sys 1107154481 2916
 sys/src/cmd/acme/fsys.c - 664 sys sys 1111171699 13097
-sys/src/cmd/acme/look.c - 664 sys sys 1111381048 14210
+sys/src/cmd/acme/look.c - 664 sys sys 1166822365 14203
 sys/src/cmd/acme/mkfile - 664 sys sys 1058463682 543
 sys/src/cmd/acme/regx.c - 664 sys sys 1014926094 16057
 sys/src/cmd/acme/rows.c - 664 sys sys 1103565437 14702
@@ -9681,7 +9681,7 @@ sys/src/cmd/aux/mnihongo/mnihongo.c - 664 sys sys 946759402 6406
 sys/src/cmd/aux/mnihongo/tmac.nihongo - 664 sys sys 944960789 22
 sys/src/cmd/aux/mouse.c - 664 sys sys 1063855425 7049
 sys/src/cmd/aux/ms2.c - 664 sys sys 1124305056 3153
-sys/src/cmd/aux/msexceltables.c - 664 sys sys 1143759349 14023
+sys/src/cmd/aux/msexceltables.c - 664 sys sys 1166761436 14597
 sys/src/cmd/aux/mswordstrings.c - 664 sys sys 952201344 5767
 sys/src/cmd/aux/na - 20000000775 sys sys 1039727550 0
 sys/src/cmd/aux/na/mkfile - 664 sys sys 955036627 121
@@ -9734,7 +9734,7 @@ sys/src/cmd/aux/vga/mga4xx.c - 664 sys sys 1158594482 36898
 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
-sys/src/cmd/aux/vga/nvidia.c - 664 sys sys 1158594482 33114
+sys/src/cmd/aux/vga/nvidia.c - 664 sys sys 1166796095 33178
 sys/src/cmd/aux/vga/palette.c - 664 sys sys 1014925010 2201
 sys/src/cmd/aux/vga/pci.c - 664 sys sys 1014925011 8659
 sys/src/cmd/aux/vga/pci.h - 664 sys sys 1014925011 3290
@@ -9916,7 +9916,7 @@ sys/src/cmd/cpp/cpp.h - 664 sys sys 1144691586 4707
 sys/src/cmd/cpp/eval.c - 664 sys sys 1014925275 9892
 sys/src/cmd/cpp/hideset.c - 664 sys sys 944960879 1936
 sys/src/cmd/cpp/include.c - 664 sys sys 959299274 2845
-sys/src/cmd/cpp/lex.c - 664 sys sys 1143759347 13584
+sys/src/cmd/cpp/lex.c - 664 sys sys 1166823021 13582
 sys/src/cmd/cpp/macro.c - 664 sys sys 1144691586 11287
 sys/src/cmd/cpp/mkfile - 664 sys sys 944960879 178
 sys/src/cmd/cpp/nlist.c - 664 sys sys 1116770041 4645
@@ -9926,11 +9926,11 @@ sys/src/cmd/cpu.c - 664 sys sys 1164133664 21154
 sys/src/cmd/crop.c - 664 sys sys 1134557476 4137
 sys/src/cmd/date.c - 664 sys sys 944961351 449
 sys/src/cmd/db - 20000000775 sys sys 1046363143 0
-sys/src/cmd/db/command.c - 664 sys sys 1131297926 4377
-sys/src/cmd/db/defs.h - 664 sys sys 1131292957 1700
+sys/src/cmd/db/command.c - 664 sys sys 1166823791 4376
+sys/src/cmd/db/defs.h - 664 sys sys 1166823791 1699
 sys/src/cmd/db/expr.c - 664 sys sys 1131292957 5441
-sys/src/cmd/db/fns.h - 664 sys sys 1131297926 2014
-sys/src/cmd/db/format.c - 664 sys sys 1134305455 6878
+sys/src/cmd/db/fns.h - 664 sys sys 1166823791 2013
+sys/src/cmd/db/format.c - 664 sys sys 1166823791 6877
 sys/src/cmd/db/input.c - 664 sys sys 1016731556 2194
 sys/src/cmd/db/main.c - 664 sys sys 1016731556 3308
 sys/src/cmd/db/mkfile - 664 sys sys 944960880 233
@@ -10042,7 +10042,7 @@ sys/src/cmd/disk/kfs/sub.c - 664 sys sys 1022008488 10804
 sys/src/cmd/disk/kfs/uid.c - 664 sys sys 1143759347 6779
 sys/src/cmd/disk/kfscmd.c - 664 sys sys 1015009135 1109
 sys/src/cmd/disk/mbr.c - 664 sys sys 1080218150 4325
-sys/src/cmd/disk/mkext.c - 664 sys sys 1107957513 5806
+sys/src/cmd/disk/mkext.c - 664 sys sys 1166823931 5805
 sys/src/cmd/disk/mkfile - 664 sys sys 1022385851 500
 sys/src/cmd/disk/mkfs.c - 664 sys sys 1108000852 14697
 sys/src/cmd/disk/prep - 20000000775 sys sys 1055692957 0
@@ -10128,7 +10128,7 @@ sys/src/cmd/ext2srv/dat.h - 664 sys sys 1055687746 5275
 sys/src/cmd/ext2srv/errstr.h - 664 sys sys 1055687747 565
 sys/src/cmd/ext2srv/ext2fs.c - 664 sys sys 1055687747 6063
 sys/src/cmd/ext2srv/ext2srv.man - 664 sys sys 1055687747 2409
-sys/src/cmd/ext2srv/ext2subs.c - 664 sys sys 1143759346 38666
+sys/src/cmd/ext2srv/ext2subs.c - 664 sys sys 1166798475 38655
 sys/src/cmd/ext2srv/fns.h - 664 sys sys 1055687748 1803
 sys/src/cmd/ext2srv/iobuf.c - 664 sys sys 1143670611 2864
 sys/src/cmd/ext2srv/mkfile - 664 sys sys 1055687748 194
@@ -10159,7 +10159,7 @@ sys/src/cmd/fax/receiverc - 775 sys sys 944960990 581
 sys/src/cmd/fax/send.c - 664 sys sys 944960990 923
 sys/src/cmd/fax/subr.c - 664 sys sys 1015090401 1245
 sys/src/cmd/fcp.c - 664 sys sys 1136651872 3799
-sys/src/cmd/file.c - 664 sys sys 1159419571 28106
+sys/src/cmd/file.c - 664 sys sys 1166761867 28088
 sys/src/cmd/fmt.c - 664 sys sys 1137603598 4078
 sys/src/cmd/fortune.c - 664 sys sys 1072729222 1779
 sys/src/cmd/fossil - 20000000775 sys sys 1087005595 0
@@ -12310,7 +12310,7 @@ sys/src/cmd/iostats - 20000000775 sys sys 1055699098 0
 sys/src/cmd/iostats/iostats.c - 664 sys sys 1140099908 10209
 sys/src/cmd/iostats/mkfile - 664 sys sys 1014925727 122
 sys/src/cmd/iostats/statfs.h - 664 sys sys 1140099908 2626
-sys/src/cmd/iostats/statsrv.c - 664 sys sys 1135487954 10770
+sys/src/cmd/iostats/statsrv.c - 664 sys sys 1166824341 10773
 sys/src/cmd/ip - 20000000775 sys sys 1128605981 0
 sys/src/cmd/ip/arp.h - 664 sys sys 944961005 751
 sys/src/cmd/ip/dhcp.h - 664 sys sys 1051206271 3368
@@ -12335,7 +12335,7 @@ sys/src/cmd/ip/ftpfs/mkfile - 664 sys sys 1048312050 173
 sys/src/cmd/ip/ftpfs/proto.c - 664 sys sys 1124935667 30337
 sys/src/cmd/ip/glob.c - 664 sys sys 1101155057 3290
 sys/src/cmd/ip/glob.h - 664 sys sys 1101155058 308
-sys/src/cmd/ip/gping.c - 664 sys sys 1015013112 20476
+sys/src/cmd/ip/gping.c - 664 sys sys 1166824873 20476
 sys/src/cmd/ip/hogports.c - 664 sys sys 1118623129 989
 sys/src/cmd/ip/httpd - 20000000775 sys sys 1083771060 0
 sys/src/cmd/ip/httpd/anonymous.c - 664 sys sys 984773807 195
@@ -12380,10 +12380,10 @@ sys/src/cmd/ip/imap4d/nodes.c - 664 sys sys 1015013077 3173
 sys/src/cmd/ip/imap4d/search.c - 664 sys sys 1015013077 4520
 sys/src/cmd/ip/imap4d/store.c - 664 sys sys 1066317059 1910
 sys/src/cmd/ip/imap4d/utils.c - 664 sys sys 1015013077 2481
-sys/src/cmd/ip/ipconfig.c - 664 sys sys 1161484510 34927
+sys/src/cmd/ip/ipconfig.c - 664 sys sys 1166761782 35168
 sys/src/cmd/ip/measure.c - 664 sys sys 944961011 3733
 sys/src/cmd/ip/mkfile - 664 sys sys 1131110598 1243
-sys/src/cmd/ip/ping.c - 664 sys sys 1139667147 5708
+sys/src/cmd/ip/ping.c - 664 sys sys 1166760556 5721
 sys/src/cmd/ip/ppp - 20000000775 sys sys 1065963823 0
 sys/src/cmd/ip/ppp/block.c - 664 sys sys 1015090266 5353
 sys/src/cmd/ip/ppp/compress.c - 664 sys sys 1072729513 11774
@@ -12467,7 +12467,7 @@ sys/src/cmd/jpg/multichan.c - 664 sys sys 1039753047 825
 sys/src/cmd/jpg/onechan.c - 664 sys sys 1039753044 3732
 sys/src/cmd/jpg/png.c - 664 sys sys 1108939730 4834
 sys/src/cmd/jpg/ppm.c - 664 sys sys 1108852826 4204
-sys/src/cmd/jpg/readbmp.c - 664 sys sys 1105455271 13691
+sys/src/cmd/jpg/readbmp.c - 664 sys sys 1166825626 13711
 sys/src/cmd/jpg/readgif.c - 664 sys sys 1143220941 10472
 sys/src/cmd/jpg/readjpg.c - 664 sys sys 1032060302 33009
 sys/src/cmd/jpg/readpng.c - 664 sys sys 1108852825 10117
@@ -12521,7 +12521,7 @@ sys/src/cmd/ki/run.c - 664 sys sys 944961015 22231
 sys/src/cmd/ki/sparc.h - 664 sys sys 944961015 4419
 sys/src/cmd/ki/stats.c - 664 sys sys 1068859845 4536
 sys/src/cmd/ki/symbols.c - 664 sys sys 1121977746 1745
-sys/src/cmd/ki/syscall.c - 664 sys sys 1124229139 14075
+sys/src/cmd/ki/syscall.c - 664 sys sys 1166822290 14080
 sys/src/cmd/kl - 20000000775 sys sys 1045503970 0
 sys/src/cmd/kl/asm.c - 664 sys sys 1105798985 26122
 sys/src/cmd/kl/compat.c - 664 sys sys 947099591 465
@@ -12649,7 +12649,7 @@ sys/src/cmd/mkone - 664 sys sys 1123943673 910
 sys/src/cmd/mksyslib - 664 sys sys 1134390137 665
 sys/src/cmd/mntgen.c - 664 sys sys 1106410349 3630
 sys/src/cmd/mount.c - 664 sys sys 1138061862 1633
-sys/src/cmd/ms2html.c - 664 sys sys 1143695278 41022
+sys/src/cmd/ms2html.c - 664 sys sys 1166823350 41013
 sys/src/cmd/mtime.c - 664 sys sys 1036172302 450
 sys/src/cmd/mug.c - 664 sys sys 1157143847 24888
 sys/src/cmd/mv.c - 664 sys sys 1163029439 4682
@@ -12663,7 +12663,7 @@ sys/src/cmd/ndb/dblookup.c - 664 sys sys 1143759343 18249
 sys/src/cmd/ndb/dn.c - 664 sys sys 1144952605 28763
 sys/src/cmd/ndb/dnarea.c - 664 sys sys 1121977162 2128
 sys/src/cmd/ndb/dnnotify.c - 664 sys sys 1144952605 3066
-sys/src/cmd/ndb/dnresolve.c - 664 sys sys 1144952604 15346
+sys/src/cmd/ndb/dnresolve.c - 664 sys sys 1166760856 15351
 sys/src/cmd/ndb/dns.c - 664 sys sys 1147098969 15309
 sys/src/cmd/ndb/dns.h - 664 sys sys 1144969092 10171
 sys/src/cmd/ndb/dnsdebug.c - 664 sys sys 1144952604 8492
@@ -13007,13 +13007,13 @@ sys/src/cmd/postscript/tr2post/chartab.c - 664 sys sys 947802032 13688
 sys/src/cmd/postscript/tr2post/conv.c - 664 sys sys 944961072 2478
 sys/src/cmd/postscript/tr2post/devcntl.c - 664 sys sys 984789205 4701
 sys/src/cmd/postscript/tr2post/draw.c - 664 sys sys 984789205 10727
-sys/src/cmd/postscript/tr2post/mkfile - 664 sys sys 953344697 484
+sys/src/cmd/postscript/tr2post/mkfile - 664 sys sys 1166761556 524
 sys/src/cmd/postscript/tr2post/pictures.c - 664 sys sys 952627603 9641
 sys/src/cmd/postscript/tr2post/ps_include.c - 664 sys sys 944961072 6050
 sys/src/cmd/postscript/tr2post/ps_include.h - 664 sys sys 944961071 2136
 sys/src/cmd/postscript/tr2post/readDESC.c - 664 sys sys 944961072 3320
 sys/src/cmd/postscript/tr2post/shell.lib - 664 sys sys 944961071 22924
-sys/src/cmd/postscript/tr2post/tr2post.c - 664 sys sys 944961072 5320
+sys/src/cmd/postscript/tr2post/tr2post.c - 664 sys sys 1166761555 5371
 sys/src/cmd/postscript/tr2post/tr2post.h - 664 sys sys 984789206 2373
 sys/src/cmd/postscript/tr2post/utfmap - 664 sys sys 944961071 1172
 sys/src/cmd/postscript/tr2post/utils.c - 664 sys sys 944961072 7135
@@ -13070,7 +13070,7 @@ sys/src/cmd/qi/qi.c - 664 sys sys 1124229161 7867
 sys/src/cmd/qi/run.c - 664 sys sys 1076688569 4173
 sys/src/cmd/qi/stats.c - 664 sys sys 1076688569 4338
 sys/src/cmd/qi/symbols.c - 664 sys sys 1121978130 1742
-sys/src/cmd/qi/syscall.c - 664 sys sys 1124229161 14420
+sys/src/cmd/qi/syscall.c - 664 sys sys 1166822290 14425
 sys/src/cmd/qi/timing - 664 sys sys 1076688570 641
 sys/src/cmd/ql - 20000000775 sys sys 1055699284 0
 sys/src/cmd/ql/asm.c - 664 sys sys 1135487949 13021
@@ -13164,7 +13164,7 @@ sys/src/cmd/sam/cmd.c - 664 sys sys 1132448975 10774
 sys/src/cmd/sam/disk.c - 664 sys sys 1014926938 1988
 sys/src/cmd/sam/error.c - 664 sys sys 1108939612 2222
 sys/src/cmd/sam/errors.h - 664 sys sys 944961628 695
-sys/src/cmd/sam/file.c - 664 sys sys 1045505553 11030
+sys/src/cmd/sam/file.c - 664 sys sys 1166825726 11022
 sys/src/cmd/sam/io.c - 664 sys sys 1111181614 4688
 sys/src/cmd/sam/list.c - 664 sys sys 1133885097 1437
 sys/src/cmd/sam/mesg.c - 664 sys sys 1132448975 14291
@@ -13468,7 +13468,7 @@ sys/src/cmd/troff2html - 20000000775 sys sys 1105576338 0
 sys/src/cmd/troff2html/chars.h - 664 sys sys 1105584129 3957
 sys/src/cmd/troff2html/mkfile - 664 sys sys 1105631961 242
 sys/src/cmd/troff2html/troff2html.c - 664 sys sys 1132450028 14280
-sys/src/cmd/tweak.c - 664 sys sys 1143695257 38963
+sys/src/cmd/tweak.c - 664 sys sys 1166822151 38956
 sys/src/cmd/unicode.c - 664 sys sys 944961351 1953
 sys/src/cmd/uniq.c - 664 sys sys 944961351 2236
 sys/src/cmd/units.y - 664 sys sys 1014926801 10979
@@ -14242,7 +14242,7 @@ sys/src/cmd/vi/run.c - 664 sys sys 1134537330 13213
 sys/src/cmd/vi/special.c - 664 sys sys 944961342 6723
 sys/src/cmd/vi/stats.c - 664 sys sys 1067746789 5386
 sys/src/cmd/vi/symbols.c - 664 sys sys 1121977746 1744
-sys/src/cmd/vi/syscall.c - 664 sys sys 1124229128 14183
+sys/src/cmd/vi/syscall.c - 664 sys sys 1166821723 14188
 sys/src/cmd/vi/vi.c - 664 sys sys 1124229128 8989
 sys/src/cmd/vl - 20000000775 sys sys 1055699765 0
 sys/src/cmd/vl/asm.c - 664 sys sys 1143293749 31296
@@ -15192,12 +15192,12 @@ 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 1039727689 0
-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 1157899961 28212
+sys/src/libhtml/build.c - 664 sys sys 1166796404 94558
+sys/src/libhtml/impl.h - 664 sys sys 1166796404 4598
+sys/src/libhtml/lex.c - 664 sys sys 1166796404 28136
 sys/src/libhtml/mkfile - 664 sys sys 1035389778 246
 sys/src/libhtml/strinttab.c - 664 sys sys 1016902547 1285
-sys/src/libhtml/utils.c - 664 sys sys 1021580002 9745
+sys/src/libhtml/utils.c - 664 sys sys 1166796403 9579
 sys/src/libhttpd - 20000000775 sys sys 1045502928 0
 sys/src/libhttpd/alloc.c - 664 sys sys 1014930783 600
 sys/src/libhttpd/checkcontent.c - 664 sys sys 1014930783 771
@@ -15645,7 +15645,7 @@ sys/src/libventi/plan9-io.c - 664 sys sys 1135487933 1758
 sys/src/libventi/plan9-sha1.c - 664 sys sys 1045502095 1058
 sys/src/libventi/plan9-thread.c - 664 sys sys 1135487955 6713
 sys/src/libventi/readfully.c - 664 sys sys 1045502095 237
-sys/src/libventi/rpc.c - 664 sys sys 1143695302 7308
+sys/src/libventi/rpc.c - 664 sys sys 1166821900 7296
 sys/src/libventi/scorefmt.c - 664 sys sys 1045502096 255
 sys/src/libventi/server.c - 664 sys sys 1045502096 4507
 sys/src/libventi/session.h - 664 sys sys 1063853749 936
@@ -15674,12 +15674,16 @@ usr/glenda/lib/profile - 664 glenda glenda 1105128663 890
 usr/glenda/readme.acme - 664 glenda glenda 1019860628 4753
 usr/glenda/readme.rio - 664 glenda glenda 1019860628 6370
 usr/glenda/tmp - 20000000775 glenda glenda 1018802620 0
-sys/man/1/doc2txt - 664 sys sys 1166761437 2304
-sys/man/1/jpg - 664 sys sys 1166760721 4841
-sys/src/cmd/aux/msexceltables.c - 664 sys sys 1166761436 14597
-sys/src/cmd/ip/ipconfig.c - 664 sys sys 1166761782 35168
-sys/src/cmd/ip/ping.c - 664 sys sys 1166760556 5721
-sys/src/cmd/ndb/dnresolve.c - 664 sys sys 1166760856 15351
-sys/src/cmd/postscript/tr2post/mkfile - 664 sys sys 1166761556 524
-sys/src/cmd/postscript/tr2post/tr2post.c - 664 sys sys 1166761555 5371
-sys/src/cmd/file.c - 664 sys sys 1166761867 28088
+386/bin/acme - 775 sys sys 1166847253 432351
+386/bin/cpp - 775 sys sys 1166847254 150553
+386/bin/db - 775 sys sys 1166847255 346073
+386/bin/iostats - 775 sys sys 1166847258 100472
+386/bin/ms2html - 775 sys sys 1166847259 104267
+386/bin/bmp - 775 sys sys 1166847254 158105
+386/bin/disk/mkext - 775 sys sys 1166847255 82980
+386/bin/fossil/flchk - 775 sys sys 1166847256 239098
+386/bin/fossil/flfmt - 775 sys sys 1166847256 247245
+386/bin/fossil/fossil - 775 sys sys 1166847257 364386
+386/bin/ip/gping - 775 sys sys 1166847258 183541
+386/bin/tweak - 775 sys sys 1166847259 193350
+386/lib/libventi.a - 664 sys sys 1166847260 97858

+ 48 - 48
dist/replica/plan9.db

@@ -20,7 +20,7 @@
 386/bin/9660srv - 775 sys sys 1148500567 104375
 386/bin/aan - 775 sys sys 1148500568 131392
 386/bin/acid - 775 sys sys 1148500568 401250
-386/bin/acme - 775 sys sys 1155491742 432358
+386/bin/acme - 775 sys sys 1166847253 432351
 386/bin/ape - 20000000775 sys sys 1016944144 0
 386/bin/ape/basename - 775 sys sys 1136656314 132873
 386/bin/ape/cc - 775 sys sys 1148500570 70736
@@ -119,7 +119,7 @@
 386/bin/aux/mnihongo - 775 sys sys 1155491744 140114
 386/bin/aux/mouse - 775 sys sys 1148500597 44061
 386/bin/aux/ms2 - 775 sys sys 1148500597 87467
-386/bin/aux/msexceltables - 775 sys sys 1148500598 81689
+386/bin/aux/msexceltables - 775 sys sys 1166819912 83015
 386/bin/aux/mswordstrings - 775 sys sys 1148500598 65635
 386/bin/aux/na - 775 sys sys 1148500598 154517
 386/bin/aux/nfsmount - 775 sys sys 1148500599 234785
@@ -150,7 +150,7 @@
 386/bin/aux/trampoline - 775 sys sys 1148500604 84239
 386/bin/aux/typepasswd - 775 sys sys 1148500604 69832
 386/bin/aux/usage - 775 sys sys 1148500605 59903
-386/bin/aux/vga - 775 sys sys 1158607307 336305
+386/bin/aux/vga - 775 sys sys 1166819912 336336
 386/bin/aux/vmmousepoll - 775 sys sys 1032480572 41434
 386/bin/aux/vmware - 775 sys sys 1049428256 453
 386/bin/aux/vmwarefs - 775 sys sys 1095563640 99117
@@ -168,7 +168,7 @@
 386/bin/bitsy/params - 775 sys sys 1148500608 59109
 386/bin/bitsy/pencal - 775 sys sys 1150062733 117713
 386/bin/bitsy/prompter - 775 sys sys 1155491748 287199
-386/bin/bmp - 775 sys sys 1150062734 158105
+386/bin/bmp - 775 sys sys 1166847254 158105
 386/bin/bunzip2 - 775 sys sys 1148500610 97828
 386/bin/bzip2 - 775 sys sys 1148500611 114356
 386/bin/cal - 775 sys sys 1148500611 68221
@@ -188,11 +188,11 @@
 386/bin/compress - 775 sys sys 1159212097 166928
 386/bin/con - 775 sys sys 1148500616 78580
 386/bin/cp - 775 sys sys 1148500616 63548
-386/bin/cpp - 775 sys sys 1148500616 150553
+386/bin/cpp - 775 sys sys 1166847254 150553
 386/bin/cpu - 775 sys sys 1164140641 139578
 386/bin/crop - 775 sys sys 1150062735 116468
 386/bin/date - 775 sys sys 1148500618 43311
-386/bin/db - 775 sys sys 1148500619 346069
+386/bin/db - 775 sys sys 1166847255 346073
 386/bin/dc - 775 sys sys 1148500619 99354
 386/bin/dd - 775 sys sys 1159039156 45991
 386/bin/deroff - 775 sys sys 1148500620 74568
@@ -213,7 +213,7 @@
 386/bin/disk/ksync - 775 sys sys 1020319074 302
 386/bin/disk/mbr - 775 sys sys 1148500626 74012
 386/bin/disk/mk9660 - 775 sys sys 1020319074 144
-386/bin/disk/mkext - 775 sys sys 1148500626 82976
+386/bin/disk/mkext - 775 sys sys 1166847255 82980
 386/bin/disk/mkfs - 775 sys sys 1148500627 88063
 386/bin/disk/mksacfs - 775 sys sys 1020319074 71451
 386/bin/disk/prep - 775 sys sys 1148500628 96261
@@ -225,18 +225,18 @@
 386/bin/eqn - 775 sys sys 1141927235 244405
 386/bin/execnet - 775 sys sys 1160622239 178310
 386/bin/exportfs - 775 sys sys 1164140642 162644
-386/bin/ext2srv - 775 sys sys 1160622240 180000
+386/bin/ext2srv - 775 sys sys 1166819913 179987
 386/bin/faces - 775 sys sys 1155491750 194710
 386/bin/factor - 775 sys sys 1148500632 61793
 386/bin/fcp - 775 sys sys 1148500632 82527
-386/bin/file - 775 sys sys 1159471186 125085
+386/bin/file - 775 sys sys 1166819913 125077
 386/bin/fmt - 775 sys sys 1148500633 65661
 386/bin/fortune - 775 sys sys 1148500633 67450
 386/bin/fossil - 20000000775 sys sys 1042005470 0
 386/bin/fossil/conf - 775 sys sys 1085077052 1506
-386/bin/fossil/flchk - 775 sys sys 1158434410 239113
-386/bin/fossil/flfmt - 775 sys sys 1158434411 247260
-386/bin/fossil/fossil - 775 sys sys 1158434412 364401
+386/bin/fossil/flchk - 775 sys sys 1166847256 239098
+386/bin/fossil/flfmt - 775 sys sys 1166847256 247245
+386/bin/fossil/fossil - 775 sys sys 1166847257 364386
 386/bin/fossil/last - 775 sys sys 1148500638 63644
 386/bin/freq - 775 sys sys 1148500638 62134
 386/bin/fs - 20000000775 sys sys 954380769 0
@@ -275,20 +275,20 @@
 386/bin/history - 775 sys sys 1148500644 75799
 386/bin/hoc - 775 sys sys 1155491751 100190
 386/bin/html2ms - 775 sys sys 1148500645 66415
-386/bin/htmlfmt - 775 sys sys 1157916202 163475
+386/bin/htmlfmt - 775 sys sys 1166819914 163570
 386/bin/htmlroff - 775 sys sys 1157138536 148544
 386/bin/ico - 775 sys sys 1155491752 162226
 386/bin/iconv - 775 sys sys 1150062738 113723
 386/bin/idiff - 775 sys sys 1148500648 76436
 386/bin/import - 775 sys sys 1148500649 101755
-386/bin/iostats - 775 sys sys 1148500650 100476
+386/bin/iostats - 775 sys sys 1166847258 100472
 386/bin/ip - 20000000775 sys sys 1016920851 0
 386/bin/ip/dhcpclient - 775 sys sys 1148500650 94471
 386/bin/ip/dhcpd - 775 sys sys 1162241039 151149
 386/bin/ip/dhcpleases - 775 sys sys 1148500652 86543
 386/bin/ip/ftpd - 775 sys sys 1148500653 170760
 386/bin/ip/gizzard - 775 sys sys 1081480408 101521
-386/bin/ip/gping - 775 sys sys 1155491753 183599
+386/bin/ip/gping - 775 sys sys 1166847258 183541
 386/bin/ip/hogports - 775 sys sys 1148500655 42914
 386/bin/ip/httpd - 20000000775 sys sys 1068385801 0
 386/bin/ip/httpd/httpd - 775 sys sys 1162241040 295089
@@ -301,8 +301,8 @@
 386/bin/ip/httpd/wikipost - 775 sys sys 1148500658 115002
 386/bin/ip/httpfile - 775 sys sys 1162241041 284361
 386/bin/ip/imap4d - 775 sys sys 1156976707 238121
-386/bin/ip/ipconfig - 775 sys sys 1162241042 139478
-386/bin/ip/ping - 775 sys sys 1148500661 76814
+386/bin/ip/ipconfig - 775 sys sys 1166819915 139604
+386/bin/ip/ping - 775 sys sys 1166819915 76819
 386/bin/ip/ppp - 775 sys sys 1162241042 220477
 386/bin/ip/pppoe - 775 sys sys 1148500662 77881
 386/bin/ip/pptp - 775 sys sys 1148500663 127269
@@ -332,17 +332,17 @@
 386/bin/mkpaqfs - 775 sys sys 1148500671 94826
 386/bin/mntgen - 775 sys sys 1160622242 145552
 386/bin/mount - 775 sys sys 1148500672 73436
-386/bin/ms2html - 775 sys sys 1148500672 104279
+386/bin/ms2html - 775 sys sys 1166847259 104267
 386/bin/mtime - 775 sys sys 1148500673 59470
 386/bin/mug - 775 sys sys 1157570246 176473
 386/bin/mv - 775 sys sys 1163044781 66723
 386/bin/ndb - 20000000775 sys sys 985743147 0
 386/bin/ndb/cs - 775 sys sys 1163208707 150959
 386/bin/ndb/csquery - 775 sys sys 1148500674 61796
-386/bin/ndb/dns - 775 sys sys 1162241045 247347
-386/bin/ndb/dnsdebug - 775 sys sys 1162241046 221826
+386/bin/ndb/dns - 775 sys sys 1166819916 247355
+386/bin/ndb/dnsdebug - 775 sys sys 1166819916 221834
 386/bin/ndb/dnsquery - 775 sys sys 1148500676 63964
-386/bin/ndb/dnstcp - 775 sys sys 1162241047 220794
+386/bin/ndb/dnstcp - 775 sys sys 1166819917 220802
 386/bin/ndb/ipquery - 775 sys sys 1157916209 97048
 386/bin/ndb/mkdb - 775 sys sys 1148500677 64305
 386/bin/ndb/mkhash - 775 sys sys 1148500677 84874
@@ -440,7 +440,7 @@
 386/bin/trace - 775 sys sys 1155491757 181932
 386/bin/troff - 775 sys sys 1134151360 357941
 386/bin/troff2html - 775 sys sys 1132506877 85770
-386/bin/tweak - 775 sys sys 1155491758 193347
+386/bin/tweak - 775 sys sys 1166847259 193350
 386/bin/unicode - 775 sys sys 1148500699 62841
 386/bin/uniq - 775 sys sys 1148500699 62222
 386/bin/units - 775 sys sys 1148500700 75572
@@ -556,7 +556,7 @@
 386/lib/libflate.a - 664 sys sys 1143777862 76726
 386/lib/libframe.a - 664 sys sys 1147712341 66398
 386/lib/libgeometry.a - 664 sys sys 1143777862 50470
-386/lib/libhtml.a - 664 sys sys 1157916211 229650
+386/lib/libhtml.a - 664 sys sys 1166819918 229152
 386/lib/libhttpd.a - 664 sys sys 1153069071 99458
 386/lib/libip.a - 664 sys sys 1162241052 35552
 386/lib/libl.a - 664 sys sys 1143777863 5372
@@ -572,7 +572,7 @@
 386/lib/libstdio.a - 664 sys sys 1143777869 125926
 386/lib/libsunrpc.a - 664 sys sys 1143777870 353266
 386/lib/libthread.a - 664 sys sys 1143777870 71932
-386/lib/libventi.a - 664 sys sys 1143777870 97912
+386/lib/libventi.a - 664 sys sys 1166847260 97858
 386/mbr - 775 sys sys 1131317338 407
 386/mkfile - 664 sys sys 948141303 46
 386/pbs - 775 sys sys 1143465402 495
@@ -9190,7 +9190,7 @@ sys/src/cmd/5i/mkfile - 664 sys sys 1124229121 265
 sys/src/cmd/5i/run.c - 664 sys sys 1014924773 18578
 sys/src/cmd/5i/stats.c - 664 sys sys 1067739537 3943
 sys/src/cmd/5i/symbols.c - 664 sys sys 1121977746 1724
-sys/src/cmd/5i/syscall.c - 664 sys sys 1124229122 13686
+sys/src/cmd/5i/syscall.c - 664 sys sys 1166822289 13691
 sys/src/cmd/5l - 20000000775 sys sys 1045503939 0
 sys/src/cmd/5l/asm.c - 664 sys sys 1089299173 32633
 sys/src/cmd/5l/compat.c - 664 sys sys 946759353 465
@@ -9339,7 +9339,7 @@ sys/src/cmd/acme/exec.c - 664 sys sys 1136064450 28267
 sys/src/cmd/acme/file.c - 664 sys sys 1044626079 5717
 sys/src/cmd/acme/fns.h - 664 sys sys 1107154481 2916
 sys/src/cmd/acme/fsys.c - 664 sys sys 1111171699 13097
-sys/src/cmd/acme/look.c - 664 sys sys 1111381048 14210
+sys/src/cmd/acme/look.c - 664 sys sys 1166822365 14203
 sys/src/cmd/acme/mkfile - 664 sys sys 1058463682 543
 sys/src/cmd/acme/regx.c - 664 sys sys 1014926094 16057
 sys/src/cmd/acme/rows.c - 664 sys sys 1103565437 14702
@@ -9734,7 +9734,7 @@ sys/src/cmd/aux/vga/mga4xx.c - 664 sys sys 1158594482 36898
 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
-sys/src/cmd/aux/vga/nvidia.c - 664 sys sys 1158594482 33114
+sys/src/cmd/aux/vga/nvidia.c - 664 sys sys 1166796095 33178
 sys/src/cmd/aux/vga/palette.c - 664 sys sys 1014925010 2201
 sys/src/cmd/aux/vga/pci.c - 664 sys sys 1014925011 8659
 sys/src/cmd/aux/vga/pci.h - 664 sys sys 1014925011 3290
@@ -9916,7 +9916,7 @@ sys/src/cmd/cpp/cpp.h - 664 sys sys 1144691586 4707
 sys/src/cmd/cpp/eval.c - 664 sys sys 1014925275 9892
 sys/src/cmd/cpp/hideset.c - 664 sys sys 944960879 1936
 sys/src/cmd/cpp/include.c - 664 sys sys 959299274 2845
-sys/src/cmd/cpp/lex.c - 664 sys sys 1143759347 13584
+sys/src/cmd/cpp/lex.c - 664 sys sys 1166823021 13582
 sys/src/cmd/cpp/macro.c - 664 sys sys 1144691586 11287
 sys/src/cmd/cpp/mkfile - 664 sys sys 944960879 178
 sys/src/cmd/cpp/nlist.c - 664 sys sys 1116770041 4645
@@ -9926,11 +9926,11 @@ sys/src/cmd/cpu.c - 664 sys sys 1164133664 21154
 sys/src/cmd/crop.c - 664 sys sys 1134557476 4137
 sys/src/cmd/date.c - 664 sys sys 944961351 449
 sys/src/cmd/db - 20000000775 sys sys 1046363143 0
-sys/src/cmd/db/command.c - 664 sys sys 1131297926 4377
-sys/src/cmd/db/defs.h - 664 sys sys 1131292957 1700
+sys/src/cmd/db/command.c - 664 sys sys 1166823791 4376
+sys/src/cmd/db/defs.h - 664 sys sys 1166823791 1699
 sys/src/cmd/db/expr.c - 664 sys sys 1131292957 5441
-sys/src/cmd/db/fns.h - 664 sys sys 1131297926 2014
-sys/src/cmd/db/format.c - 664 sys sys 1134305455 6878
+sys/src/cmd/db/fns.h - 664 sys sys 1166823791 2013
+sys/src/cmd/db/format.c - 664 sys sys 1166823791 6877
 sys/src/cmd/db/input.c - 664 sys sys 1016731556 2194
 sys/src/cmd/db/main.c - 664 sys sys 1016731556 3308
 sys/src/cmd/db/mkfile - 664 sys sys 944960880 233
@@ -10042,7 +10042,7 @@ sys/src/cmd/disk/kfs/sub.c - 664 sys sys 1022008488 10804
 sys/src/cmd/disk/kfs/uid.c - 664 sys sys 1143759347 6779
 sys/src/cmd/disk/kfscmd.c - 664 sys sys 1015009135 1109
 sys/src/cmd/disk/mbr.c - 664 sys sys 1080218150 4325
-sys/src/cmd/disk/mkext.c - 664 sys sys 1107957513 5806
+sys/src/cmd/disk/mkext.c - 664 sys sys 1166823931 5805
 sys/src/cmd/disk/mkfile - 664 sys sys 1022385851 500
 sys/src/cmd/disk/mkfs.c - 664 sys sys 1108000852 14697
 sys/src/cmd/disk/prep - 20000000775 sys sys 1055692957 0
@@ -10128,7 +10128,7 @@ sys/src/cmd/ext2srv/dat.h - 664 sys sys 1055687746 5275
 sys/src/cmd/ext2srv/errstr.h - 664 sys sys 1055687747 565
 sys/src/cmd/ext2srv/ext2fs.c - 664 sys sys 1055687747 6063
 sys/src/cmd/ext2srv/ext2srv.man - 664 sys sys 1055687747 2409
-sys/src/cmd/ext2srv/ext2subs.c - 664 sys sys 1143759346 38666
+sys/src/cmd/ext2srv/ext2subs.c - 664 sys sys 1166798475 38655
 sys/src/cmd/ext2srv/fns.h - 664 sys sys 1055687748 1803
 sys/src/cmd/ext2srv/iobuf.c - 664 sys sys 1143670611 2864
 sys/src/cmd/ext2srv/mkfile - 664 sys sys 1055687748 194
@@ -12310,7 +12310,7 @@ sys/src/cmd/iostats - 20000000775 sys sys 1055699098 0
 sys/src/cmd/iostats/iostats.c - 664 sys sys 1140099908 10209
 sys/src/cmd/iostats/mkfile - 664 sys sys 1014925727 122
 sys/src/cmd/iostats/statfs.h - 664 sys sys 1140099908 2626
-sys/src/cmd/iostats/statsrv.c - 664 sys sys 1135487954 10770
+sys/src/cmd/iostats/statsrv.c - 664 sys sys 1166824341 10773
 sys/src/cmd/ip - 20000000775 sys sys 1128605981 0
 sys/src/cmd/ip/arp.h - 664 sys sys 944961005 751
 sys/src/cmd/ip/dhcp.h - 664 sys sys 1051206271 3368
@@ -12335,7 +12335,7 @@ sys/src/cmd/ip/ftpfs/mkfile - 664 sys sys 1048312050 173
 sys/src/cmd/ip/ftpfs/proto.c - 664 sys sys 1124935667 30337
 sys/src/cmd/ip/glob.c - 664 sys sys 1101155057 3290
 sys/src/cmd/ip/glob.h - 664 sys sys 1101155058 308
-sys/src/cmd/ip/gping.c - 664 sys sys 1015013112 20476
+sys/src/cmd/ip/gping.c - 664 sys sys 1166824873 20476
 sys/src/cmd/ip/hogports.c - 664 sys sys 1118623129 989
 sys/src/cmd/ip/httpd - 20000000775 sys sys 1083771060 0
 sys/src/cmd/ip/httpd/anonymous.c - 664 sys sys 984773807 195
@@ -12467,7 +12467,7 @@ sys/src/cmd/jpg/multichan.c - 664 sys sys 1039753047 825
 sys/src/cmd/jpg/onechan.c - 664 sys sys 1039753044 3732
 sys/src/cmd/jpg/png.c - 664 sys sys 1108939730 4834
 sys/src/cmd/jpg/ppm.c - 664 sys sys 1108852826 4204
-sys/src/cmd/jpg/readbmp.c - 664 sys sys 1105455271 13691
+sys/src/cmd/jpg/readbmp.c - 664 sys sys 1166825626 13711
 sys/src/cmd/jpg/readgif.c - 664 sys sys 1143220941 10472
 sys/src/cmd/jpg/readjpg.c - 664 sys sys 1032060302 33009
 sys/src/cmd/jpg/readpng.c - 664 sys sys 1108852825 10117
@@ -12521,7 +12521,7 @@ sys/src/cmd/ki/run.c - 664 sys sys 944961015 22231
 sys/src/cmd/ki/sparc.h - 664 sys sys 944961015 4419
 sys/src/cmd/ki/stats.c - 664 sys sys 1068859845 4536
 sys/src/cmd/ki/symbols.c - 664 sys sys 1121977746 1745
-sys/src/cmd/ki/syscall.c - 664 sys sys 1124229139 14075
+sys/src/cmd/ki/syscall.c - 664 sys sys 1166822290 14080
 sys/src/cmd/kl - 20000000775 sys sys 1045503970 0
 sys/src/cmd/kl/asm.c - 664 sys sys 1105798985 26122
 sys/src/cmd/kl/compat.c - 664 sys sys 947099591 465
@@ -12649,7 +12649,7 @@ sys/src/cmd/mkone - 664 sys sys 1123943673 910
 sys/src/cmd/mksyslib - 664 sys sys 1134390137 665
 sys/src/cmd/mntgen.c - 664 sys sys 1106410349 3630
 sys/src/cmd/mount.c - 664 sys sys 1138061862 1633
-sys/src/cmd/ms2html.c - 664 sys sys 1143695278 41022
+sys/src/cmd/ms2html.c - 664 sys sys 1166823350 41013
 sys/src/cmd/mtime.c - 664 sys sys 1036172302 450
 sys/src/cmd/mug.c - 664 sys sys 1157143847 24888
 sys/src/cmd/mv.c - 664 sys sys 1163029439 4682
@@ -13070,7 +13070,7 @@ sys/src/cmd/qi/qi.c - 664 sys sys 1124229161 7867
 sys/src/cmd/qi/run.c - 664 sys sys 1076688569 4173
 sys/src/cmd/qi/stats.c - 664 sys sys 1076688569 4338
 sys/src/cmd/qi/symbols.c - 664 sys sys 1121978130 1742
-sys/src/cmd/qi/syscall.c - 664 sys sys 1124229161 14420
+sys/src/cmd/qi/syscall.c - 664 sys sys 1166822290 14425
 sys/src/cmd/qi/timing - 664 sys sys 1076688570 641
 sys/src/cmd/ql - 20000000775 sys sys 1055699284 0
 sys/src/cmd/ql/asm.c - 664 sys sys 1135487949 13021
@@ -13164,7 +13164,7 @@ sys/src/cmd/sam/cmd.c - 664 sys sys 1132448975 10774
 sys/src/cmd/sam/disk.c - 664 sys sys 1014926938 1988
 sys/src/cmd/sam/error.c - 664 sys sys 1108939612 2222
 sys/src/cmd/sam/errors.h - 664 sys sys 944961628 695
-sys/src/cmd/sam/file.c - 664 sys sys 1045505553 11030
+sys/src/cmd/sam/file.c - 664 sys sys 1166825726 11022
 sys/src/cmd/sam/io.c - 664 sys sys 1111181614 4688
 sys/src/cmd/sam/list.c - 664 sys sys 1133885097 1437
 sys/src/cmd/sam/mesg.c - 664 sys sys 1132448975 14291
@@ -13468,7 +13468,7 @@ sys/src/cmd/troff2html - 20000000775 sys sys 1105576338 0
 sys/src/cmd/troff2html/chars.h - 664 sys sys 1105584129 3957
 sys/src/cmd/troff2html/mkfile - 664 sys sys 1105631961 242
 sys/src/cmd/troff2html/troff2html.c - 664 sys sys 1132450028 14280
-sys/src/cmd/tweak.c - 664 sys sys 1143695257 38963
+sys/src/cmd/tweak.c - 664 sys sys 1166822151 38956
 sys/src/cmd/unicode.c - 664 sys sys 944961351 1953
 sys/src/cmd/uniq.c - 664 sys sys 944961351 2236
 sys/src/cmd/units.y - 664 sys sys 1014926801 10979
@@ -14242,7 +14242,7 @@ sys/src/cmd/vi/run.c - 664 sys sys 1134537330 13213
 sys/src/cmd/vi/special.c - 664 sys sys 944961342 6723
 sys/src/cmd/vi/stats.c - 664 sys sys 1067746789 5386
 sys/src/cmd/vi/symbols.c - 664 sys sys 1121977746 1744
-sys/src/cmd/vi/syscall.c - 664 sys sys 1124229128 14183
+sys/src/cmd/vi/syscall.c - 664 sys sys 1166821723 14188
 sys/src/cmd/vi/vi.c - 664 sys sys 1124229128 8989
 sys/src/cmd/vl - 20000000775 sys sys 1055699765 0
 sys/src/cmd/vl/asm.c - 664 sys sys 1143293749 31296
@@ -15192,12 +15192,12 @@ 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 1039727689 0
-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 1157899961 28212
+sys/src/libhtml/build.c - 664 sys sys 1166796404 94558
+sys/src/libhtml/impl.h - 664 sys sys 1166796404 4598
+sys/src/libhtml/lex.c - 664 sys sys 1166796404 28136
 sys/src/libhtml/mkfile - 664 sys sys 1035389778 246
 sys/src/libhtml/strinttab.c - 664 sys sys 1016902547 1285
-sys/src/libhtml/utils.c - 664 sys sys 1021580002 9745
+sys/src/libhtml/utils.c - 664 sys sys 1166796403 9579
 sys/src/libhttpd - 20000000775 sys sys 1045502928 0
 sys/src/libhttpd/alloc.c - 664 sys sys 1014930783 600
 sys/src/libhttpd/checkcontent.c - 664 sys sys 1014930783 771
@@ -15645,7 +15645,7 @@ sys/src/libventi/plan9-io.c - 664 sys sys 1135487933 1758
 sys/src/libventi/plan9-sha1.c - 664 sys sys 1045502095 1058
 sys/src/libventi/plan9-thread.c - 664 sys sys 1135487955 6713
 sys/src/libventi/readfully.c - 664 sys sys 1045502095 237
-sys/src/libventi/rpc.c - 664 sys sys 1143695302 7308
+sys/src/libventi/rpc.c - 664 sys sys 1166821900 7296
 sys/src/libventi/scorefmt.c - 664 sys sys 1045502096 255
 sys/src/libventi/server.c - 664 sys sys 1045502096 4507
 sys/src/libventi/session.h - 664 sys sys 1063853749 936

+ 49 - 0
dist/replica/plan9.log

@@ -62268,3 +62268,52 @@
 1166761809 6 c sys/src/cmd/postscript/tr2post/mkfile - 664 sys sys 1166761556 524
 1166761809 7 c sys/src/cmd/postscript/tr2post/tr2post.c - 664 sys sys 1166761555 5371
 1166761809 8 c sys/src/cmd/file.c - 664 sys sys 1166761867 28088
+1166797810 0 c 386/bin/aux/vga - 775 sys sys 1166796089 336228
+1166797810 1 c sys/src/cmd/aux/vga/nvidia.c - 664 sys sys 1166796095 33178
+1166797810 2 c sys/src/libhtml/build.c - 664 sys sys 1166796404 94558
+1166797810 3 c sys/src/libhtml/impl.h - 664 sys sys 1166796404 4598
+1166797810 4 c sys/src/libhtml/lex.c - 664 sys sys 1166796404 28136
+1166797810 5 c sys/src/libhtml/utils.c - 664 sys sys 1166796403 9579
+1166799606 0 c sys/src/cmd/ext2srv/ext2subs.c - 664 sys sys 1166798475 38655
+1166821212 0 c 386/bin/htmlfmt - 775 sys sys 1166819914 163570
+1166821212 1 c 386/bin/file - 775 sys sys 1166819913 125077
+1166821212 2 c 386/bin/aux/msexceltables - 775 sys sys 1166819912 83015
+1166821212 3 c 386/bin/aux/vga - 775 sys sys 1166819912 336336
+1166821212 4 c 386/bin/ext2srv - 775 sys sys 1166819913 179987
+1166821212 5 c 386/bin/ip/ipconfig - 775 sys sys 1166819915 139604
+1166821212 6 c 386/bin/ip/ping - 775 sys sys 1166819915 76819
+1166821212 7 c 386/bin/ndb/dns - 775 sys sys 1166819916 247355
+1166821212 8 c 386/bin/ndb/dnsdebug - 775 sys sys 1166819916 221834
+1166821212 9 c 386/bin/ndb/dnstcp - 775 sys sys 1166819917 220802
+1166821212 10 c 386/lib/libhtml.a - 664 sys sys 1166819918 229152
+1166823010 0 c sys/src/cmd/5i/syscall.c - 664 sys sys 1166822289 13691
+1166823010 1 c sys/src/cmd/acme/look.c - 664 sys sys 1166822365 14203
+1166823010 2 c sys/src/cmd/cpp/lex.c - 664 sys sys 1166823021 13582
+1166823010 3 c sys/src/cmd/ki/syscall.c - 664 sys sys 1166822290 14080
+1166823010 4 c sys/src/cmd/vi/syscall.c - 664 sys sys 1166821723 14188
+1166823010 5 c sys/src/cmd/qi/syscall.c - 664 sys sys 1166822290 14425
+1166823010 6 c sys/src/cmd/tweak.c - 664 sys sys 1166822151 38956
+1166823010 7 c sys/src/libventi/rpc.c - 664 sys sys 1166821900 7296
+1166824804 0 c sys/src/cmd/db/command.c - 664 sys sys 1166823791 4376
+1166824804 1 c sys/src/cmd/db/defs.h - 664 sys sys 1166823791 1699
+1166824804 2 c sys/src/cmd/db/fns.h - 664 sys sys 1166823791 2013
+1166824804 3 c sys/src/cmd/db/format.c - 664 sys sys 1166823791 6877
+1166824804 4 c sys/src/cmd/disk/mkext.c - 664 sys sys 1166823931 5805
+1166824804 5 c sys/src/cmd/iostats/statsrv.c - 664 sys sys 1166824341 10773
+1166824804 6 c sys/src/cmd/ms2html.c - 664 sys sys 1166823350 41013
+1166826611 0 c sys/src/cmd/ip/gping.c - 664 sys sys 1166824873 20476
+1166826611 1 c sys/src/cmd/jpg/readbmp.c - 664 sys sys 1166825626 13711
+1166826611 2 c sys/src/cmd/sam/file.c - 664 sys sys 1166825726 11022
+1166848205 0 c 386/bin/acme - 775 sys sys 1166847253 432351
+1166848205 1 c 386/bin/cpp - 775 sys sys 1166847254 150553
+1166848205 2 c 386/bin/db - 775 sys sys 1166847255 346073
+1166848205 3 c 386/bin/iostats - 775 sys sys 1166847258 100472
+1166848205 4 c 386/bin/ms2html - 775 sys sys 1166847259 104267
+1166848205 5 c 386/bin/bmp - 775 sys sys 1166847254 158105
+1166848205 6 c 386/bin/disk/mkext - 775 sys sys 1166847255 82980
+1166848205 7 c 386/bin/fossil/flchk - 775 sys sys 1166847256 239098
+1166848205 8 c 386/bin/fossil/flfmt - 775 sys sys 1166847256 247245
+1166848205 9 c 386/bin/fossil/fossil - 775 sys sys 1166847257 364386
+1166848205 10 c 386/bin/ip/gping - 775 sys sys 1166847258 183541
+1166848205 11 c 386/bin/tweak - 775 sys sys 1166847259 193350
+1166848205 12 c 386/lib/libventi.a - 664 sys sys 1166847260 97858

+ 2 - 1
sys/src/cmd/5i/syscall.c

@@ -130,8 +130,9 @@ sysbind(void)
 void
 sysfd2path(void)
 {
+	int n;
+	uint fd;
 	ulong str;
-	uint fd, n;
 	char buf[1024];
 
 	fd = getmem_w(reg.r[13]+4);

+ 1 - 1
sys/src/cmd/acme/look.c

@@ -163,7 +163,7 @@ plumbgetc(void *a, uint n)
 	Rune *r;
 
 	r = a;
-	if(n<0 || n>runestrlen(r))
+	if(n>runestrlen(r))
 		return 0;
 	return r[n];
 }

+ 3 - 1
sys/src/cmd/aux/vga/nvidia.c

@@ -205,10 +205,12 @@ snarf(Vga* vga, Ctlr* ctlr)
 		case 0x01D0:
 		case 0x0090:
 		case 0x0210:
+		case 0x0290:	/* nvidia 7950*/
 			nv->arch = 40;
 			break;
 		default:
-			error("%s: DID %4.4uX unsupported\n", ctlr->name, nv->did);
+			error("%s: DID %#4.4ux - %#ux unsupported\n",
+				ctlr->name, nv->did, (nv->did & 0x0ff0));
 			break;
 		}
 	}

+ 2 - 2
sys/src/cmd/cpp/lex.c

@@ -537,8 +537,8 @@ fillbuf(Source *s)
 	int n;
 
 	while((char *)s->inl+s->ins/8 > (char *)s->inb+s->ins) {
-		uint l = s->inl - s->inb;
-		uint p = s->inp - s->inb;
+		int l = s->inl - s->inb;
+		int p = s->inp - s->inb;
 		if(l < 0) 
 			error(FATAL, "negative end of input!?");
 		if(p < 0)

+ 1 - 1
sys/src/cmd/db/command.c

@@ -18,7 +18,7 @@ char	stformat[ARB] = "zMi";
 ADDR	ditto;
 
 ADDR	dot;
-WORD	dotinc;
+int	dotinc;
 WORD	adrval, cntval, loopcnt;
 int	adrflg, cntflg;
 

+ 1 - 1
sys/src/cmd/db/defs.h

@@ -86,7 +86,7 @@ extern	ADDR	maxfile;
 extern	ADDR	maxstor;
 
 extern	ADDR	dot;
-extern	WORD	dotinc;
+extern	int	dotinc;
 
 extern	int	xargc;
 

+ 1 - 1
sys/src/cmd/db/fns.h

@@ -31,7 +31,7 @@ void		getformat(char*);
 int		getnum(int (*)(void));
 void		grab(void);
 void		iclose(int, int);
-ADDR		inkdot(WORD);
+ADDR		inkdot(int);
 int		isfileref(void);
 int		item(int);
 void		killpcs(void);

+ 1 - 1
sys/src/cmd/db/format.c

@@ -374,7 +374,7 @@ printesc(int c)
 }
 
 ADDR
-inkdot(WORD incr)
+inkdot(int incr)
 {
 	ADDR	newdot;
 

+ 1 - 1
sys/src/cmd/disk/mkext.c

@@ -270,7 +270,7 @@ void
 seekpast(uvlong bytes)
 {
 	char buf[LEN];
-	ulong n;
+	long n;
 	uvlong tot;
 
 	for(tot = 0; tot < bytes; tot += n){

+ 1 - 1
sys/src/cmd/ext2srv/ext2subs.c

@@ -208,7 +208,7 @@ get_inode( Xfile *file, uint nr )
 	Ext2 ed, es;
 
 	es = getext2(xf, EXT2_SUPER, 0);
-	if( nr < 0 || nr > es.u.sb->s_inodes_count ){
+	if(nr > es.u.sb->s_inodes_count ){
 		chat("inode number %d is too big...", nr);
 		putext2(es);
 		errno = Eio;

+ 6 - 5
sys/src/cmd/iostats/statsrv.c

@@ -411,6 +411,7 @@ Xwstat(Fsrpc *r)
 void
 slave(Fsrpc *f)
 {
+	int r;
 	Proc *p;
 	uintptr pid;
 	static int nproc;
@@ -430,11 +431,11 @@ slave(Fsrpc *f)
 		if(++nproc > MAXPROC)
 			fatal("too many procs");
 
-		pid = rfork(RFPROC|RFMEM);
-		if(pid < 0)
+		r = rfork(RFPROC|RFMEM);
+		if(r < 0)
 			fatal("rfork");
 
-		if(pid == 0)
+		if(r == 0)
 			blockingslave();
 
 		p = malloc(sizeof(Proc));
@@ -442,11 +443,11 @@ slave(Fsrpc *f)
 			fatal("out of memory");
 
 		p->busy = 0;
-		p->pid = pid;
+		p->pid = r;
 		p->next = Proclist;
 		Proclist = p;
 
-		rendezvous((void*)pid, p);
+		rendezvous((void*)p->pid, p);
 	}
 }
 

+ 8 - 8
sys/src/cmd/ip/gping.c

@@ -22,7 +22,7 @@ struct Graph
 {
 	int		colindex;
 	Rectangle	r;
-	int		*data;
+	long		*data;
 	int		ndata;
 	char		*label;
 	void		(*newvalue)(Machine*, long*, long*, long*);
@@ -161,7 +161,7 @@ void	dropgraph(int);
 void	addgraph(int);
 void	startproc(void (*)(void*), void*);
 void	resize(void);
-ulong	rttscale(ulong);
+long	rttscale(long);
 int	which2index(int);
 int	index2which(int);
 
@@ -288,7 +288,7 @@ label(Point p, int dy, char *text)
 }
 
 void
-hashmark(Point p, int dy, int v, int vmax, char *label)
+hashmark(Point p, int dy, long v, long vmax, char *label)
 {
 	int y;
 	int x;
@@ -604,8 +604,8 @@ initmach(Machine *m, char *name)
 	startproc(pingrcv, m);
 }
 
-ulong
-rttscale(ulong x)
+long
+rttscale(long x)
 {
 	if(x == 0)
 		return 0;
@@ -615,8 +615,8 @@ rttscale(ulong x)
 	return x;
 }
 
-ulong
-rttunscale(ulong x)
+double
+rttunscale(long x)
 {
 	double dx;
 
@@ -966,7 +966,7 @@ dobutton1(Mouse *m)
 		seprint(g->msg+n, e, " %3.3g", f/1000000);
 		break;
 	case Mlost:
-		seprint(g->msg+n, e, " %d%%", g->data[dx]);
+		seprint(g->msg+n, e, " %ld%%", g->data[dx]);
 		break;
 	}
 

+ 5 - 5
sys/src/cmd/jpg/readbmp.c

@@ -146,7 +146,7 @@ load_4C(Biobuf *b, long width, long height, Rgb* buf, Rgb* clut)
 	while(iy >= 0) {
 		ix = 0;
 		while(ix < width) {
-			val = Bgetc(b);
+			val = (uint)Bgetc(b);
 
 			if(0 != val) {
 				valS = (uint)Bgetc(b);
@@ -155,7 +155,7 @@ load_4C(Biobuf *b, long width, long height, Rgb* buf, Rgb* clut)
 					*p = clut[0xf & (valS >> 4)];
 					p++;
 					ix++;
-					if(0 < val) {
+					if(val != 0) {
 						*p = clut[0xf & valS];
 						p++;
 						ix++;
@@ -175,9 +175,9 @@ load_4C(Biobuf *b, long width, long height, Rgb* buf, Rgb* clut)
 						iy = -1;
 						break;
 					case 2:	/* Position change detected */
-						val = Bgetc(b);
+						val = (uint)Bgetc(b);
 						ix += val;
-						val = Bgetc(b);
+						val = (uint)Bgetc(b);
 						iy -= val;
 						break;
 
@@ -193,7 +193,7 @@ load_4C(Biobuf *b, long width, long height, Rgb* buf, Rgb* clut)
 							*p = clut[0xf & (valS >> 4)];
 							p++;
 							ix++;
-							if(0 < val) {
+							if(val != 0) {
 								*p = clut[0xf & valS];
 								p++;
 								ix++;

+ 2 - 1
sys/src/cmd/ki/syscall.c

@@ -106,8 +106,9 @@ syserrstr(void)
 void
 sysfd2path(void)
 {
+	int n;
+	uint fd;
 	ulong str;
-	uint fd, n;
 	char buf[1024];
 
 	fd = getmem_w(reg.r[REGSP]+4);

+ 2 - 2
sys/src/cmd/ms2html.c

@@ -683,7 +683,7 @@ getrune(void)
  	}
 
 	lastsrc = Input;
-	do {
+	for(;;) {
 		if(ssp < sstack)
 			return -1;
 		c = Bgetrune(&ssp->in);
@@ -693,7 +693,7 @@ getrune(void)
 		}
 		close(ssp->fd);
 		ssp--;
-	} while(r < 0);
+	}
 
 	return r;
 }

+ 2 - 1
sys/src/cmd/qi/syscall.c

@@ -115,8 +115,9 @@ syserrstr(void)
 void
 sysfd2path(void)
 {
+	int n;
+	uint fd;
 	ulong str;
-	uint fd, n;
 	char buf[1024];
 
 	fd = getmem_w(reg.r[REGSP]+4);

+ 1 - 1
sys/src/cmd/sam/file.c

@@ -130,7 +130,7 @@ loginsert(File *f, uint p0, Rune *s, uint ns)
 		return;
 	if(ns == 0)
 		return;
-	if(ns<0 || ns>STRSIZE)
+	if(ns>STRSIZE)
 		panic("loginsert");
 	if(f->seq < seq)
 		filemark(f);

+ 1 - 1
sys/src/cmd/tweak.c

@@ -1825,7 +1825,7 @@ tchar(Thing *t)
 	c -= t->off;
 	d -= t->off;
 	while(c <= d){
-		if(c<0 || c>=t->s->n){
+		if(c>=t->s->n){
 			mesg("0x%lux not in font %s", c+t->off, t->name);
 			return;
 		}

+ 2 - 1
sys/src/cmd/vi/syscall.c

@@ -106,8 +106,9 @@ syserrstr(void)
 void
 sysfd2path(void)
 {
+	int n;
+	uint fd;
 	ulong str;
-	uint fd, n;
 	char buf[1024];
 
 	fd = getmem_w(reg.r[REGSP]+4);

+ 11 - 17
sys/src/libhtml/build.c

@@ -908,11 +908,8 @@ getitems(ItemSource* is, uchar* data, int datalen)
 				ks->kidinfos = kd = newkidinfo(0, ks->kidinfos);
 				kd->src = aurlval(tok, Asrc, nil, di->base);
 				kd->name = aval(tok, Aname);
-				if(kd->name == nil) {
-					s = _ltoStr(++is->nframes);
-					kd->name = _Strdup2(L"_fr", s);
-					free(s);
-				}
+				if(kd->name == nil)
+					kd->name = runesmprint("_fr%d", ++is->nframes);
 				kd->marginw = auintval(tok, Amarginwidth, 0);
 				kd->marginh = auintval(tok, Amarginheight, 0);
 				kd->framebd = auintval(tok, Aframeborder, 1);
@@ -2635,12 +2632,7 @@ listmark(uchar ty, int n)
 		break;
 
 	case LT1:
-		t = _ltoStr(n);
-		n2 = _Strlen(t);
-		s = _newstr(n2+1);
-		t = _Stradd(s, t, n2);
-		*t++ = '.';
-		*t = 0;
+		s = runesmprint("%d.", n);
 		break;
 
 	case LTa:
@@ -3887,9 +3879,12 @@ resetdocinfo(Docinfo* d)
 static void
 targetmapinit(void)
 {
+	int l;
+
 	targetmapsize = 10;
-	targetmap = (StringInt*)emalloc(targetmapsize*sizeof(StringInt));
-	memset(targetmap, 0, targetmapsize*sizeof(StringInt));
+	l = targetmapsize*sizeof *targetmap;
+	targetmap = emalloc(l);
+	memset(targetmap, 0, l);
 	targetmap[0].key = _Strdup(L"_top");
 	targetmap[0].val = FTtop;
 	targetmap[1].key = _Strdup(L"_self");
@@ -3913,12 +3908,11 @@ targetid(Rune* s)
 	for(i = 0; i < ntargets; i++)
 		if(_Strcmp(s, targetmap[i].key) == 0)
 			return targetmap[i].val;
-	if(i >= targetmapsize) {
+	if(i == targetmapsize) {
 		targetmapsize += 10;
-		targetmap = (StringInt*)erealloc(targetmap, targetmapsize*sizeof(StringInt));
+		targetmap = erealloc(targetmap, targetmapsize*sizeof(StringInt));
 	}
-	targetmap[i].key = (Rune*)emalloc((n+1)*sizeof(Rune));
-	memmove(targetmap[i].key, s, (n+1)*sizeof(Rune));
+	targetmap[i].key = _Strdup(s);
 	targetmap[i].val = i;
 	ntargets++;
 	return i;

+ 0 - 1
sys/src/libhtml/impl.h

@@ -18,7 +18,6 @@ struct Strlist
 
 extern int		_inclass(Rune c, Rune* cl);
 extern int		_listlen(List* l);
-extern Rune*	_ltoStr(int n);
 extern List*	_newlist(int val, List* rest);
 extern Rune*	_newstr(int n);
 extern int		_prefix(Rune* pre, Rune* s);

+ 27 - 24
sys/src/libhtml/lex.c

@@ -537,7 +537,7 @@ static int	winchars[]= { 8226,	// 8226 is a bullet
 static StringInt*	tagtable;		// initialized from tagnames
 static StringInt*	attrtable;		// initialized from attrnames
 
-static void		lexinit();
+static void	lexinit(void);
 static int		getplaindata(TokenSource* ts, Token* a, int* pai);
 static int		getdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai);
 static int		getscriptdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai, int findtag);
@@ -584,7 +584,7 @@ newtokensource(uchar* data, int edata, int chset, int mtype)
 }
 
 enum {
-	ToksChunk = 500
+	ToksChunk = 500,
 };
 
 // Call this to get the tokens.
@@ -603,16 +603,16 @@ _gettoks(uchar* data, int datalen, int chset, int mtype, int* plen)
 	if(!lexinited)
 		lexinit();
 	ts = newtokensource(data, datalen, chset, mtype);
-	alen = ToksChunk;
-	a = (Token*)emalloc(alen * sizeof(Token));
-	ai = 0;
 	if(dbglex)
 		fprint(2, "_gettoks starts, ts.i=%d, ts.edata=%d\n", ts->i, ts->edata);
+	alen = 0;
+	ai = 0;
+	a = 0;
 	if(ts->mtype == TextHtml) {
 		for(;;) {
 			if(ai == alen) {
-				a = (Token*)erealloc(a, (alen+ToksChunk)*sizeof(Token));
 				alen += ToksChunk;
+				a = erealloc(a, alen*sizeof *a);
 			}
 			starti = ts->i;
 			c = getchar(ts);
@@ -639,8 +639,8 @@ _gettoks(uchar* data, int datalen, int chset, int mtype, int* plen)
 		// plain text (non-html) tokens
 		for(;;) {
 			if(ai == alen) {
-				a = (Token*)erealloc(a, (alen+ToksChunk)*sizeof(Token));
 				alen += ToksChunk;
+				a = erealloc(a, alen*sizeof *a);
 			}
 			tag = getplaindata(ts, a, &ai);
 			if(tag == -1)
@@ -653,8 +653,10 @@ _gettoks(uchar* data, int datalen, int chset, int mtype, int* plen)
 	if(dbglex)
 		fprint(2, "lex: returning %d tokens\n", ai);
 	*plen = ai;
-	if(ai == 0) 
-		return nil;
+	if(ai == 0){
+		free(a);
+		a = 0;
+	}
 	return a;
 }
 
@@ -696,7 +698,7 @@ getplaindata(TokenSource* ts, Token* a, int* pai)
 		}
 		if(c != 0) {
 			buf[j++] = c;
-			if(j == sizeof(buf)-1) {
+			if(j == nelem(buf)-1) {
 				s = buftostr(s, buf, j);
 				j = 0;
 			}
@@ -719,11 +721,16 @@ getplaindata(TokenSource* ts, Token* a, int* pai)
 static Rune*
 buftostr(Rune* s, Rune* buf, int j)
 {
-	buf[j] = 0;
+	int i;
+
 	if(s == nil)
 		s = _Strndup(buf, j);
-	else 
-		s = _Strdup2(s, buf);
+	else {
+		i = _Strlen(s);
+		s = realloc(s, ( i+j+1)*sizeof *s);
+		memcpy(&s[i], buf, j*sizeof *s);
+		s[i+j] = 0;
+	}
 	return s;
 }
 
@@ -739,12 +746,11 @@ getdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai)
 	int	j;
 	int	c;
 	Token*	tok;
-	Rune	buf[BIGBUFSIZE];
+	Rune	buf[SMALLBUFSIZE];
 
 	s = nil;
 	j = 0;
-	c = firstc;
-	while(c >= 0) {
+	for(c = firstc; c >= 0; c = getchar(ts)){
 		if(c == '&') {
 			c = ampersand(ts);
 			if(c < 0)
@@ -775,12 +781,11 @@ getdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai)
 		}
 		if(c != 0) {
 			buf[j++] = c;
-			if(j == BIGBUFSIZE-1) {
+			if(j == nelem(buf)-1) {
 				s = buftostr(s, buf, j);
 				j = 0;
 			}
 		}
-		c = getchar(ts);
 	}
 	s = buftostr(s, buf, j);
 	if(s == nil)
@@ -819,8 +824,6 @@ getscriptdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai, int f
 			savei = ts->i;
 			c = getchar(ts);
 			if(c == '!') {
-//				while(c >= 0 && c != '\n' && c != '\r')
-//					c = getchar(ts);
 				if(comment(ts) == -1)
 					break;
 				if(c == '\r')
@@ -848,7 +851,7 @@ getscriptdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai, int f
 			break;
 		if(c != 0) {
 			buf[j++] = c;
-			if(j == BIGBUFSIZE-1) {
+			if(j == nelem(buf)-1) {
 				s = buftostr(s, buf, j);
 				j = 0;
 			}
@@ -865,6 +868,7 @@ getscriptdata(TokenSource* ts, int firstc, int starti, Token* a, int* pai, int f
 		tok->starti = starti;
 		return Data;
 	}
+	free(s);
 	backup(ts, starti);
 	return -1;
 }
@@ -942,7 +946,6 @@ gettag(TokenSource* ts, int starti, Token* a, int* pai)
 		tok->tag = tag + rbra;
 	else
 		tok->text = _Strndup(buf, i);	// for warning print, in build
-
 	// attribute gathering loop
 	al = nil;
 	while(1) {
@@ -1211,7 +1214,7 @@ ampersand(TokenSource* ts)
 	int	ans;
 	int	v;
 	int	k;
-	Rune	buf[SMALLBUFSIZE];
+	Rune	buf[25];
 
 	savei = ts->i;
 	c = getchar(ts);
@@ -1258,7 +1261,7 @@ ampersand(TokenSource* ts)
 			if(c < 0)
 				break;
 			if(c < 256 && (isalpha(c) || isdigit(c))) {
-				if(k < SMALLBUFSIZE-1)
+				if(k < nelem(buf)-1)
 					buf[k++] = c;
 			}
 			else {

+ 0 - 11
sys/src/libhtml/utils.c

@@ -578,14 +578,3 @@ fromStr(Rune* buf, int n, int chset)
 	return ans;
 
 }
-
-// Convert n to emalloc'd String.
-Rune*
-_ltoStr(int n)
-{
-	int m;
-	uchar buf[20];
-
-	m = snprint((char*)buf, sizeof(buf), "%d", n);
-	return toStr(buf, m, US_Ascii);
-}

+ 1 - 1
sys/src/libventi/rpc.c

@@ -241,7 +241,7 @@ vtVersionRead(VtSession *z, char *prefix, int *ret)
 			*p = 0;
 			break;
 		}
-		if(c < ' ' || c > 0x7f || *q && c != *q) {
+		if(c < ' ' || *q && c != *q) {
 			vtSetError(EBadVersion);
 			return 0;
 		}