Browse Source

Plan 9 from Bell Labs 2007-04-14

David du Colombier 14 years ago
parent
commit
044d882e9f

+ 149 - 33
dist/replica/_plan9.db

@@ -45,7 +45,7 @@
 386/bin/auth - 20000000775 sys sys 1016920815 0
 386/bin/auth/aescbc - 775 sys sys 1174964423 141321
 386/bin/auth/asn12rsa - 775 sys sys 1168402266 120828
-386/bin/auth/authsrv - 775 sys sys 1172808056 166692
+386/bin/auth/authsrv - 775 sys sys 1176488412 166616
 386/bin/auth/changeuser - 775 sys sys 1168402267 97488
 386/bin/auth/convkeys - 775 sys sys 1174964423 88664
 386/bin/auth/convkeys2 - 775 sys sys 1174964423 88723
@@ -55,7 +55,7 @@
 386/bin/auth/enable - 775 sys sys 1020319057 134
 386/bin/auth/factotum - 775 sys sys 1174964424 322628
 386/bin/auth/fgui - 775 sys sys 1168402269 218990
-386/bin/auth/guard.srv - 775 sys sys 1172808056 145120
+386/bin/auth/guard.srv - 775 sys sys 1176488412 145044
 386/bin/auth/iam - 775 sys sys 1085076981 50791
 386/bin/auth/keyfs - 775 sys sys 1174964424 116560
 386/bin/auth/login - 775 sys sys 1168402270 104747
@@ -72,7 +72,7 @@
 386/bin/auth/rsagen - 775 sys sys 1168402273 153528
 386/bin/auth/secretpem - 775 sys sys 1045537944 118526
 386/bin/auth/secstore - 775 sys sys 1174964425 196447
-386/bin/auth/secstored - 775 sys sys 1172808057 198043
+386/bin/auth/secstored - 775 sys sys 1176488413 197967
 386/bin/auth/secuser - 775 sys sys 1168402275 153231
 386/bin/auth/status - 775 sys sys 1020319060 738
 386/bin/auth/uniq - 775 sys sys 1168402275 63314
@@ -90,7 +90,7 @@
 386/bin/aux/astarld - 775 sys sys 1168402277 64918
 386/bin/aux/cddb - 775 sys sys 1168402277 72541
 386/bin/aux/clog - 775 sys sys 1168402277 66689
-386/bin/aux/consolefs - 775 sys sys 1168402278 156279
+386/bin/aux/consolefs - 775 sys sys 1176488413 156203
 386/bin/aux/conswdir - 775 sys sys 1062080411 38855
 386/bin/aux/cropmarks - 775 sys sys 1020319062 1808
 386/bin/aux/data2s - 775 sys sys 1168402278 60761
@@ -150,7 +150,7 @@
 386/bin/aux/trampoline - 775 sys sys 1168402288 84145
 386/bin/aux/typepasswd - 775 sys sys 1168402288 69738
 386/bin/aux/usage - 775 sys sys 1168402288 59809
-386/bin/aux/vga - 775 sys sys 1168402289 336242
+386/bin/aux/vga - 775 sys sys 1176488414 336166
 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
@@ -286,7 +286,7 @@
 386/bin/iostats - 775 sys sys 1168402317 100378
 386/bin/ip - 20000000775 sys sys 1016920851 0
 386/bin/ip/dhcpclient - 775 sys sys 1168402317 94377
-386/bin/ip/dhcpd - 775 sys sys 1172980949 151301
+386/bin/ip/dhcpd - 775 sys sys 1176488415 151225
 386/bin/ip/dhcpleases - 775 sys sys 1169612024 86533
 386/bin/ip/ftpd - 775 sys sys 1169612025 170706
 386/bin/ip/gizzard - 775 sys sys 1081480408 101521
@@ -303,18 +303,18 @@
 386/bin/ip/httpd/wikipost - 775 sys sys 1168402323 114908
 386/bin/ip/httpfile - 775 sys sys 1168402324 284262
 386/bin/ip/imap4d - 775 sys sys 1169265834 238152
-386/bin/ip/ipconfig - 775 sys sys 1169612025 139550
+386/bin/ip/ipconfig - 775 sys sys 1176488416 139474
 386/bin/ip/ping - 775 sys sys 1175887160 84684
 386/bin/ip/ppp - 775 sys sys 1169612026 220423
 386/bin/ip/pppoe - 775 sys sys 1168402326 77787
 386/bin/ip/pptp - 775 sys sys 1169612026 127215
 386/bin/ip/pptpd - 775 sys sys 1169612027 126140
-386/bin/ip/rarpd - 775 sys sys 1169612027 113077
+386/bin/ip/rarpd - 775 sys sys 1176488416 113001
 386/bin/ip/rexexec - 775 sys sys 1168402327 90215
 386/bin/ip/rip - 775 sys sys 1169612027 91489
 386/bin/ip/rlogind - 775 sys sys 1168402328 67654
 386/bin/ip/telnetd - 775 sys sys 1168402329 123319
-386/bin/ip/tftpd - 775 sys sys 1169612028 132083
+386/bin/ip/tftpd - 775 sys sys 1176488417 132007
 386/bin/ip/traceroute - 775 sys sys 1169179342 74185
 386/bin/ip/udpecho - 775 sys sys 1148500666 43190
 386/bin/join - 775 sys sys 1168402330 114382
@@ -339,17 +339,17 @@
 386/bin/mug - 775 sys sys 1168402336 176379
 386/bin/mv - 775 sys sys 1168402336 66629
 386/bin/ndb - 20000000775 sys sys 985743147 0
-386/bin/ndb/cs - 775 sys sys 1169612028 150911
-386/bin/ndb/csquery - 775 sys sys 1168402337 61702
+386/bin/ndb/cs - 775 sys sys 1176488417 150835
+386/bin/ndb/csquery - 775 sys sys 1176488418 61652
 386/bin/ndb/dns - 775 sys sys 1175972560 287154
 386/bin/ndb/dnsdebug - 775 sys sys 1175972561 262013
 386/bin/ndb/dnsquery - 775 sys sys 1174704818 64417
 386/bin/ndb/dnstcp - 775 sys sys 1175972561 260477
-386/bin/ndb/ipquery - 775 sys sys 1169612031 96994
+386/bin/ndb/ipquery - 775 sys sys 1176488418 96918
 386/bin/ndb/mkdb - 775 sys sys 1168402340 64211
-386/bin/ndb/mkhash - 775 sys sys 1168402340 84780
-386/bin/ndb/mkhosts - 775 sys sys 1168402340 85823
-386/bin/ndb/query - 775 sys sys 1173298951 83990
+386/bin/ndb/mkhash - 775 sys sys 1176488418 84704
+386/bin/ndb/mkhosts - 775 sys sys 1176488419 85747
+386/bin/ndb/query - 775 sys sys 1176488419 83914
 386/bin/netkey - 775 sys sys 1168402341 72717
 386/bin/netstat - 775 sys sys 1169612032 85184
 386/bin/news - 775 sys sys 1168402341 71956
@@ -382,7 +382,7 @@
 386/bin/read - 775 sys sys 1168402347 58283
 386/bin/replica - 20000000775 sys sys 1018321168 0
 386/bin/replica/applychanges - 775 sys sys 1167451365 98591
-386/bin/replica/applylog - 775 sys sys 1138497179 119480
+386/bin/replica/applylog - 775 sys sys 1176488419 119653
 386/bin/replica/changes - 775 sys sys 1020319082 42
 386/bin/replica/compactdb - 775 sys sys 1167451365 78478
 386/bin/replica/pull - 775 sys sys 1020319083 39
@@ -508,7 +508,7 @@
 386/bin/vncs - 775 sys sys 1135447284 472345
 386/bin/vncv - 775 sys sys 1132506891 519422
 386/bin/vt - 775 sys sys 1133820585 176212
-386/bin/vtdump - 775 sys sys 1132506892 159534
+386/bin/vtdump - 775 sys sys 1176488420 159534
 386/bin/wc - 775 sys sys 1148500701 41191
 386/bin/webcookies - 775 sys sys 1168402358 167592
 386/bin/webfs - 775 sys sys 1162241050 361789
@@ -5441,7 +5441,8 @@ rc/bin/b: - 775 sys sys 1015089510 204
 rc/bin/broke - 775 sys sys 1143389260 142
 rc/bin/bundle - 775 sys sys 945617206 173
 rc/bin/c: - 775 sys sys 1015089511 86
-rc/bin/cpurc - 775 sys sys 1176314252 2069
+rc/bin/cpurc - 775 sys sys 1176444833 1884
+rc/bin/cpurc.local - 775 sys sys 1176502011 448
 rc/bin/delkey - 775 sys sys 1109429137 643
 rc/bin/dial - 20000000775 sys sys 1059180057 0
 rc/bin/diffy - 775 sys sys 1140694870 277
@@ -5562,7 +5563,8 @@ rc/bin/start - 775 sys sys 945617209 120
 rc/bin/stock - 775 sys sys 1143126371 292
 rc/bin/stop - 775 sys sys 945617209 110
 rc/bin/tel - 775 sys sys 1161209756 128
-rc/bin/termrc - 775 sys sys 1176432928 2436
+rc/bin/termrc - 775 sys sys 1176444113 1665
+rc/bin/termrc.local - 775 sys sys 1176500067 425
 rc/bin/thesaurus - 775 sys sys 1068054167 246
 rc/bin/tlsclienttunnel - 775 sys sys 1024375633 153
 rc/bin/tlssrvtunnel - 775 sys sys 1024375634 175
@@ -6031,7 +6033,7 @@ sys/include/frame.h - 664 sys sys 1147706379 2682
 sys/include/geometry.h - 664 sys sys 1014929063 2632
 sys/include/html.h - 664 sys sys 1128662123 15232
 sys/include/httpd.h - 664 sys sys 1091904418 5771
-sys/include/ip.h - 664 sys sys 1103554773 2989
+sys/include/ip.h - 664 sys sys 1176499323 2978
 sys/include/keyboard.h - 664 sys sys 1131637696 865
 sys/include/libc.h - 664 sys sys 1168306860 19851
 sys/include/libsec.h - 664 sys sys 1124709121 9345
@@ -6039,7 +6041,7 @@ sys/include/mach.h - 664 sys sys 1143814376 8641
 sys/include/memdraw.h - 664 sys sys 1091904419 5645
 sys/include/memlayer.h - 664 sys sys 1051031022 1851
 sys/include/mouse.h - 664 sys sys 1035232010 1003
-sys/include/mp.h - 664 sys sys 1014929065 4610
+sys/include/mp.h - 664 sys sys 1176499134 4803
 sys/include/ndb.h - 664 sys sys 1144174492 4412
 sys/include/nfs3.h - 664 sys sys 1045589438 15082
 sys/include/plumb.h - 664 sys sys 1014929065 989
@@ -6616,7 +6618,7 @@ sys/lib/man - 20000000775 sys sys 1039727410 0
 sys/lib/man/checkman.awk - 664 sys sys 1017679304 6277
 sys/lib/man/colophon - 664 sys sys 956337727 545
 sys/lib/man/lookman - 20000000775 sys sys 1045538130 0
-sys/lib/man/lookman/index - 664 sys sys 1156883241 1500899
+sys/lib/man/lookman/index - 664 sys sys 1176485529 1500899
 sys/lib/man/lookman/junkwords - 664 sys sys 956337764 3059
 sys/lib/man/lookman/mkindex - 775 sys sys 1017679307 306
 sys/lib/man/mkhtmlindex - 775 sys sys 1072129593 1235
@@ -7604,7 +7606,7 @@ sys/man/3/pnp - 664 sys sys 1088560895 4547
 sys/man/3/proc - 664 sys sys 1138458595 12062
 sys/man/3/root - 664 sys sys 1046958450 632
 sys/man/3/rtc - 664 sys sys 954378857 667
-sys/man/3/sd - 664 sys sys 1167774768 5652
+sys/man/3/sd - 664 sys sys 1176502187 5678
 sys/man/3/segment - 664 sys sys 1017423721 2378
 sys/man/3/srv - 664 sys sys 958419690 1470
 sys/man/3/ssl - 664 sys sys 1018386776 3413
@@ -7741,7 +7743,7 @@ sys/man/8/getflags - 664 sys sys 1159419702 1713
 sys/man/8/gpsfs - 664 sys sys 1165623047 4918
 sys/man/8/httpd - 664 sys sys 1165623004 6865
 sys/man/8/init - 664 sys sys 944959679 1430
-sys/man/8/ipconfig - 664 sys sys 1159419702 6170
+sys/man/8/ipconfig - 664 sys sys 1176502409 6209
 sys/man/8/ipserv - 664 sys sys 1095862383 4375
 sys/man/8/kfscmd - 664 sys sys 1068569797 4515
 sys/man/8/listen - 664 sys sys 1174792129 3826
@@ -9956,13 +9958,13 @@ sys/src/cmd/cwfs/9netics64.8k - 20000000775 sys sys 1174799194 0
 sys/src/cmd/cwfs/9netics64.8k/conf.c - 664 sys sys 1171171458 564
 sys/src/cmd/cwfs/9netics64.8k/dat.h - 664 sys sys 1171171387 791
 sys/src/cmd/cwfs/9netics64.8k/mkfile - 664 sys sys 1171519752 28
-sys/src/cmd/cwfs/9p1.c - 664 sys sys 1174716878 29747
+sys/src/cmd/cwfs/9p1.c - 664 sys sys 1176500150 29749
 sys/src/cmd/cwfs/9p1.h - 664 sys sys 1171159776 2128
 sys/src/cmd/cwfs/9p1lib.c - 664 sys sys 1171145882 7894
 sys/src/cmd/cwfs/9p2.c - 664 sys sys 1174942081 35261
 sys/src/cmd/cwfs/README - 664 sys sys 1171520084 344
 sys/src/cmd/cwfs/all.h - 664 sys sys 1174716764 2186
-sys/src/cmd/cwfs/auth.c - 664 sys sys 1174797532 5840
+sys/src/cmd/cwfs/auth.c - 664 sys sys 1176500150 5842
 sys/src/cmd/cwfs/chk.c - 664 sys sys 1174716979 14579
 sys/src/cmd/cwfs/choline - 20000000775 sys sys 1174799194 0
 sys/src/cmd/cwfs/choline/conf.c - 664 sys sys 1171170952 412
@@ -10001,8 +10003,8 @@ sys/src/cmd/cwfs/fs64/dat.h - 664 sys sys 1171172076 786
 sys/src/cmd/cwfs/fs64/mkfile - 664 sys sys 1174799404 24
 sys/src/cmd/cwfs/fworm.c - 664 sys sys 1174716894 1814
 sys/src/cmd/cwfs/io.h - 664 sys sys 1174280312 866
-sys/src/cmd/cwfs/iobuf.c - 664 sys sys 1174716894 4713
-sys/src/cmd/cwfs/juke.c - 664 sys sys 1174799503 28859
+sys/src/cmd/cwfs/iobuf.c - 664 sys sys 1176500092 4722
+sys/src/cmd/cwfs/juke.c - 664 sys sys 1176500144 28859
 sys/src/cmd/cwfs/lrand.c - 664 sys sys 1171160167 1070
 sys/src/cmd/cwfs/main.c - 664 sys sys 1174799729 9976
 sys/src/cmd/cwfs/malloc.c - 664 sys sys 1174281557 2360
@@ -10014,7 +10016,7 @@ sys/src/cmd/cwfs/portdat.h - 664 sys sys 1174716952 15241
 sys/src/cmd/cwfs/portfns.h - 664 sys sys 1174798778 6701
 sys/src/cmd/cwfs/portmkfile - 664 sys sys 1174798711 791
 sys/src/cmd/cwfs/scsi.c - 664 sys sys 1174282908 8865
-sys/src/cmd/cwfs/sub.c - 664 sys sys 1174798849 24353
+sys/src/cmd/cwfs/sub.c - 664 sys sys 1176500092 24371
 sys/src/cmd/cwfs/time.c - 664 sys sys 1171500176 1696
 sys/src/cmd/cwfs/uidgid.c - 664 sys sys 1174717700 9421
 sys/src/cmd/cwfs/wren.c - 664 sys sys 1174458303 2737
@@ -10277,7 +10279,7 @@ sys/src/cmd/fossil/archive.c - 664 sys sys 1087005594 10230
 sys/src/cmd/fossil/build - 664 sys sys 1042005505 449
 sys/src/cmd/fossil/buildsh - 775 sys sys 1042005505 561
 sys/src/cmd/fossil/bwatch.c - 664 sys sys 1042005505 6754
-sys/src/cmd/fossil/cache.c - 664 sys sys 1143759345 43875
+sys/src/cmd/fossil/cache.c - 664 sys sys 1176500208 43930
 sys/src/cmd/fossil/check.c - 664 sys sys 1173736846 17436
 sys/src/cmd/fossil/conf.rc - 775 sys sys 1084333190 1416
 sys/src/cmd/fossil/dat.h - 664 sys sys 1158373945 7622
@@ -12475,7 +12477,7 @@ 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 1168894057 2587
-sys/src/cmd/ip/ipconfig.c - 664 sys sys 1166761782 35168
+sys/src/cmd/ip/ipconfig.c - 664 sys sys 1176502464 35429
 sys/src/cmd/ip/measure.c - 664 sys sys 944961011 3733
 sys/src/cmd/ip/mkfile - 664 sys sys 1169163575 1250
 sys/src/cmd/ip/ping.c - 664 sys sys 1175868270 9699
@@ -15228,7 +15230,7 @@ sys/src/libdraw/makefile - 664 sys sys 944961725 648
 sys/src/libdraw/menuhit.c - 664 sys sys 1014927876 7263
 sys/src/libdraw/mkfile - 664 sys sys 1097972686 1034
 sys/src/libdraw/mkfont.c - 664 sys sys 944961725 1283
-sys/src/libdraw/mouse.c - 664 sys sys 1030970092 2559
+sys/src/libdraw/mouse.c - 664 sys sys 1176502264 2623
 sys/src/libdraw/newwindow.c - 664 sys sys 1035232036 424
 sys/src/libdraw/openfont.c - 664 sys sys 1014927876 495
 sys/src/libdraw/poly.c - 664 sys sys 1040442974 1689
@@ -15249,7 +15251,7 @@ 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
-sys/src/libdraw/writecolmap.c - 664 sys sys 944961725 725
+sys/src/libdraw/writecolmap.c - 664 sys sys 1176502270 788
 sys/src/libdraw/writeimage.c - 664 sys sys 1014927877 4459
 sys/src/libdraw/writesubfont.c - 664 sys sys 944961725 689
 sys/src/libflate - 20000000775 sys sys 1045502936 0
@@ -15768,3 +15770,117 @@ 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
+386/bin/acme - 775 sys sys 1176520474 432232
+386/bin/bitsy/keyboard - 775 sys sys 1176520477 306827
+386/bin/bitsy/prompter - 775 sys sys 1176520478 287120
+386/bin/fs/32vfs - 775 sys sys 1176520483 95557
+386/bin/fs/cpiofs - 775 sys sys 1176520483 94317
+386/bin/fs/tapfs - 775 sys sys 1176520484 96679
+386/bin/fs/tarfs - 775 sys sys 1176520484 96328
+386/bin/fs/tpfs - 775 sys sys 1176520484 93870
+386/bin/fs/v10fs - 775 sys sys 1176520484 96195
+386/bin/fs/v6fs - 775 sys sys 1176520485 95281
+386/bin/fs/zipfs - 775 sys sys 1176520485 109840
+386/bin/games/4s - 775 sys sys 1176520486 178884
+386/bin/games/5s - 775 sys sys 1176520486 181172
+386/bin/games/catclock - 775 sys sys 1176520487 141172
+386/bin/games/juggle - 775 sys sys 1176520487 125686
+386/bin/games/mahjongg - 775 sys sys 1176520487 166549
+386/bin/games/memo - 775 sys sys 1176520488 157934
+386/bin/games/sokoban - 775 sys sys 1176520488 165396
+386/bin/games/sudoku - 775 sys sys 1176520489 172291
+386/bin/snap - 775 sys sys 1176520496 314288
+386/bin/snapfs - 775 sys sys 1176520497 388453
+386/bin/srvold9p - 775 sys sys 1176520499 130362
+386/bin/troff2html - 775 sys sys 1176520504 85920
+386/bin/usb/usbaudio - 775 sys sys 1176520513 189410
+386/bin/usb/usbd - 775 sys sys 1176520513 130769
+386/bin/usb/usbmouse - 775 sys sys 1176520514 109605
+386/bin/venti/buildindex - 775 sys sys 1176520515 154354
+386/bin/venti/checkarenas - 775 sys sys 1176520515 158587
+386/bin/venti/checkindex - 775 sys sys 1176520516 155237
+386/bin/venti/clumpstats - 775 sys sys 1176520516 145386
+386/bin/venti/copy - 775 sys sys 1176520516 106412
+386/bin/venti/findscore - 775 sys sys 1176520517 127797
+386/bin/venti/fmtarenas - 775 sys sys 1176520517 129968
+386/bin/venti/fmtindex - 775 sys sys 1176520517 145638
+386/bin/venti/fmtisect - 775 sys sys 1176520518 146768
+386/bin/venti/printarena - 775 sys sys 1176520518 157010
+386/bin/venti/rdarena - 775 sys sys 1176520518 127265
+386/bin/venti/read - 775 sys sys 1176520519 102876
+386/bin/venti/sync - 775 sys sys 1176520519 102021
+386/bin/venti/syncindex - 775 sys sys 1176520519 169644
+386/bin/venti/venti - 775 sys sys 1176520520 245622
+386/bin/venti/verifyarena - 775 sys sys 1176520520 104147
+386/bin/venti/wrarena - 775 sys sys 1176520521 176248
+386/bin/venti/write - 775 sys sys 1176520521 102825
+386/bin/vncs - 775 sys sys 1176520522 472813
+386/bin/vncv - 775 sys sys 1176520523 520140
+386/bin/wikifs - 775 sys sys 1176520525 204359
+386/bin/pic - 775 sys sys 1176520490 307917
+386/bin/plot - 775 sys sys 1176520491 222645
+386/bin/plumb - 775 sys sys 1176520491 69487
+386/bin/plumber - 775 sys sys 1176520491 170951
+386/bin/proof - 775 sys sys 1176520492 179040
+386/bin/rio - 775 sys sys 1176520493 313447
+386/bin/scat - 775 sys sys 1176520494 284766
+386/bin/scp - 775 sys sys 1176520495 152584
+386/bin/scuzz - 775 sys sys 1176520495 113699
+386/bin/spin - 775 sys sys 1176520498 760856
+386/bin/ssh - 775 sys sys 1176520499 211528
+386/bin/webfs - 775 sys sys 1176520524 361737
+386/bin/auth/fgui - 775 sys sys 1176520475 218973
+386/bin/aux/samterm - 775 sys sys 1176520475 253280
+386/bin/aux/sprog - 775 sys sys 1176520476 79503
+386/bin/aux/sshserve - 775 sys sys 1176520476 253292
+386/bin/cwfs - 775 sys sys 1176520479 366611
+386/bin/fossil/flchk - 775 sys sys 1176520480 239078
+386/bin/fossil/flfmt - 775 sys sys 1176520481 247129
+386/bin/fossil/fossil - 775 sys sys 1176520483 364516
+386/bin/ip/ipconfig - 775 sys sys 1176520489 139521
+386/bin/replica/applychanges - 775 sys sys 1176520492 98766
+386/bin/replica/compactdb - 775 sys sys 1176520492 78651
+386/bin/replica/updatedb - 775 sys sys 1176520493 96097
+386/bin/sshnet - 775 sys sys 1176520500 289526
+386/bin/syscall - 775 sys sys 1176520500 74212
+386/bin/tbl - 775 sys sys 1176520501 113420
+386/bin/tcs - 775 sys sys 1176520502 320129
+386/bin/telco - 775 sys sys 1176520502 103501
+386/bin/trace - 775 sys sys 1176520502 181814
+386/bin/troff - 775 sys sys 1176520503 360243
+386/bin/upas/addhash - 775 sys sys 1176520504 72117
+386/bin/upas/aliasmail - 775 sys sys 1176520504 105497
+386/bin/upas/bayes - 775 sys sys 1176520504 74768
+386/bin/upas/deliver - 775 sys sys 1176520505 100524
+386/bin/upas/filter - 775 sys sys 1176520505 148142
+386/bin/upas/fs - 775 sys sys 1176520506 333115
+386/bin/upas/list - 775 sys sys 1176520506 83035
+386/bin/upas/ml - 775 sys sys 1176520507 124309
+386/bin/upas/mlmgr - 775 sys sys 1176520507 104932
+386/bin/upas/mlowner - 775 sys sys 1176520507 92263
+386/bin/upas/msgtok - 775 sys sys 1176520508 76758
+386/bin/upas/nedmail - 775 sys sys 1176520508 157330
+386/bin/upas/pop3 - 775 sys sys 1176520509 262876
+386/bin/upas/qer - 775 sys sys 1176520509 100587
+386/bin/upas/ratfs - 775 sys sys 1176520509 111573
+386/bin/upas/runq - 775 sys sys 1176520509 114236
+386/bin/upas/scanmail - 775 sys sys 1176520510 129604
+386/bin/upas/send - 775 sys sys 1176520510 193434
+386/bin/upas/smtp - 775 sys sys 1176520511 275966
+386/bin/upas/smtpd - 775 sys sys 1176520511 332397
+386/bin/upas/testscan - 775 sys sys 1176520512 83863
+386/bin/upas/token - 775 sys sys 1176520512 77789
+386/bin/upas/unesc - 775 sys sys 1176520512 60137
+386/bin/upas/vf - 775 sys sys 1176520512 97315
+386/bin/vac - 775 sys sys 1176520514 171281
+386/bin/vacfs - 775 sys sys 1176520514 176091
+386/bin/vt - 775 sys sys 1176520523 176508
+386/lib/ape/libdraw.a - 664 sys sys 1176520526 621972
+386/lib/libc.a - 664 sys sys 1176520527 503120
+386/lib/libdraw.a - 664 sys sys 1176520528 374886
+386/lib/libip.a - 664 sys sys 1176520528 35672
+386/lib/libmp.a - 664 sys sys 1176520528 79978
+386/lib/libndb.a - 664 sys sys 1176520529 64470
+386/lib/libsec.a - 664 sys sys 1176520530 646724
+386/lib/libsunrpc.a - 664 sys sys 1176520531 353266
+sys/src/cmd/mkfile - 664 sys sys 1176520958 2674

+ 148 - 145
dist/replica/plan9.db

@@ -20,7 +20,7 @@
 386/bin/9660srv - 775 sys sys 1168402261 104975
 386/bin/aan - 775 sys sys 1168402261 131298
 386/bin/acid - 775 sys sys 1172808055 401961
-386/bin/acme - 775 sys sys 1174964422 432256
+386/bin/acme - 775 sys sys 1176520474 432232
 386/bin/ape - 20000000775 sys sys 1016944144 0
 386/bin/ape/basename - 775 sys sys 1173754547 134719
 386/bin/ape/cc - 775 sys sys 1168402263 70642
@@ -45,7 +45,7 @@
 386/bin/auth - 20000000775 sys sys 1016920815 0
 386/bin/auth/aescbc - 775 sys sys 1174964423 141321
 386/bin/auth/asn12rsa - 775 sys sys 1168402266 120828
-386/bin/auth/authsrv - 775 sys sys 1172808056 166692
+386/bin/auth/authsrv - 775 sys sys 1176488412 166616
 386/bin/auth/changeuser - 775 sys sys 1168402267 97488
 386/bin/auth/convkeys - 775 sys sys 1174964423 88664
 386/bin/auth/convkeys2 - 775 sys sys 1174964423 88723
@@ -54,8 +54,8 @@
 386/bin/auth/disable - 775 sys sys 1020319057 146
 386/bin/auth/enable - 775 sys sys 1020319057 134
 386/bin/auth/factotum - 775 sys sys 1174964424 322628
-386/bin/auth/fgui - 775 sys sys 1168402269 218990
-386/bin/auth/guard.srv - 775 sys sys 1172808056 145120
+386/bin/auth/fgui - 775 sys sys 1176520475 218973
+386/bin/auth/guard.srv - 775 sys sys 1176488412 145044
 386/bin/auth/iam - 775 sys sys 1085076981 50791
 386/bin/auth/keyfs - 775 sys sys 1174964424 116560
 386/bin/auth/login - 775 sys sys 1168402270 104747
@@ -72,7 +72,7 @@
 386/bin/auth/rsagen - 775 sys sys 1168402273 153528
 386/bin/auth/secretpem - 775 sys sys 1045537944 118526
 386/bin/auth/secstore - 775 sys sys 1174964425 196447
-386/bin/auth/secstored - 775 sys sys 1172808057 198043
+386/bin/auth/secstored - 775 sys sys 1176488413 197967
 386/bin/auth/secuser - 775 sys sys 1168402275 153231
 386/bin/auth/status - 775 sys sys 1020319060 738
 386/bin/auth/uniq - 775 sys sys 1168402275 63314
@@ -90,7 +90,7 @@
 386/bin/aux/astarld - 775 sys sys 1168402277 64918
 386/bin/aux/cddb - 775 sys sys 1168402277 72541
 386/bin/aux/clog - 775 sys sys 1168402277 66689
-386/bin/aux/consolefs - 775 sys sys 1168402278 156279
+386/bin/aux/consolefs - 775 sys sys 1176488413 156203
 386/bin/aux/conswdir - 775 sys sys 1062080411 38855
 386/bin/aux/cropmarks - 775 sys sys 1020319062 1808
 386/bin/aux/data2s - 775 sys sys 1168402278 60761
@@ -136,11 +136,11 @@
 386/bin/aux/posttek - 775 sys sys 1087442508 163239
 386/bin/aux/rdwr - 775 sys sys 1148500602 38338
 386/bin/aux/reboot - 775 sys sys 1168402286 62162
-386/bin/aux/samterm - 775 sys sys 1133287401 250207
+386/bin/aux/samterm - 775 sys sys 1176520475 253280
 386/bin/aux/searchfs - 775 sys sys 1168402286 89795
-386/bin/aux/sprog - 775 sys sys 1130594714 79372
+386/bin/aux/sprog - 775 sys sys 1176520476 79503
 386/bin/aux/ssh_genkey - 775 sys sys 1045537957 194629
-386/bin/aux/sshserve - 775 sys sys 1132506841 252850
+386/bin/aux/sshserve - 775 sys sys 1176520476 253292
 386/bin/aux/statusbar - 775 sys sys 1168402287 152227
 386/bin/aux/stub - 775 sys sys 1168402287 141090
 386/bin/aux/tcpostio - 775 sys sys 1094040084 200808
@@ -150,7 +150,7 @@
 386/bin/aux/trampoline - 775 sys sys 1168402288 84145
 386/bin/aux/typepasswd - 775 sys sys 1168402288 69738
 386/bin/aux/usage - 775 sys sys 1168402288 59809
-386/bin/aux/vga - 775 sys sys 1168402289 336242
+386/bin/aux/vga - 775 sys sys 1176488414 336166
 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
@@ -163,11 +163,11 @@
 386/bin/bind - 775 sys sys 1168402290 59805
 386/bin/bitsy - 20000000775 sys sys 1018721039 0
 386/bin/bitsy/bitsyload - 775 sys sys 1168402290 63602
-386/bin/bitsy/keyboard - 775 sys sys 1168402291 306812
+386/bin/bitsy/keyboard - 775 sys sys 1176520477 306827
 386/bin/bitsy/light - 775 sys sys 1020319072 242
 386/bin/bitsy/params - 775 sys sys 1168402291 59015
 386/bin/bitsy/pencal - 775 sys sys 1168402291 117619
-386/bin/bitsy/prompter - 775 sys sys 1168402292 287105
+386/bin/bitsy/prompter - 775 sys sys 1176520478 287120
 386/bin/bmp - 775 sys sys 1168402292 158011
 386/bin/bunzip2 - 775 sys sys 1168402292 97734
 386/bin/bzip2 - 775 sys sys 1168402293 114262
@@ -192,7 +192,7 @@
 386/bin/cpp - 775 sys sys 1168402297 150459
 386/bin/cpu - 775 sys sys 1168402297 139484
 386/bin/crop - 775 sys sys 1168402298 116374
-386/bin/cwfs - 775 sys sys 1175023297 366681
+386/bin/cwfs - 775 sys sys 1176520479 366611
 386/bin/date - 775 sys sys 1148500618 43311
 386/bin/db - 775 sys sys 1172203054 346003
 386/bin/dc - 775 sys sys 1168402299 99260
@@ -236,33 +236,33 @@
 386/bin/fortune - 775 sys sys 1168402308 67356
 386/bin/fossil - 20000000775 sys sys 1042005470 0
 386/bin/fossil/conf - 775 sys sys 1085077052 1506
-386/bin/fossil/flchk - 775 sys sys 1173754556 239100
-386/bin/fossil/flfmt - 775 sys sys 1168402309 247151
-386/bin/fossil/fossil - 775 sys sys 1173754557 364538
+386/bin/fossil/flchk - 775 sys sys 1176520480 239078
+386/bin/fossil/flfmt - 775 sys sys 1176520481 247129
+386/bin/fossil/fossil - 775 sys sys 1176520483 364516
 386/bin/fossil/last - 775 sys sys 1168402310 63550
 386/bin/freq - 775 sys sys 1168402310 62040
 386/bin/fs - 20000000775 sys sys 954380769 0
-386/bin/fs/32vfs - 775 sys sys 1134389866 94530
-386/bin/fs/cpiofs - 775 sys sys 1134389866 93458
-386/bin/fs/tapfs - 775 sys sys 1134389866 96013
-386/bin/fs/tarfs - 775 sys sys 1134389866 94395
-386/bin/fs/tpfs - 775 sys sys 1134389867 93216
-386/bin/fs/v10fs - 775 sys sys 1134389867 94594
-386/bin/fs/v6fs - 775 sys sys 1134389867 94512
-386/bin/fs/zipfs - 775 sys sys 1134389867 109110
+386/bin/fs/32vfs - 775 sys sys 1176520483 95557
+386/bin/fs/cpiofs - 775 sys sys 1176520483 94317
+386/bin/fs/tapfs - 775 sys sys 1176520484 96679
+386/bin/fs/tarfs - 775 sys sys 1176520484 96328
+386/bin/fs/tpfs - 775 sys sys 1176520484 93870
+386/bin/fs/v10fs - 775 sys sys 1176520484 96195
+386/bin/fs/v6fs - 775 sys sys 1176520485 95281
+386/bin/fs/zipfs - 775 sys sys 1176520485 109840
 386/bin/ftpfs - 775 sys sys 1169612023 273246
 386/bin/games - 20000000775 sys sys 1096298711 0
-386/bin/games/4s - 775 sys sys 1132506854 178226
-386/bin/games/5s - 775 sys sys 1132506855 180514
-386/bin/games/catclock - 775 sys sys 1131646640 140907
-386/bin/games/juggle - 775 sys sys 1131646640 125428
+386/bin/games/4s - 775 sys sys 1176520486 178884
+386/bin/games/5s - 775 sys sys 1176520486 181172
+386/bin/games/catclock - 775 sys sys 1176520487 141172
+386/bin/games/juggle - 775 sys sys 1176520487 125686
 386/bin/games/jukebox - 775 sys sys 1105589128 264821
 386/bin/games/jukefs - 775 sys sys 1105589129 165320
-386/bin/games/mahjongg - 775 sys sys 1132506855 164643
-386/bin/games/memo - 775 sys sys 1132506856 157654
+386/bin/games/mahjongg - 775 sys sys 1176520487 166549
+386/bin/games/memo - 775 sys sys 1176520488 157934
 386/bin/games/playlistfs - 775 sys sys 1105589129 148484
-386/bin/games/sokoban - 775 sys sys 1132506856 165068
-386/bin/games/sudoku - 775 sys sys 1117249746 171666
+386/bin/games/sokoban - 775 sys sys 1176520488 165396
+386/bin/games/sudoku - 775 sys sys 1176520489 172291
 386/bin/getmap - 775 sys sys 1168402311 65423
 386/bin/gif - 775 sys sys 1168402312 158555
 386/bin/grap - 775 sys sys 1173754557 282722
@@ -286,7 +286,7 @@
 386/bin/iostats - 775 sys sys 1168402317 100378
 386/bin/ip - 20000000775 sys sys 1016920851 0
 386/bin/ip/dhcpclient - 775 sys sys 1168402317 94377
-386/bin/ip/dhcpd - 775 sys sys 1172980949 151301
+386/bin/ip/dhcpd - 775 sys sys 1176488415 151225
 386/bin/ip/dhcpleases - 775 sys sys 1169612024 86533
 386/bin/ip/ftpd - 775 sys sys 1169612025 170706
 386/bin/ip/gizzard - 775 sys sys 1081480408 101521
@@ -303,18 +303,18 @@
 386/bin/ip/httpd/wikipost - 775 sys sys 1168402323 114908
 386/bin/ip/httpfile - 775 sys sys 1168402324 284262
 386/bin/ip/imap4d - 775 sys sys 1169265834 238152
-386/bin/ip/ipconfig - 775 sys sys 1169612025 139550
+386/bin/ip/ipconfig - 775 sys sys 1176520489 139521
 386/bin/ip/ping - 775 sys sys 1175887160 84684
 386/bin/ip/ppp - 775 sys sys 1169612026 220423
 386/bin/ip/pppoe - 775 sys sys 1168402326 77787
 386/bin/ip/pptp - 775 sys sys 1169612026 127215
 386/bin/ip/pptpd - 775 sys sys 1169612027 126140
-386/bin/ip/rarpd - 775 sys sys 1169612027 113077
+386/bin/ip/rarpd - 775 sys sys 1176488416 113001
 386/bin/ip/rexexec - 775 sys sys 1168402327 90215
 386/bin/ip/rip - 775 sys sys 1169612027 91489
 386/bin/ip/rlogind - 775 sys sys 1168402328 67654
 386/bin/ip/telnetd - 775 sys sys 1168402329 123319
-386/bin/ip/tftpd - 775 sys sys 1169612028 132083
+386/bin/ip/tftpd - 775 sys sys 1176488417 132007
 386/bin/ip/traceroute - 775 sys sys 1169179342 74185
 386/bin/ip/udpecho - 775 sys sys 1148500666 43190
 386/bin/join - 775 sys sys 1168402330 114382
@@ -339,17 +339,17 @@
 386/bin/mug - 775 sys sys 1168402336 176379
 386/bin/mv - 775 sys sys 1168402336 66629
 386/bin/ndb - 20000000775 sys sys 985743147 0
-386/bin/ndb/cs - 775 sys sys 1169612028 150911
-386/bin/ndb/csquery - 775 sys sys 1168402337 61702
+386/bin/ndb/cs - 775 sys sys 1176488417 150835
+386/bin/ndb/csquery - 775 sys sys 1176488418 61652
 386/bin/ndb/dns - 775 sys sys 1175972560 287154
 386/bin/ndb/dnsdebug - 775 sys sys 1175972561 262013
 386/bin/ndb/dnsquery - 775 sys sys 1174704818 64417
 386/bin/ndb/dnstcp - 775 sys sys 1175972561 260477
-386/bin/ndb/ipquery - 775 sys sys 1169612031 96994
+386/bin/ndb/ipquery - 775 sys sys 1176488418 96918
 386/bin/ndb/mkdb - 775 sys sys 1168402340 64211
-386/bin/ndb/mkhash - 775 sys sys 1168402340 84780
-386/bin/ndb/mkhosts - 775 sys sys 1168402340 85823
-386/bin/ndb/query - 775 sys sys 1173298951 83990
+386/bin/ndb/mkhash - 775 sys sys 1176488418 84704
+386/bin/ndb/mkhosts - 775 sys sys 1176488419 85747
+386/bin/ndb/query - 775 sys sys 1176488419 83914
 386/bin/netkey - 775 sys sys 1168402341 72717
 386/bin/netstat - 775 sys sys 1169612032 85184
 386/bin/news - 775 sys sys 1168402341 71956
@@ -363,17 +363,17 @@
 386/bin/passwd - 775 sys sys 1168402344 84333
 386/bin/pbd - 775 sys sys 1085077087 4661
 386/bin/pcc - 775 sys sys 1168402344 68241
-386/bin/pic - 775 sys sys 1134151358 305711
+386/bin/pic - 775 sys sys 1176520490 307917
 386/bin/pipefile - 775 sys sys 1148500683 39431
-386/bin/plot - 775 sys sys 1132506868 222348
-386/bin/plumb - 775 sys sys 1133287402 69363
-386/bin/plumber - 775 sys sys 1134389873 170459
+386/bin/plot - 775 sys sys 1176520491 222645
+386/bin/plumb - 775 sys sys 1176520491 69487
+386/bin/plumber - 775 sys sys 1176520491 170951
 386/bin/png - 775 sys sys 1168402344 164582
 386/bin/ppm - 775 sys sys 1168402345 149765
 386/bin/pr - 775 sys sys 1168402345 77717
 386/bin/primes - 775 sys sys 1172289653 63329
 386/bin/prof - 775 sys sys 1172203055 110892
-386/bin/proof - 775 sys sys 1132506869 178756
+386/bin/proof - 775 sys sys 1176520492 179040
 386/bin/ps - 775 sys sys 1168402346 68812
 386/bin/pwd - 775 sys sys 1148500685 36932
 386/bin/ramfs - 775 sys sys 1168402346 90080
@@ -381,52 +381,52 @@
 386/bin/rdbfs - 775 sys sys 1168402346 174602
 386/bin/read - 775 sys sys 1168402347 58283
 386/bin/replica - 20000000775 sys sys 1018321168 0
-386/bin/replica/applychanges - 775 sys sys 1167451365 98591
-386/bin/replica/applylog - 775 sys sys 1138497179 119480
+386/bin/replica/applychanges - 775 sys sys 1176520492 98766
+386/bin/replica/applylog - 775 sys sys 1176488419 119653
 386/bin/replica/changes - 775 sys sys 1020319082 42
-386/bin/replica/compactdb - 775 sys sys 1167451365 78478
+386/bin/replica/compactdb - 775 sys sys 1176520492 78651
 386/bin/replica/pull - 775 sys sys 1020319083 39
 386/bin/replica/push - 775 sys sys 1020319083 39
 386/bin/replica/scan - 775 sys sys 1020319083 39
 386/bin/replica/setupdirs - 775 sys sys 1020319083 44
-386/bin/replica/updatedb - 775 sys sys 1167451365 95926
+386/bin/replica/updatedb - 775 sys sys 1176520493 96097
 386/bin/resample - 775 sys sys 1168402347 121102
-386/bin/rio - 775 sys sys 1134389874 310310
+386/bin/rio - 775 sys sys 1176520493 313447
 386/bin/rm - 775 sys sys 1168402347 61568
 386/bin/rx - 775 sys sys 1168402347 82290
 386/bin/sam - 775 sys sys 1168633586 159364
-386/bin/scat - 775 sys sys 1134389875 284491
-386/bin/scp - 775 sys sys 1132506873 152166
-386/bin/scuzz - 775 sys sys 1161026499 113880
+386/bin/scat - 775 sys sys 1176520494 284766
+386/bin/scp - 775 sys sys 1176520495 152584
+386/bin/scuzz - 775 sys sys 1176520495 113699
 386/bin/sed - 775 sys sys 1168402348 89763
 386/bin/seq - 775 sys sys 1162241047 38441
 386/bin/sha1sum - 775 sys sys 1168402348 61366
 386/bin/size - 775 sys sys 1172203055 78705
 386/bin/sleep - 775 sys sys 1158088708 3875
-386/bin/snap - 775 sys sys 1136346852 313627
-386/bin/snapfs - 775 sys sys 1134389876 388292
+386/bin/snap - 775 sys sys 1176520496 314288
+386/bin/snapfs - 775 sys sys 1176520497 388453
 386/bin/sniffer - 775 sys sys 1038443185 99028
 386/bin/snoopy - 775 sys sys 1175913062 186718
 386/bin/sort - 775 sys sys 1168402349 82523
-386/bin/spin - 775 sys sys 1134151359 758520
+386/bin/spin - 775 sys sys 1176520498 760856
 386/bin/split - 775 sys sys 1168402349 75886
 386/bin/srv - 775 sys sys 1168402349 82813
 386/bin/srvfs - 775 sys sys 1162241047 40169
-386/bin/srvold9p - 775 sys sys 1134389877 130225
-386/bin/ssh - 775 sys sys 1133827764 211090
-386/bin/sshnet - 775 sys sys 1134389877 288327
+386/bin/srvold9p - 775 sys sys 1176520499 130362
+386/bin/ssh - 775 sys sys 1176520499 211528
+386/bin/sshnet - 775 sys sys 1176520500 289526
 386/bin/stats - 775 sys sys 1168402350 190989
 386/bin/strings - 775 sys sys 1168402350 62855
 386/bin/strip - 775 sys sys 1172203055 80694
 386/bin/sum - 775 sys sys 1148500691 39505
 386/bin/swap - 775 sys sys 1168402350 62373
-386/bin/syscall - 775 sys sys 1130594788 73568
+386/bin/syscall - 775 sys sys 1176520500 74212
 386/bin/tail - 775 sys sys 1168402351 66406
 386/bin/tar - 775 sys sys 1169151814 94824
-386/bin/tbl - 775 sys sys 1131302431 113308
-386/bin/tcs - 775 sys sys 1161026500 320293
+386/bin/tbl - 775 sys sys 1176520501 113420
+386/bin/tcs - 775 sys sys 1176520502 320129
 386/bin/tee - 775 sys sys 1148500692 38463
-386/bin/telco - 775 sys sys 1134389878 103347
+386/bin/telco - 775 sys sys 1176520502 103501
 386/bin/telnet - 775 sys sys 1168402351 80657
 386/bin/test - 775 sys sys 1168402351 70167
 386/bin/time - 775 sys sys 1168402352 61618
@@ -439,9 +439,9 @@
 386/bin/touch - 775 sys sys 1168402354 64048
 386/bin/tprof - 775 sys sys 1172203056 297762
 386/bin/tr - 775 sys sys 1168402355 62088
-386/bin/trace - 775 sys sys 1168402356 181838
-386/bin/troff - 775 sys sys 1134151360 357941
-386/bin/troff2html - 775 sys sys 1132506877 85770
+386/bin/trace - 775 sys sys 1176520502 181814
+386/bin/troff - 775 sys sys 1176520503 360243
+386/bin/troff2html - 775 sys sys 1176520504 85920
 386/bin/tweak - 775 sys sys 1168402356 193256
 386/bin/unicode - 775 sys sys 1168402356 62747
 386/bin/uniq - 775 sys sys 1168402357 62128
@@ -450,70 +450,71 @@
 386/bin/unmount - 775 sys sys 1148500700 36646
 386/bin/unzip - 775 sys sys 1168402357 90215
 386/bin/upas - 20000000775 sys sys 1016857390 0
-386/bin/upas/addhash - 775 sys sys 1130594796 71976
-386/bin/upas/aliasmail - 775 sys sys 1132506877 105106
-386/bin/upas/bayes - 775 sys sys 1130594796 74627
-386/bin/upas/deliver - 775 sys sys 1135101637 100133
-386/bin/upas/filter - 775 sys sys 1135101637 147751
-386/bin/upas/fs - 775 sys sys 1143863649 334451
+386/bin/upas/addhash - 775 sys sys 1176520504 72117
+386/bin/upas/aliasmail - 775 sys sys 1176520504 105497
+386/bin/upas/bayes - 775 sys sys 1176520504 74768
+386/bin/upas/deliver - 775 sys sys 1176520505 100524
+386/bin/upas/filter - 775 sys sys 1176520505 148142
+386/bin/upas/fs - 775 sys sys 1176520506 333115
 386/bin/upas/isspam - 775 sys sys 1064598349 38
-386/bin/upas/list - 775 sys sys 1135101638 82799
+386/bin/upas/list - 775 sys sys 1176520506 83035
 386/bin/upas/marshal - 775 sys sys 1169065328 134608
-386/bin/upas/ml - 775 sys sys 1132506879 123917
-386/bin/upas/mlmgr - 775 sys sys 1132506880 104539
-386/bin/upas/mlowner - 775 sys sys 1130594799 92131
+386/bin/upas/ml - 775 sys sys 1176520507 124309
+386/bin/upas/mlmgr - 775 sys sys 1176520507 104932
+386/bin/upas/mlowner - 775 sys sys 1176520507 92263
 386/bin/upas/msgcat - 775 sys sys 1064598353 38
-386/bin/upas/msgtok - 775 sys sys 1130594799 76642
-386/bin/upas/nedmail - 775 sys sys 1133287406 156889
-386/bin/upas/pop3 - 775 sys sys 1132506881 262327
-386/bin/upas/qer - 775 sys sys 1132506882 100194
-386/bin/upas/ratfs - 775 sys sys 1134389879 111381
-386/bin/upas/runq - 775 sys sys 1132506882 113845
-386/bin/upas/scanmail - 775 sys sys 1132506882 129176
-386/bin/upas/send - 775 sys sys 1132506883 193043
-386/bin/upas/smtp - 775 sys sys 1132506883 275382
-386/bin/upas/smtpd - 775 sys sys 1161745025 332398
+386/bin/upas/msgtok - 775 sys sys 1176520508 76758
+386/bin/upas/nedmail - 775 sys sys 1176520508 157330
+386/bin/upas/pop3 - 775 sys sys 1176520509 262876
+386/bin/upas/qer - 775 sys sys 1176520509 100587
+386/bin/upas/ratfs - 775 sys sys 1176520509 111573
+386/bin/upas/runq - 775 sys sys 1176520509 114236
+386/bin/upas/scanmail - 775 sys sys 1176520510 129604
+386/bin/upas/send - 775 sys sys 1176520510 193434
+386/bin/upas/smtp - 775 sys sys 1176520511 275966
+386/bin/upas/smtpd - 775 sys sys 1176520511 332397
 386/bin/upas/spam - 775 sys sys 1064598366 36
-386/bin/upas/testscan - 775 sys sys 1130594804 83691
-386/bin/upas/token - 775 sys sys 1130594804 77586
-386/bin/upas/unesc - 775 sys sys 1134151361 132264
+386/bin/upas/testscan - 775 sys sys 1176520512 83863
+386/bin/upas/token - 775 sys sys 1176520512 77789
+386/bin/upas/unesc - 775 sys sys 1176520512 60137
 386/bin/upas/unspam - 775 sys sys 1064598367 38
-386/bin/upas/vf - 775 sys sys 1135101638 97135
+386/bin/upas/vf - 775 sys sys 1176520512 97315
 386/bin/usb - 20000000775 sys sys 1019538890 0
-386/bin/usb/usbaudio - 775 sys sys 1134389880 185573
-386/bin/usb/usbd - 775 sys sys 1130594805 129878
-386/bin/usb/usbmouse - 775 sys sys 1130594806 138159
+386/bin/usb/usbaudio - 775 sys sys 1176520513 189410
+386/bin/usb/usbd - 775 sys sys 1176520513 130769
+386/bin/usb/usbmouse - 775 sys sys 1176520514 109605
 386/bin/usb/usbprinter - 775 sys sys 1089408719 222
-386/bin/vac - 775 sys sys 1162412620 170720
-386/bin/vacfs - 775 sys sys 1162412621 175530
+386/bin/vac - 775 sys sys 1176520514 171281
+386/bin/vacfs - 775 sys sys 1176520514 176091
 386/bin/venti - 20000000775 sys sys 947360466 0
-386/bin/venti/buildindex - 775 sys sys 1130594807 154175
-386/bin/venti/checkarenas - 775 sys sys 1130594808 158418
-386/bin/venti/checkindex - 775 sys sys 1130594808 155021
-386/bin/venti/clumpstats - 775 sys sys 1130594808 145207
+386/bin/venti/buildindex - 775 sys sys 1176520515 154354
+386/bin/venti/checkarenas - 775 sys sys 1176520515 158587
+386/bin/venti/checkindex - 775 sys sys 1176520516 155237
+386/bin/venti/clumpstats - 775 sys sys 1176520516 145386
 386/bin/venti/conf - 775 sys sys 1056364399 1506
-386/bin/venti/copy - 775 sys sys 1132506886 106158
-386/bin/venti/findscore - 775 sys sys 1130594809 127658
-386/bin/venti/fmtarenas - 775 sys sys 1132506886 129835
-386/bin/venti/fmtindex - 775 sys sys 1130594809 145469
-386/bin/venti/fmtisect - 775 sys sys 1132506887 146594
-386/bin/venti/rdarena - 775 sys sys 1130594810 127126
-386/bin/venti/read - 775 sys sys 1132506887 102623
-386/bin/venti/sync - 775 sys sys 1132506887 101773
-386/bin/venti/syncindex - 775 sys sys 1130594811 169457
-386/bin/venti/venti - 775 sys sys 1132506888 245274
-386/bin/venti/verifyarena - 775 sys sys 1130594812 104009
-386/bin/venti/wrarena - 775 sys sys 1132506889 175958
-386/bin/venti/write - 775 sys sys 1132506889 102575
-386/bin/vncs - 775 sys sys 1135447284 472345
-386/bin/vncv - 775 sys sys 1132506891 519422
-386/bin/vt - 775 sys sys 1133820585 176212
-386/bin/vtdump - 775 sys sys 1132506892 159534
+386/bin/venti/copy - 775 sys sys 1176520516 106412
+386/bin/venti/findscore - 775 sys sys 1176520517 127797
+386/bin/venti/fmtarenas - 775 sys sys 1176520517 129968
+386/bin/venti/fmtindex - 775 sys sys 1176520517 145638
+386/bin/venti/fmtisect - 775 sys sys 1176520518 146768
+386/bin/venti/printarena - 775 sys sys 1176520518 157010
+386/bin/venti/rdarena - 775 sys sys 1176520518 127265
+386/bin/venti/read - 775 sys sys 1176520519 102876
+386/bin/venti/sync - 775 sys sys 1176520519 102021
+386/bin/venti/syncindex - 775 sys sys 1176520519 169644
+386/bin/venti/venti - 775 sys sys 1176520520 245622
+386/bin/venti/verifyarena - 775 sys sys 1176520520 104147
+386/bin/venti/wrarena - 775 sys sys 1176520521 176248
+386/bin/venti/write - 775 sys sys 1176520521 102825
+386/bin/vncs - 775 sys sys 1176520522 472813
+386/bin/vncv - 775 sys sys 1176520523 520140
+386/bin/vt - 775 sys sys 1176520523 176508
+386/bin/vtdump - 775 sys sys 1176488420 159534
 386/bin/wc - 775 sys sys 1148500701 41191
 386/bin/webcookies - 775 sys sys 1168402358 167592
-386/bin/webfs - 775 sys sys 1162241050 361789
+386/bin/webfs - 775 sys sys 1176520524 361737
 386/bin/webfsget - 775 sys sys 1148500702 39177
-386/bin/wikifs - 775 sys sys 1157570247 203727
+386/bin/wikifs - 775 sys sys 1176520525 204359
 386/bin/winwatch - 775 sys sys 1168402358 155277
 386/bin/x.echo - 775 sys sys 1168402359 57592
 386/bin/xd - 775 sys sys 1168402359 64279
@@ -537,7 +538,7 @@
 386/lib/ape/lib9.a - 664 sys sys 1135531447 6906
 386/lib/ape/libap.a - 664 sys sys 1173754584 819938
 386/lib/ape/libbsd.a - 664 sys sys 1146156978 183900
-386/lib/ape/libdraw.a - 664 sys sys 1155491760 621772
+386/lib/ape/libdraw.a - 664 sys sys 1176520526 621972
 386/lib/ape/libfmt.a - 664 sys sys 1146156980 156706
 386/lib/ape/libl.a - 664 sys sys 1143777857 9406
 386/lib/ape/libnet.a - 664 sys sys 1143777857 16950
@@ -550,29 +551,29 @@
 386/lib/libauthsrv.a - 664 sys sys 1174964431 35790
 386/lib/libbin.a - 664 sys sys 1168402363 2534
 386/lib/libbio.a - 664 sys sys 1168402363 25980
-386/lib/libc.a - 664 sys sys 1176432132 503120
+386/lib/libc.a - 664 sys sys 1176520527 503120
 386/lib/libcomplete.a - 664 sys sys 1168402364 6372
 386/lib/libcontrol.a - 664 sys sys 1168402365 274388
 386/lib/libdisk.a - 664 sys sys 1168402365 42368
-386/lib/libdraw.a - 664 sys sys 1168402365 374560
+386/lib/libdraw.a - 664 sys sys 1176520528 374886
 386/lib/libflate.a - 664 sys sys 1168402366 76726
 386/lib/libframe.a - 664 sys sys 1168402366 66398
 386/lib/libgeometry.a - 664 sys sys 1168402366 50470
 386/lib/libhtml.a - 664 sys sys 1176432132 229152
 386/lib/libhttpd.a - 664 sys sys 1176432133 99482
-386/lib/libip.a - 664 sys sys 1169612032 35672
+386/lib/libip.a - 664 sys sys 1176520528 35672
 386/lib/libl.a - 664 sys sys 1168402367 5372
 386/lib/libmach.a - 664 sys sys 1173410637 785440
 386/lib/libmemdraw.a - 664 sys sys 1168402369 284092
 386/lib/libmemlayer.a - 664 sys sys 1168402369 47360
-386/lib/libmp.a - 664 sys sys 1170879862 79978
-386/lib/libndb.a - 664 sys sys 1168402370 64470
+386/lib/libmp.a - 664 sys sys 1176520528 79978
+386/lib/libndb.a - 664 sys sys 1176520529 64470
 386/lib/libplumb.a - 664 sys sys 1168402370 19408
 386/lib/libregexp.a - 664 sys sys 1168402370 37438
 386/lib/libscribble.a - 664 sys sys 1175972562 107238
-386/lib/libsec.a - 664 sys sys 1168402372 646724
+386/lib/libsec.a - 664 sys sys 1176520530 646724
 386/lib/libstdio.a - 664 sys sys 1176432133 126062
-386/lib/libsunrpc.a - 664 sys sys 1176432134 353266
+386/lib/libsunrpc.a - 664 sys sys 1176520531 353266
 386/lib/libthread.a - 664 sys sys 1176432134 71932
 386/lib/libventi.a - 664 sys sys 1168402374 97858
 386/mbr - 775 sys sys 1131317338 407
@@ -5441,7 +5442,8 @@ rc/bin/b: - 775 sys sys 1015089510 204
 rc/bin/broke - 775 sys sys 1143389260 142
 rc/bin/bundle - 775 sys sys 945617206 173
 rc/bin/c: - 775 sys sys 1015089511 86
-rc/bin/cpurc - 775 sys sys 1176314252 2069
+rc/bin/cpurc - 775 sys sys 1176444833 1884
+rc/bin/cpurc.local - 775 sys sys 1176502011 448
 rc/bin/delkey - 775 sys sys 1109429137 643
 rc/bin/dial - 20000000775 sys sys 1059180057 0
 rc/bin/diffy - 775 sys sys 1140694870 277
@@ -5562,7 +5564,8 @@ rc/bin/start - 775 sys sys 945617209 120
 rc/bin/stock - 775 sys sys 1143126371 292
 rc/bin/stop - 775 sys sys 945617209 110
 rc/bin/tel - 775 sys sys 1161209756 128
-rc/bin/termrc - 775 sys sys 1176432928 2436
+rc/bin/termrc - 775 sys sys 1176444113 1665
+rc/bin/termrc.local - 775 sys sys 1176500067 425
 rc/bin/thesaurus - 775 sys sys 1068054167 246
 rc/bin/tlsclienttunnel - 775 sys sys 1024375633 153
 rc/bin/tlssrvtunnel - 775 sys sys 1024375634 175
@@ -6031,7 +6034,7 @@ sys/include/frame.h - 664 sys sys 1147706379 2682
 sys/include/geometry.h - 664 sys sys 1014929063 2632
 sys/include/html.h - 664 sys sys 1128662123 15232
 sys/include/httpd.h - 664 sys sys 1091904418 5771
-sys/include/ip.h - 664 sys sys 1103554773 2989
+sys/include/ip.h - 664 sys sys 1176499323 2978
 sys/include/keyboard.h - 664 sys sys 1131637696 865
 sys/include/libc.h - 664 sys sys 1168306860 19851
 sys/include/libsec.h - 664 sys sys 1124709121 9345
@@ -6039,7 +6042,7 @@ sys/include/mach.h - 664 sys sys 1143814376 8641
 sys/include/memdraw.h - 664 sys sys 1091904419 5645
 sys/include/memlayer.h - 664 sys sys 1051031022 1851
 sys/include/mouse.h - 664 sys sys 1035232010 1003
-sys/include/mp.h - 664 sys sys 1014929065 4610
+sys/include/mp.h - 664 sys sys 1176499134 4803
 sys/include/ndb.h - 664 sys sys 1144174492 4412
 sys/include/nfs3.h - 664 sys sys 1045589438 15082
 sys/include/plumb.h - 664 sys sys 1014929065 989
@@ -6616,7 +6619,7 @@ sys/lib/man - 20000000775 sys sys 1039727410 0
 sys/lib/man/checkman.awk - 664 sys sys 1017679304 6277
 sys/lib/man/colophon - 664 sys sys 956337727 545
 sys/lib/man/lookman - 20000000775 sys sys 1045538130 0
-sys/lib/man/lookman/index - 664 sys sys 1156883241 1500899
+sys/lib/man/lookman/index - 664 sys sys 1176485529 1500899
 sys/lib/man/lookman/junkwords - 664 sys sys 956337764 3059
 sys/lib/man/lookman/mkindex - 775 sys sys 1017679307 306
 sys/lib/man/mkhtmlindex - 775 sys sys 1072129593 1235
@@ -7604,7 +7607,7 @@ sys/man/3/pnp - 664 sys sys 1088560895 4547
 sys/man/3/proc - 664 sys sys 1138458595 12062
 sys/man/3/root - 664 sys sys 1046958450 632
 sys/man/3/rtc - 664 sys sys 954378857 667
-sys/man/3/sd - 664 sys sys 1167774768 5652
+sys/man/3/sd - 664 sys sys 1176502187 5678
 sys/man/3/segment - 664 sys sys 1017423721 2378
 sys/man/3/srv - 664 sys sys 958419690 1470
 sys/man/3/ssl - 664 sys sys 1018386776 3413
@@ -7741,7 +7744,7 @@ sys/man/8/getflags - 664 sys sys 1159419702 1713
 sys/man/8/gpsfs - 664 sys sys 1165623047 4918
 sys/man/8/httpd - 664 sys sys 1165623004 6865
 sys/man/8/init - 664 sys sys 944959679 1430
-sys/man/8/ipconfig - 664 sys sys 1159419702 6170
+sys/man/8/ipconfig - 664 sys sys 1176502409 6209
 sys/man/8/ipserv - 664 sys sys 1095862383 4375
 sys/man/8/kfscmd - 664 sys sys 1068569797 4515
 sys/man/8/listen - 664 sys sys 1174792129 3826
@@ -9956,13 +9959,13 @@ sys/src/cmd/cwfs/9netics64.8k - 20000000775 sys sys 1174799194 0
 sys/src/cmd/cwfs/9netics64.8k/conf.c - 664 sys sys 1171171458 564
 sys/src/cmd/cwfs/9netics64.8k/dat.h - 664 sys sys 1171171387 791
 sys/src/cmd/cwfs/9netics64.8k/mkfile - 664 sys sys 1171519752 28
-sys/src/cmd/cwfs/9p1.c - 664 sys sys 1174716878 29747
+sys/src/cmd/cwfs/9p1.c - 664 sys sys 1176500150 29749
 sys/src/cmd/cwfs/9p1.h - 664 sys sys 1171159776 2128
 sys/src/cmd/cwfs/9p1lib.c - 664 sys sys 1171145882 7894
 sys/src/cmd/cwfs/9p2.c - 664 sys sys 1174942081 35261
 sys/src/cmd/cwfs/README - 664 sys sys 1171520084 344
 sys/src/cmd/cwfs/all.h - 664 sys sys 1174716764 2186
-sys/src/cmd/cwfs/auth.c - 664 sys sys 1174797532 5840
+sys/src/cmd/cwfs/auth.c - 664 sys sys 1176500150 5842
 sys/src/cmd/cwfs/chk.c - 664 sys sys 1174716979 14579
 sys/src/cmd/cwfs/choline - 20000000775 sys sys 1174799194 0
 sys/src/cmd/cwfs/choline/conf.c - 664 sys sys 1171170952 412
@@ -10001,8 +10004,8 @@ sys/src/cmd/cwfs/fs64/dat.h - 664 sys sys 1171172076 786
 sys/src/cmd/cwfs/fs64/mkfile - 664 sys sys 1174799404 24
 sys/src/cmd/cwfs/fworm.c - 664 sys sys 1174716894 1814
 sys/src/cmd/cwfs/io.h - 664 sys sys 1174280312 866
-sys/src/cmd/cwfs/iobuf.c - 664 sys sys 1174716894 4713
-sys/src/cmd/cwfs/juke.c - 664 sys sys 1174799503 28859
+sys/src/cmd/cwfs/iobuf.c - 664 sys sys 1176500092 4722
+sys/src/cmd/cwfs/juke.c - 664 sys sys 1176500144 28859
 sys/src/cmd/cwfs/lrand.c - 664 sys sys 1171160167 1070
 sys/src/cmd/cwfs/main.c - 664 sys sys 1174799729 9976
 sys/src/cmd/cwfs/malloc.c - 664 sys sys 1174281557 2360
@@ -10014,7 +10017,7 @@ sys/src/cmd/cwfs/portdat.h - 664 sys sys 1174716952 15241
 sys/src/cmd/cwfs/portfns.h - 664 sys sys 1174798778 6701
 sys/src/cmd/cwfs/portmkfile - 664 sys sys 1174798711 791
 sys/src/cmd/cwfs/scsi.c - 664 sys sys 1174282908 8865
-sys/src/cmd/cwfs/sub.c - 664 sys sys 1174798849 24353
+sys/src/cmd/cwfs/sub.c - 664 sys sys 1176500092 24371
 sys/src/cmd/cwfs/time.c - 664 sys sys 1171500176 1696
 sys/src/cmd/cwfs/uidgid.c - 664 sys sys 1174717700 9421
 sys/src/cmd/cwfs/wren.c - 664 sys sys 1174458303 2737
@@ -10277,7 +10280,7 @@ sys/src/cmd/fossil/archive.c - 664 sys sys 1087005594 10230
 sys/src/cmd/fossil/build - 664 sys sys 1042005505 449
 sys/src/cmd/fossil/buildsh - 775 sys sys 1042005505 561
 sys/src/cmd/fossil/bwatch.c - 664 sys sys 1042005505 6754
-sys/src/cmd/fossil/cache.c - 664 sys sys 1143759345 43875
+sys/src/cmd/fossil/cache.c - 664 sys sys 1176500208 43930
 sys/src/cmd/fossil/check.c - 664 sys sys 1173736846 17436
 sys/src/cmd/fossil/conf.rc - 775 sys sys 1084333190 1416
 sys/src/cmd/fossil/dat.h - 664 sys sys 1158373945 7622
@@ -12475,7 +12478,7 @@ 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 1168894057 2587
-sys/src/cmd/ip/ipconfig.c - 664 sys sys 1166761782 35168
+sys/src/cmd/ip/ipconfig.c - 664 sys sys 1176502464 35429
 sys/src/cmd/ip/measure.c - 664 sys sys 944961011 3733
 sys/src/cmd/ip/mkfile - 664 sys sys 1169163575 1250
 sys/src/cmd/ip/ping.c - 664 sys sys 1175868270 9699
@@ -12737,7 +12740,7 @@ sys/src/cmd/mk/var.c - 664 sys sys 1131289510 530
 sys/src/cmd/mk/varsub.c - 664 sys sys 1174930010 4297
 sys/src/cmd/mk/word.c - 664 sys sys 1174930010 2709
 sys/src/cmd/mkdir.c - 664 sys sys 1082593106 1026
-sys/src/cmd/mkfile - 664 sys sys 1173736967 2618
+sys/src/cmd/mkfile - 664 sys sys 1176520958 2674
 sys/src/cmd/mklib - 664 sys sys 1101213349 618
 sys/src/cmd/mkmany - 664 sys sys 1123818681 1304
 sys/src/cmd/mkone - 664 sys sys 1123943673 910
@@ -15228,7 +15231,7 @@ sys/src/libdraw/makefile - 664 sys sys 944961725 648
 sys/src/libdraw/menuhit.c - 664 sys sys 1014927876 7263
 sys/src/libdraw/mkfile - 664 sys sys 1097972686 1034
 sys/src/libdraw/mkfont.c - 664 sys sys 944961725 1283
-sys/src/libdraw/mouse.c - 664 sys sys 1030970092 2559
+sys/src/libdraw/mouse.c - 664 sys sys 1176502264 2623
 sys/src/libdraw/newwindow.c - 664 sys sys 1035232036 424
 sys/src/libdraw/openfont.c - 664 sys sys 1014927876 495
 sys/src/libdraw/poly.c - 664 sys sys 1040442974 1689
@@ -15249,7 +15252,7 @@ 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
-sys/src/libdraw/writecolmap.c - 664 sys sys 944961725 725
+sys/src/libdraw/writecolmap.c - 664 sys sys 1176502270 788
 sys/src/libdraw/writeimage.c - 664 sys sys 1014927877 4459
 sys/src/libdraw/writesubfont.c - 664 sys sys 944961725 689
 sys/src/libflate - 20000000775 sys sys 1045502936 0

+ 155 - 0
dist/replica/plan9.log

@@ -48209,3 +48209,158 @@
 1176433207 8 c alpha/include/u.h - 664 sys sys 1176432505 1625
 1176433207 9 c rc/bin/termrc - 775 sys sys 1176432928 2436
 1176433207 10 c sys/include/scribble.h - 664 sys sys 1176432918 715
+1176444006 0 c rc/bin/termrc - 775 sys sys 1176444064 1665
+1176444006 1 a rc/bin/cpurc.local - 775 sys sys 1176443694 0
+1176444006 2 a rc/bin/termrc.local - 775 sys sys 1176443867 476
+1176445806 0 c rc/bin/cpurc - 775 sys sys 1176444833 1884
+1176445806 1 c rc/bin/termrc - 775 sys sys 1176444113 1665
+1176445806 2 c rc/bin/cpurc.local - 775 sys sys 1176444510 448
+1176445806 3 c rc/bin/termrc.local - 775 sys sys 1176444119 425
+1176485406 0 c sys/lib/man/lookman/index - 664 sys sys 1176485413 1500899
+1176487206 0 c sys/lib/man/lookman/index - 664 sys sys 1176485529 1500899
+1176489006 0 c 386/bin/vtdump - 775 sys sys 1176488420 159534
+1176489006 1 c 386/bin/auth/authsrv - 775 sys sys 1176488412 166616
+1176489006 2 c 386/bin/auth/guard.srv - 775 sys sys 1176488412 145044
+1176489006 3 c 386/bin/auth/secstored - 775 sys sys 1176488413 197967
+1176489006 4 c 386/bin/aux/consolefs - 775 sys sys 1176488413 156203
+1176489006 5 c 386/bin/aux/vga - 775 sys sys 1176488414 336166
+1176489006 6 c 386/bin/ip/dhcpd - 775 sys sys 1176488415 151225
+1176489006 7 c 386/bin/ip/ipconfig - 775 sys sys 1176488416 139474
+1176489006 8 c 386/bin/ip/rarpd - 775 sys sys 1176488416 113001
+1176489006 9 c 386/bin/ip/tftpd - 775 sys sys 1176488417 132007
+1176489006 10 c 386/bin/ndb/cs - 775 sys sys 1176488417 150835
+1176489006 11 c 386/bin/ndb/csquery - 775 sys sys 1176488418 61652
+1176489006 12 c 386/bin/ndb/ipquery - 775 sys sys 1176488418 96918
+1176489006 13 c 386/bin/ndb/mkhash - 775 sys sys 1176488418 84704
+1176489006 14 c 386/bin/ndb/mkhosts - 775 sys sys 1176488419 85747
+1176489006 15 c 386/bin/ndb/query - 775 sys sys 1176488419 83914
+1176489006 16 c 386/bin/replica/applylog - 775 sys sys 1176488419 119653
+1176499807 0 c sys/include/ip.h - 664 sys sys 1176499323 2978
+1176499807 1 c sys/include/mp.h - 664 sys sys 1176499134 4803
+1176501605 0 c rc/bin/termrc.local - 775 sys sys 1176500067 425
+1176501605 1 c sys/src/cmd/cwfs/9p1.c - 664 sys sys 1176500150 29749
+1176501605 2 c sys/src/cmd/cwfs/auth.c - 664 sys sys 1176500150 5842
+1176501605 3 c sys/src/cmd/cwfs/iobuf.c - 664 sys sys 1176500092 4722
+1176501605 4 c sys/src/cmd/cwfs/juke.c - 664 sys sys 1176500144 28859
+1176501605 5 c sys/src/cmd/cwfs/sub.c - 664 sys sys 1176500092 24371
+1176501605 6 c sys/src/cmd/fossil/cache.c - 664 sys sys 1176500208 43930
+1176503406 0 c rc/bin/cpurc.local - 775 sys sys 1176502011 448
+1176503406 1 c sys/man/3/sd - 664 sys sys 1176502187 5678
+1176503406 2 c sys/man/8/ipconfig - 664 sys sys 1176502409 6209
+1176503406 3 c sys/src/cmd/ip/ipconfig.c - 664 sys sys 1176502464 35429
+1176503406 4 c sys/src/libdraw/mouse.c - 664 sys sys 1176502264 2623
+1176503406 5 c sys/src/libdraw/writecolmap.c - 664 sys sys 1176502270 788
+1176521407 0 c 386/bin/acme - 775 sys sys 1176520474 432232
+1176521407 1 c 386/bin/bitsy/keyboard - 775 sys sys 1176520477 306827
+1176521407 2 c 386/bin/bitsy/prompter - 775 sys sys 1176520478 287120
+1176521407 3 c 386/bin/fs/32vfs - 775 sys sys 1176520483 95557
+1176521407 4 c 386/bin/fs/cpiofs - 775 sys sys 1176520483 94317
+1176521407 5 c 386/bin/fs/tapfs - 775 sys sys 1176520484 96679
+1176521407 6 c 386/bin/fs/tarfs - 775 sys sys 1176520484 96328
+1176521407 7 c 386/bin/fs/tpfs - 775 sys sys 1176520484 93870
+1176521407 8 c 386/bin/fs/v10fs - 775 sys sys 1176520484 96195
+1176521407 9 c 386/bin/fs/v6fs - 775 sys sys 1176520485 95281
+1176521407 10 c 386/bin/fs/zipfs - 775 sys sys 1176520485 109840
+1176521407 11 c 386/bin/games/4s - 775 sys sys 1176520486 178884
+1176521407 12 c 386/bin/games/5s - 775 sys sys 1176520486 181172
+1176521407 13 c 386/bin/games/catclock - 775 sys sys 1176520487 141172
+1176521407 14 c 386/bin/games/juggle - 775 sys sys 1176520487 125686
+1176521407 15 c 386/bin/games/mahjongg - 775 sys sys 1176520487 166549
+1176521407 16 c 386/bin/games/memo - 775 sys sys 1176520488 157934
+1176521407 17 c 386/bin/games/sokoban - 775 sys sys 1176520488 165396
+1176521407 18 c 386/bin/games/sudoku - 775 sys sys 1176520489 172291
+1176521407 19 c 386/bin/snap - 775 sys sys 1176520496 314288
+1176521407 20 c 386/bin/snapfs - 775 sys sys 1176520497 388453
+1176521407 21 c 386/bin/srvold9p - 775 sys sys 1176520499 130362
+1176521407 22 c 386/bin/troff2html - 775 sys sys 1176520504 85920
+1176521407 23 c 386/bin/usb/usbaudio - 775 sys sys 1176520513 189410
+1176521407 24 c 386/bin/usb/usbd - 775 sys sys 1176520513 130769
+1176521407 25 c 386/bin/usb/usbmouse - 775 sys sys 1176520514 109605
+1176521407 26 c 386/bin/venti/buildindex - 775 sys sys 1176520515 154354
+1176521407 27 c 386/bin/venti/checkarenas - 775 sys sys 1176520515 158587
+1176521407 28 c 386/bin/venti/checkindex - 775 sys sys 1176520516 155237
+1176521407 29 c 386/bin/venti/clumpstats - 775 sys sys 1176520516 145386
+1176521407 30 c 386/bin/venti/copy - 775 sys sys 1176520516 106412
+1176521407 31 c 386/bin/venti/findscore - 775 sys sys 1176520517 127797
+1176521407 32 c 386/bin/venti/fmtarenas - 775 sys sys 1176520517 129968
+1176521407 33 c 386/bin/venti/fmtindex - 775 sys sys 1176520517 145638
+1176521407 34 c 386/bin/venti/fmtisect - 775 sys sys 1176520518 146768
+1176521407 35 a 386/bin/venti/printarena - 775 sys sys 1176520518 157010
+1176521407 36 c 386/bin/venti/rdarena - 775 sys sys 1176520518 127265
+1176521407 37 c 386/bin/venti/read - 775 sys sys 1176520519 102876
+1176521407 38 c 386/bin/venti/sync - 775 sys sys 1176520519 102021
+1176521407 39 c 386/bin/venti/syncindex - 775 sys sys 1176520519 169644
+1176521407 40 c 386/bin/venti/venti - 775 sys sys 1176520520 245622
+1176521407 41 c 386/bin/venti/verifyarena - 775 sys sys 1176520520 104147
+1176521407 42 c 386/bin/venti/wrarena - 775 sys sys 1176520521 176248
+1176521407 43 c 386/bin/venti/write - 775 sys sys 1176520521 102825
+1176521407 44 c 386/bin/vncs - 775 sys sys 1176520522 472813
+1176521407 45 c 386/bin/vncv - 775 sys sys 1176520523 520140
+1176521407 46 c 386/bin/wikifs - 775 sys sys 1176520525 204359
+1176521407 47 c 386/bin/pic - 775 sys sys 1176520490 307917
+1176521407 48 c 386/bin/plot - 775 sys sys 1176520491 222645
+1176521407 49 c 386/bin/plumb - 775 sys sys 1176520491 69487
+1176521407 50 c 386/bin/plumber - 775 sys sys 1176520491 170951
+1176521407 51 c 386/bin/proof - 775 sys sys 1176520492 179040
+1176521407 52 c 386/bin/rio - 775 sys sys 1176520493 313447
+1176521407 53 c 386/bin/scat - 775 sys sys 1176520494 284766
+1176521407 54 c 386/bin/scp - 775 sys sys 1176520495 152584
+1176521407 55 c 386/bin/scuzz - 775 sys sys 1176520495 113699
+1176521407 56 c 386/bin/spin - 775 sys sys 1176520498 760856
+1176521407 57 c 386/bin/ssh - 775 sys sys 1176520499 211528
+1176521407 58 c 386/bin/webfs - 775 sys sys 1176520524 361737
+1176521407 59 c 386/bin/auth/fgui - 775 sys sys 1176520475 218973
+1176521407 60 c 386/bin/aux/samterm - 775 sys sys 1176520475 253280
+1176521407 61 c 386/bin/aux/sprog - 775 sys sys 1176520476 79503
+1176521407 62 c 386/bin/aux/sshserve - 775 sys sys 1176520476 253292
+1176521407 63 c 386/bin/cwfs - 775 sys sys 1176520479 366611
+1176521407 64 c 386/bin/fossil/flchk - 775 sys sys 1176520480 239078
+1176521407 65 c 386/bin/fossil/flfmt - 775 sys sys 1176520481 247129
+1176521407 66 c 386/bin/fossil/fossil - 775 sys sys 1176520483 364516
+1176521407 67 c 386/bin/ip/ipconfig - 775 sys sys 1176520489 139521
+1176521407 68 c 386/bin/replica/applychanges - 775 sys sys 1176520492 98766
+1176521407 69 c 386/bin/replica/compactdb - 775 sys sys 1176520492 78651
+1176521407 70 c 386/bin/replica/updatedb - 775 sys sys 1176520493 96097
+1176521407 71 c 386/bin/sshnet - 775 sys sys 1176520500 289526
+1176521407 72 c 386/bin/syscall - 775 sys sys 1176520500 74212
+1176521407 73 c 386/bin/tbl - 775 sys sys 1176520501 113420
+1176521407 74 c 386/bin/tcs - 775 sys sys 1176520502 320129
+1176521407 75 c 386/bin/telco - 775 sys sys 1176520502 103501
+1176521407 76 c 386/bin/trace - 775 sys sys 1176520502 181814
+1176521407 77 c 386/bin/troff - 775 sys sys 1176520503 360243
+1176521407 78 c 386/bin/upas/addhash - 775 sys sys 1176520504 72117
+1176521407 79 c 386/bin/upas/aliasmail - 775 sys sys 1176520504 105497
+1176521407 80 c 386/bin/upas/bayes - 775 sys sys 1176520504 74768
+1176521407 81 c 386/bin/upas/deliver - 775 sys sys 1176520505 100524
+1176521407 82 c 386/bin/upas/filter - 775 sys sys 1176520505 148142
+1176521407 83 c 386/bin/upas/fs - 775 sys sys 1176520506 333115
+1176521407 84 c 386/bin/upas/list - 775 sys sys 1176520506 83035
+1176521407 85 c 386/bin/upas/ml - 775 sys sys 1176520507 124309
+1176521407 86 c 386/bin/upas/mlmgr - 775 sys sys 1176520507 104932
+1176521407 87 c 386/bin/upas/mlowner - 775 sys sys 1176520507 92263
+1176521407 88 c 386/bin/upas/msgtok - 775 sys sys 1176520508 76758
+1176521407 89 c 386/bin/upas/nedmail - 775 sys sys 1176520508 157330
+1176521407 90 c 386/bin/upas/pop3 - 775 sys sys 1176520509 262876
+1176521407 91 c 386/bin/upas/qer - 775 sys sys 1176520509 100587
+1176521407 92 c 386/bin/upas/ratfs - 775 sys sys 1176520509 111573
+1176521407 93 c 386/bin/upas/runq - 775 sys sys 1176520509 114236
+1176521407 94 c 386/bin/upas/scanmail - 775 sys sys 1176520510 129604
+1176521407 95 c 386/bin/upas/send - 775 sys sys 1176520510 193434
+1176521407 96 c 386/bin/upas/smtp - 775 sys sys 1176520511 275966
+1176521407 97 c 386/bin/upas/smtpd - 775 sys sys 1176520511 332397
+1176521407 98 c 386/bin/upas/testscan - 775 sys sys 1176520512 83863
+1176521407 99 c 386/bin/upas/token - 775 sys sys 1176520512 77789
+1176521407 100 c 386/bin/upas/unesc - 775 sys sys 1176520512 60137
+1176521407 101 c 386/bin/upas/vf - 775 sys sys 1176520512 97315
+1176521407 102 c 386/bin/vac - 775 sys sys 1176520514 171281
+1176521407 103 c 386/bin/vacfs - 775 sys sys 1176520514 176091
+1176521407 104 c 386/bin/vt - 775 sys sys 1176520523 176508
+1176521407 105 c 386/lib/ape/libdraw.a - 664 sys sys 1176520526 621972
+1176521407 106 c 386/lib/libc.a - 664 sys sys 1176520527 503120
+1176521407 107 c 386/lib/libdraw.a - 664 sys sys 1176520528 374886
+1176521407 108 c 386/lib/libip.a - 664 sys sys 1176520528 35672
+1176521407 109 c 386/lib/libmp.a - 664 sys sys 1176520528 79978
+1176521407 110 c 386/lib/libndb.a - 664 sys sys 1176520529 64470
+1176521407 111 c 386/lib/libsec.a - 664 sys sys 1176520530 646724
+1176521407 112 c 386/lib/libsunrpc.a - 664 sys sys 1176520531 353266
+1176521407 113 c sys/src/cmd/mkfile - 664 sys sys 1176520958 2674

+ 14 - 21
rc/bin/cpurc

@@ -1,32 +1,28 @@
 #!/bin/rc
-echo -n cpu > /env/service
+# cpu server start up
 date > /env/boottime
 
-# replace FILESERVER with the name of your file server
-# here we start with kfs, your local disk file system
-fileserver=kfs
-
-# replace FACEDOM with the local domain to be used in the faces database
-facedom=FACEDOM
-
 # mount points
 mntgen -s slashn && chmod 666 /srv/slashn
 
 # name translation, cs sets /dev/sysname
 ndb/cs
 sysname=`{cat /dev/sysname}
-ndb/dns -r
 
 # parallelism for mk
 NPROC = `{wc -l </dev/sysstat}
 
 prompt=($sysname^'# ' '	')
 
-# site specific startup
+# site-specific startup
 if(test -e /rc/bin/cpurc.local)
 	. /rc/bin/cpurc.local
 
-# cpu specific startup
+# cpu-specific startup such as
+# ip/ipconfig ether /dev/ether0 ip gw ...
+# ndb/dns -s
+# ip/dhcpd
+# ip/tftpd
 if(test -e /cfg/$sysname/cpurc)
 	. /cfg/$sysname/cpurc
 
@@ -40,10 +36,6 @@ if(! grep u /net/ipselftab | grep -sv 127.0.0.1)
 if(! grep -s 127.0.0.1 /net/ipselftab)
 	ip/ipconfig loopback /dev/null 127.1
 
-# uncomment the following for booting other systems
-#ip/dhcpd
-#ip/tftpd
-
 # If you are on an auth server, start these before listening:
 #
 # auth/keyfs -wp -m /mnt/keys /adm/keys >/dev/null >[2=1]
@@ -61,8 +53,9 @@ if(! grep -s 127.0.0.1 /net/ipselftab)
 # start listeners if it hasn't already been done (dicey check)
 if(! netstat -n | grep -s 'tcp.*Listen.* (7|9|21|22|23|25|110|113|565|993|17007|17009|17010) .*')
 	aux/listen -q tcp
-#if(! netstat -n | grep -v 17008 | grep -s il.*Listen)
-#	aux/listen -q il
+# we don't use IL, maybe you do
+if(! netstat -n | grep -v 17008 | grep -s il.*Listen)
+	aux/listen -q il
 
 if(! ps|grep -s timesync) {
 	aux/timesync -n pool.ntp.org
@@ -72,10 +65,10 @@ if(! ps|grep -s timesync) {
 	} &
 }
 
-# cpu specific startup
-#if(test -e /cfg/$sysname/cpustart)
-#	. /cfg/$sysname/cpustart
+# cpu-specific late startup
+if(test -e /cfg/$sysname/cpustart)
+	. /cfg/$sysname/cpustart
 
-#echo `{date} $sysname >>/sys/log/boot
+# echo `{date} $sysname >>/sys/log/boot
 
 exit ''

+ 14 - 0
rc/bin/cpurc.local

@@ -0,0 +1,14 @@
+#!/bin/rc
+# local cpu startup
+
+# used only by upas, as default return domain appended to all unqualified
+# return addresses, even local ones
+site=plan9
+# replace FILESERVER with the name of your file server
+# here we start with kfs, your local disk file system
+fileserver=kfs
+# replace FACEDOM with the local domain to be used in the faces database
+facedom=FACEDOM
+
+# turn on cooperative scheduling (assuming it starts off)
+echo coop > /dev/reboot

+ 44 - 68
rc/bin/termrc

@@ -1,12 +1,5 @@
-#!/bin/rc -x
-
-# replace FILESERVER with the name of your file server
-# here we start with kfs, your local disk file system
-fileserver=kfs
-# replace CPU with the name of your cpu server
-cpu=CPU
-# replace FACEDOM with the local domain to be used in the faces database
-facedom=FACEDOM
+#!/bin/rc
+# terminal startup
 TIMESYNCARGS=(-rLa1000000)
 NDBFILE=/lib/ndb/local
 
@@ -15,7 +8,6 @@ if(test -e /rc/bin/termrc.local)
 
 mntgen -s slashn && chmod 666 /srv/slashn
 
-
 # cs sets sysname
 ndb/cs -f $NDBFILE
 sysname=`{cat /dev/sysname}
@@ -38,65 +30,49 @@ if(test -e /net/ipifc/0/ctl)
 
 aux/timesync $TIMESYNCARGS
 
-switch($terminal){
-case carrera*
-	bind -a '#t' /dev
-case *' ss'*
-	/bin/bind -a '#w' /dev >/dev/null >[2=1]
-	/bin/bind -a '#t' /dev >/dev/null >[2=1]
-case *' magnum'*
-	/bin/bind -a '#m' /dev >/dev/null >[2=1]
-	/bin/bind -a '#t' /dev >/dev/null >[2=1]
-	aux/mouse -dC 0
-case *' indigo'*
-	/bin/bind -a '#L' /dev >/dev/null >[2=1]
-	/bin/bind -a '#w1' /dev >/dev/null >[2=1]
-	/bin/bind -a '#t' /dev >/dev/null >[2=1]
-	/bin/bind -a '#A' /dev >/dev/null >[2=1]
-case NCR* 'AT&TNSX'* generic* _MP_* 'alpha apc'*
-	for(i in H w f t m v L S P U '$' Σ κ)
-		/bin/bind -a '#'^$i /dev >/dev/null >[2=1]
+# bind all likely devices (#S was bound in boot)
+for(i in f t m v L P U '$' Σ κ)
+	/bin/bind -a '#'^$i /dev >/dev/null >[2=1]
 
-	diskparts
+diskparts
 
-	if(! ~ `{cat /dev/user} none)
-		aux/vmware
-	if(~ $mouseport ask){
-		echo -n 'mouseport is (ps2, ps2intellimouse, 0, 1, 2)[ps2]: '
-		mouseport=`{read}
-		if(~ $#mouseport 0)
-			mouseport=ps2
-	}
-	if(~ $vgasize ask){
-		echo -n 'vgasize [640x480x8]: '
-		vgasize=`{read}
-		if(~ $#vgasize 0)
-			vgasize=640x480x8
-	}
-	if(~ $monitor ask){
-		echo -n 'monitor is [xga]: '
-		monitor=`{read}
-		if(~ $#monitor 0)
-			monitor=xga
-	}
-	if(test -f /dev/mousectl){
-		switch($mouseport){
-		case ps2 ps2intellimouse 0 1 2
-			aux/mouse $mouseport
-			# parse vgasize into fields
-			vgasize=`{echo $vgasize}
-			if(! ~ $"monitor '' && ! ~ `{cat /dev/user} none)
-				aux/vga -l $vgasize
-			if(~ $accupoint 1)
-				pipefile -dr /bin/aux/accupoint /dev/mouse
-		}
-	}
-	# start up local swapping, mount dos fat fs
-	disk=`{ls /dev/sd*/swap >[2]/dev/null}
-	if (! ~ $#disk 0) {
-		swap $disk(1) >/dev/null >[2=1]
-		dossrv
-		c:
+# watch this space
+
+if(! ~ `{cat /dev/user} none)
+	aux/vmware
+if(~ $mouseport ask){
+	echo -n 'mouseport is (ps2, ps2intellimouse, 0, 1, 2)[ps2]: '
+	mouseport=`{read}
+	if(~ $#mouseport 0)
+		mouseport=ps2
+}
+if(~ $vgasize ask){
+	echo -n 'vgasize [640x480x8]: '
+	vgasize=`{read}
+	if(~ $#vgasize 0)
+		vgasize=640x480x8
+}
+if(~ $monitor ask){
+	echo -n 'monitor is [xga]: '
+	monitor=`{read}
+	if(~ $#monitor 0)
+		monitor=xga
+}
+if(test -f /dev/mousectl){
+	switch($mouseport){
+	case ps2 ps2intellimouse 0 1 2
+		aux/mouse $mouseport
+		# parse vgasize into fields
+		vgasize=`{echo $vgasize}
+		if(! ~ $"monitor '' && ! ~ `{cat /dev/user} none)
+			aux/vga -l $vgasize
+		if(~ $accupoint 1)
+			pipefile -dr /bin/aux/accupoint /dev/mouse
 	}
-	rm /env/disk
 }
+
+# start up local swapping
+disk=`{ls /dev/sd*/swap >[2]/dev/null}
+if (! ~ $#disk 0)
+	swap $disk(1) >/dev/null >[2=1]
+rm /env/disk

+ 13 - 0
rc/bin/termrc.local

@@ -0,0 +1,13 @@
+#!/bin/rc
+# local terminal startup
+
+# used only by upas, as default return domain appended to all unqualified
+# return addresses, even local ones
+site=plan9
+# replace FILESERVER with the name of your file server
+# here we start with kfs, your local disk file system
+fileserver=kfs
+# replace FACEDOM with the local domain to be used in the faces database
+facedom=FACEDOM
+# replace CPU with the name of your cpu server
+cpu=CPU

+ 10 - 11
sys/include/ip.h

@@ -63,7 +63,7 @@ struct Ipifc
 };
 
 /*
- *  user level udp headers with cntrol message "oldheaders".
+ *  user level udp headers with control message "oldheaders".
  *  this is now considered obsolete.
  */
 enum 
@@ -74,14 +74,14 @@ enum
 typedef struct OUdphdr OUdphdr;
 struct OUdphdr
 {
-	uchar	raddr[IPaddrlen];	/* remote address and port */
-	uchar	laddr[IPaddrlen];	/* local address and port */
-	uchar	rport[2];
-	uchar	lport[2];
+	uchar	raddr[IPaddrlen];	/* V6 remote address */
+	uchar	laddr[IPaddrlen];	/* V6 local address */
+	uchar	rport[2];		/* remote port */
+	uchar	lport[2];		/* local port */
 };
 
 /*
- *  user level udp headers with cntrol message "headers"
+ *  user level udp headers with control message "headers"
  */
 enum 
 {
@@ -91,11 +91,10 @@ enum
 typedef struct Udphdr Udphdr;
 struct Udphdr
 {
-	uchar	raddr[IPaddrlen];	/* remote address */
-	uchar	laddr[IPaddrlen];	/* local address */
-	uchar	ifcaddr[IPaddrlen];	/* address of ifc message was received from
-					   (only useful on reception) */
-	uchar	rport[2];		/* remove port */
+	uchar	raddr[IPaddrlen];	/* V6 remote address */
+	uchar	laddr[IPaddrlen];	/* V6 local address */
+	uchar	ifcaddr[IPaddrlen];	/* V6 ifc addr msg was received on */
+	uchar	rport[2];		/* remote port */
 	uchar	lport[2];		/* local port */
 };
 

+ 68 - 66
sys/include/mp.h

@@ -3,17 +3,19 @@
 
 #define _MPINT 1
 
-// the code assumes mpdigit to be at least an int
-// mpdigit must be an atomic type.  mpdigit is defined
-// in the architecture specific u.h
+/*
+ * the code assumes mpdigit to be at least an int
+ * mpdigit must be an atomic type.  mpdigit is defined
+ * in the architecture specific u.h
+ */
 
 typedef struct mpint mpint;
 
 struct mpint
 {
-	int	sign;	// +1 or -1
-	int	size;	// allocated digits
-	int	top;	// significant digits
+	int	sign;	/* +1 or -1 */
+	int	size;	/* allocated digits */
+	int	top;	/* significant digits */
 	mpdigit	*p;
 	char	flags;
 };
@@ -21,117 +23,117 @@ struct mpint
 enum
 {
 	MPstatic=	0x01,
-	Dbytes=		sizeof(mpdigit),	// bytes per digit
-	Dbits=		Dbytes*8		// bits per digit
+	Dbytes=		sizeof(mpdigit),	/* bytes per digit */
+	Dbits=		Dbytes*8		/* bits per digit */
 };
 
-// allocation
-void	mpsetminbits(int n);	// newly created mpint's get at least n bits
-mpint*	mpnew(int n);		// create a new mpint with at least n bits
+/* allocation */
+void	mpsetminbits(int n);	/* newly created mpint's get at least n bits */
+mpint*	mpnew(int n);		/* create a new mpint with at least n bits */
 void	mpfree(mpint *b);
-void	mpbits(mpint *b, int n);	// ensure that b has at least n bits
-void	mpnorm(mpint *b);		// dump leading zeros
+void	mpbits(mpint *b, int n);	/* ensure that b has at least n bits */
+void	mpnorm(mpint *b);		/* dump leading zeros */
 mpint*	mpcopy(mpint *b);
 void	mpassign(mpint *old, mpint *new);
 
-// random bits
+/* random bits */
 mpint*	mprand(int bits, void (*gen)(uchar*, int), mpint *b);
 
-// conversion
-mpint*	strtomp(char*, char**, int, mpint*);	// ascii
+/* conversion */
+mpint*	strtomp(char*, char**, int, mpint*);	/* ascii */
 int	mpfmt(Fmt*);
 char*	mptoa(mpint*, int, char*, int);
-mpint*	letomp(uchar*, uint, mpint*);	// byte array, little-endian
+mpint*	letomp(uchar*, uint, mpint*);	/* byte array, little-endian */
 int	mptole(mpint*, uchar*, uint, uchar**);
-mpint*	betomp(uchar*, uint, mpint*);	// byte array, little-endian
+mpint*	betomp(uchar*, uint, mpint*);	/* byte array, little-endian */
 int	mptobe(mpint*, uchar*, uint, uchar**);
-uint	mptoui(mpint*);			// unsigned int
+uint	mptoui(mpint*);			/* unsigned int */
 mpint*	uitomp(uint, mpint*);
-int	mptoi(mpint*);			// int
+int	mptoi(mpint*);			/* int */
 mpint*	itomp(int, mpint*);
-uvlong	mptouv(mpint*);			// unsigned vlong
+uvlong	mptouv(mpint*);			/* unsigned vlong */
 mpint*	uvtomp(uvlong, mpint*);
-vlong	mptov(mpint*);			// vlong
+vlong	mptov(mpint*);			/* vlong */
 mpint*	vtomp(vlong, mpint*);
 
-// divide 2 digits by one
+/* divide 2 digits by one */
 void	mpdigdiv(mpdigit *dividend, mpdigit divisor, mpdigit *quotient);
 
-// in the following, the result mpint may be
-// the same as one of the inputs.
-void	mpadd(mpint *b1, mpint *b2, mpint *sum);	// sum = b1+b2
-void	mpsub(mpint *b1, mpint *b2, mpint *diff);	// diff = b1-b2
-void	mpleft(mpint *b, int shift, mpint *res);	// res = b<<shift
-void	mpright(mpint *b, int shift, mpint *res);	// res = b>>shift
-void	mpmul(mpint *b1, mpint *b2, mpint *prod);	// prod = b1*b2
-void	mpexp(mpint *b, mpint *e, mpint *m, mpint *res);	// res = b**e mod m
-void	mpmod(mpint *b, mpint *m, mpint *remainder);	// remainder = b mod m
-
-// quotient = dividend/divisor, remainder = dividend % divisor
+/* in the following, the result mpint may be */
+/* the same as one of the inputs. */
+void	mpadd(mpint *b1, mpint *b2, mpint *sum);	/* sum = b1+b2 */
+void	mpsub(mpint *b1, mpint *b2, mpint *diff);	/* diff = b1-b2 */
+void	mpleft(mpint *b, int shift, mpint *res);	/* res = b<<shift */
+void	mpright(mpint *b, int shift, mpint *res);	/* res = b>>shift */
+void	mpmul(mpint *b1, mpint *b2, mpint *prod);	/* prod = b1*b2 */
+void	mpexp(mpint *b, mpint *e, mpint *m, mpint *res);	/* res = b**e mod m */
+void	mpmod(mpint *b, mpint *m, mpint *remainder);	/* remainder = b mod m */
+
+/* quotient = dividend/divisor, remainder = dividend % divisor */
 void	mpdiv(mpint *dividend, mpint *divisor,  mpint *quotient, mpint *remainder);
 
-// return neg, 0, pos as b1-b2 is neg, 0, pos
+/* return neg, 0, pos as b1-b2 is neg, 0, pos */
 int	mpcmp(mpint *b1, mpint *b2);
 
-// extended gcd return d, x, and y, s.t. d = gcd(a,b) and ax+by = d
+/* extended gcd return d, x, and y, s.t. d = gcd(a,b) and ax+by = d */
 void	mpextendedgcd(mpint *a, mpint *b, mpint *d, mpint *x, mpint *y);
 
-// res = b**-1 mod m
+/* res = b**-1 mod m */
 void	mpinvert(mpint *b, mpint *m, mpint *res);
 
-// bit counting
-int	mpsignif(mpint*);	// number of sigificant bits in mantissa
-int	mplowbits0(mpint*);	// k, where n = 2**k * q for odd q
+/* bit counting */
+int	mpsignif(mpint*);	/* number of sigificant bits in mantissa */
+int	mplowbits0(mpint*);	/* k, where n = 2**k * q for odd q */
 
-// well known constants
+/* well known constants */
 extern mpint	*mpzero, *mpone, *mptwo;
 
-// sum[0:alen] = a[0:alen-1] + b[0:blen-1]
-// prereq: alen >= blen, sum has room for alen+1 digits
+/* sum[0:alen] = a[0:alen-1] + b[0:blen-1] */
+/* prereq: alen >= blen, sum has room for alen+1 digits */
 void	mpvecadd(mpdigit *a, int alen, mpdigit *b, int blen, mpdigit *sum);
 
-// diff[0:alen-1] = a[0:alen-1] - b[0:blen-1]
-// prereq: alen >= blen, diff has room for alen digits
+/* diff[0:alen-1] = a[0:alen-1] - b[0:blen-1] */
+/* prereq: alen >= blen, diff has room for alen digits */
 void	mpvecsub(mpdigit *a, int alen, mpdigit *b, int blen, mpdigit *diff);
 
-// p[0:n] += m * b[0:n-1]
-// prereq: p has room for n+1 digits
+/* p[0:n] += m * b[0:n-1] */
+/* prereq: p has room for n+1 digits */
 void	mpvecdigmuladd(mpdigit *b, int n, mpdigit m, mpdigit *p);
 
-// p[0:n] -= m * b[0:n-1]
-// prereq: p has room for n+1 digits
+/* p[0:n] -= m * b[0:n-1] */
+/* prereq: p has room for n+1 digits */
 int	mpvecdigmulsub(mpdigit *b, int n, mpdigit m, mpdigit *p);
 
-// p[0:alen*blen-1] = a[0:alen-1] * b[0:blen-1]
-// prereq: alen >= blen, p has room for m*n digits
+/* p[0:alen*blen-1] = a[0:alen-1] * b[0:blen-1] */
+/* prereq: alen >= blen, p has room for m*n digits */
 void	mpvecmul(mpdigit *a, int alen, mpdigit *b, int blen, mpdigit *p);
 
-// sign of a - b or zero if the same
+/* sign of a - b or zero if the same */
 int	mpveccmp(mpdigit *a, int alen, mpdigit *b, int blen);
 
-// divide the 2 digit dividend by the one digit divisor and stick in quotient
-// we assume that the result is one digit - overflow is all 1's
+/* divide the 2 digit dividend by the one digit divisor and stick in quotient */
+/* we assume that the result is one digit - overflow is all 1's */
 void	mpdigdiv(mpdigit *dividend, mpdigit divisor, mpdigit *quotient);
 
-// playing with magnitudes
+/* playing with magnitudes */
 int	mpmagcmp(mpint *b1, mpint *b2);
-void	mpmagadd(mpint *b1, mpint *b2, mpint *sum);	// sum = b1+b2
-void	mpmagsub(mpint *b1, mpint *b2, mpint *sum);	// sum = b1+b2
+void	mpmagadd(mpint *b1, mpint *b2, mpint *sum);	/* sum = b1+b2 */
+void	mpmagsub(mpint *b1, mpint *b2, mpint *sum);	/* sum = b1+b2 */
 
-// chinese remainder theorem
-typedef struct CRTpre	CRTpre;		// precomputed values for converting
-					//  twixt residues and mpint
-typedef struct CRTres	CRTres;		// residue form of an mpint
+/* chinese remainder theorem */
+typedef struct CRTpre	CRTpre;		/* precomputed values for converting */
+					/*  twixt residues and mpint */
+typedef struct CRTres	CRTres;		/* residue form of an mpint */
 
 struct CRTres
 {
-	int	n;		// number of residues
-	mpint	*r[1];		// residues
+	int	n;		/* number of residues */
+	mpint	*r[1];		/* residues */
 };
 
-CRTpre*	crtpre(int, mpint**);			// precompute conversion values
-CRTres*	crtin(CRTpre*, mpint*);			// convert mpint to residues
-void	crtout(CRTpre*, CRTres*, mpint*);	// convert residues to mpint
+CRTpre*	crtpre(int, mpint**);			/* precompute conversion values */
+CRTres*	crtin(CRTpre*, mpint*);			/* convert mpint to residues */
+void	crtout(CRTpre*, CRTres*, mpint*);	/* convert residues to mpint */
 void	crtprefree(CRTpre*);
 void	crtresfree(CRTres*);
 

+ 2 - 1
sys/man/3/sd

@@ -241,8 +241,9 @@ or
 .SH BUGS
 Still in development.
 .PP
+LUNs (logical unit numbers) are not implemented.
 For (S)ATA drives,
-LUNs (logical unit numbers) are not merely ignored but are actively
+LUNs are not merely ignored but are actively
 prevented from working except for INQUIRY commands.
 .PP
 The 4 controller limit for ATA(PI) is not enforced.

+ 35 - 23
sys/man/8/ipconfig

@@ -3,7 +3,7 @@
 ipconfig, rip \- Internet configuration and routing
 .SH SYNOPSIS
 .B ip/ipconfig
-.RB [ -NDGPOdnpr ]
+.RB [ -DGNOPdnpr ]
 .RB [ -b
 .IR baud ]
 .RB [ -c
@@ -20,6 +20,8 @@ ipconfig, rip \- Internet configuration and routing
 .IR dhcpoption ]
 .I type
 .I device
+.br
+.ti +0.5i
 .RI [ verb ]
 .RI [ local-addr ]
 .RI [ mask ]
@@ -69,6 +71,7 @@ the device can be any byte stream device.
 The verb (default
 .IR add )
 determines the action performed.  The verbs are:
+.TF remove
 .TP
 .B add
 if the device is not bound to the IP stack, bind it.
@@ -81,17 +84,15 @@ remove the address from the device interface.
 .B unbind
 unbind the device interface and all its addresses from the
 IP stack.
+.PD
 .PP
 The options are:
+.TF M
+.PD
 .TP
 .B D
 turn on debugging.
 .TP
-.B N
-look in /lib/ndb for the IP parameters.  This only works if the
-interface is an ethernet.  It uses the ethernet address to find
-a matching entry.
-.TP
 .B G
 use only generic DHCP options.  Without this option,
 .I ipconfig
@@ -102,6 +103,13 @@ interpret as the Plan 9 file server and auth server.
 Replies to these options contain a list of IP addresses for possible
 file servers and auth servers.
 .TP
+.B N
+look in
+.B /lib/ndb
+for the IP parameters.  This only works if the
+interface is an ethernet.  It uses the ethernet address to find
+a matching entry.
+.TP
 .B p
 write configuration information to
 .BR /net/ndb ,
@@ -163,22 +171,25 @@ to the list of paramters requested of the DHCP server.  The
 result will appear in
 .B /net/ndb
 should this be the first interface.  The known options are:
-.EX
-  ipmask, timeoff, ipgw, time, name, dns, log, cookie,
-  lpr, impress, rl, sys, bflen, dumpfile, dom, swap,
-  rootpath, extpath, ipforward, nonlocal, policyfilter,
-  maxdatagram, ttl, pathtimeout, pathplateau, mtu,
-  subnetslocal, baddr, discovermask, supplymask,
-  discoverrouter, rs, staticroutes, trailerencap,
-  arptimeout, etherencap, tcpttl, tcpka, tcpkag,
-  nisdomain, ni, ntp, netbiosns, netbiosdds,
-  netbiostype, netbiosscope, xfont, xdispmanager,
-  nisplusdomain, nisplus, homeagent, smtp, pop3, nntp,
-  www, finger, irc, st, stdar, ipaddr, lease,
-  overload, type, serverid, params, message, maxmsg,
-  renewaltime, rebindingtime, vendorclass, clientid,
-  tftp, bootfile
-.EE
+.TP 0.5i
+\&
+.ft CW
+ipmask, timeoff, ipgw, time, name, dns, log, cookie,
+lpr, impress, rl, sys, bflen, dumpfile, dom, swap,
+rootpath, extpath, ipforward, nonlocal, policyfilter,
+maxdatagram, ttl, pathtimeout, pathplateau, mtu,
+subnetslocal, baddr, discovermask, supplymask,
+discoverrouter, rs, staticroutes, trailerencap,
+arptimeout, etherencap, tcpttl, tcpka, tcpkag,
+nisdomain, ni, ntp, netbiosns, netbiosdds,
+netbiostype, netbiosscope, xfont, xdispmanager,
+nisplusdomain, nisplus, homeagent, smtp, pop3, nntp,
+www, finger, irc, st, stdar, ipaddr, lease,
+overload, type, serverid, params, message, maxmsg,
+renewaltime, rebindingtime, vendorclass, clientid,
+tftp, bootfile
+.PD
+.LP
 The options
 .BR ipmask ,
 .BR ipgw ,
@@ -187,12 +198,13 @@ The options
 and
 .B ntp
 are always requested.
+.TF M
+.PD
 .TP
 .B O
 addresses specified on the command line override those obtained
 via DHCP.
 A command line address of 0 implies no override.
-.PD
 .PP
 If DHCP is requested, a process is forked
 off to renew the lease before it

+ 1 - 1
sys/src/cmd/cwfs/9p1.c

@@ -37,7 +37,7 @@ mkchallenge(Authinfo *aip)
 {
 	int i;
 
-	srand((ulong)aip + time(nil));
+	srand((uintptr)aip + time(nil));
 	for(i = 0; i < CHALLEN; i++)
 		aip->chal[i] = nrand(256);
 

+ 1 - 1
sys/src/cmd/cwfs/auth.c

@@ -141,7 +141,7 @@ failure(Auth *s, char *why)
 	int i;
 
 if(*why)print("authentication failed: %s: %s\n", phasename[s->phase], why);
-	srand((ulong)s + time(nil));
+	srand((uintptr)s + time(nil));
 	for(i = 0; i < CHALLEN; i++)
 		s->tr.chal[i] = nrand(256);
 	s->uid = -1;

+ 1 - 1
sys/src/cmd/cwfs/iobuf.c

@@ -15,7 +15,7 @@ getbuf(Device *d, Off addr, int flag)
 
 	if(DEBUG)
 		print("getbuf %Z(%lld) f=%x\n", d, (Wideoff)addr, flag);
-	h = addr + (Off)d*1009;
+	h = addr + (Off)(uintptr)d*1009;
 	if(h < 0)
 		h = ~h;
 	h %= nhiob;

+ 2 - 2
sys/src/cmd/cwfs/sub.c

@@ -116,7 +116,7 @@ filep(Chan *cp, ulong fid, int flag)
 	if(fid == NOFID)
 		return 0;
 
-	h = (long)cp + fid;
+	h = (long)(uintptr)cp + fid;
 	if(h < 0)
 		h = ~h;
 	h %= nelem(flist);
@@ -201,7 +201,7 @@ freefp(File *fp)
 	if(!fp || !(cp = fp->cp))
 		return;
 
-	h = (long)cp + fp->fid;
+	h = (long)(uintptr)cp + fp->fid;
 	if(h < 0)
 		h = ~h;
 	h %= nelem(flist);

+ 7 - 5
sys/src/cmd/fossil/cache.c

@@ -462,7 +462,7 @@ _cacheLocalLookup(Cache *c, int part, u32int addr, u32int vers,
 			return nil;
 		case BioReadError:
 			blockPut(b);
-			vtSetError("i/o error block 0x%.8ux", addr);
+			vtSetError("error reading block 0x%.8ux", addr);
 			return nil;
 		}
 	}
@@ -577,7 +577,7 @@ fprint(2, "_cacheLocal want epoch %ud got %ud\n", epoch, b->l.epoch);
 		case BioReadError:
 			blockSetIOState(b, BioEmpty);
 			blockPut(b);
-			vtSetError("i/o error block 0x%.8ux", addr);
+			vtSetError("error reading block 0x%.8ux", addr);
 			return nil;
 		}
 	}
@@ -681,7 +681,9 @@ if(0)fprint(2, "cacheGlobal %V %d\n", score, type);
 		if(n < 0 || !vtSha1Check(score, b->data, n)){
 			blockSetIOState(b, BioVentiError);
 			blockPut(b);
-			vtSetError("venti i/o error block %V: %r", score);
+			vtSetError(
+			"venti error reading block %V or wrong score: %r",
+				score);
 			return nil;
 		}
 		vtZeroExtend(vtType[type], b->data, n, c->size);
@@ -691,11 +693,11 @@ if(0)fprint(2, "cacheGlobal %V %d\n", score, type);
 		return b;
 	case BioVentiError:
 		blockPut(b);
-		vtSetError("venti i/o error block %V", score);
+		vtSetError("venti i/o error or wrong score, block %V", score);
 		return nil;
 	case BioReadError:
 		blockPut(b);
-		vtSetError("i/o error block %V", b->score);
+		vtSetError("error reading block %V", b->score);
 		return nil;
 	}
 	/* NOT REACHED */

+ 123 - 118
sys/src/cmd/ip/ipconfig.c

@@ -21,7 +21,7 @@ char	*ndboptions;
 
 Ipifc	*ifc;
 
-// possible verbs
+/* possible verbs */
 enum
 {
 	Vadd,
@@ -33,20 +33,20 @@ enum
 };
 
 struct {
-	// locally generated
+	/* locally generated */
 	char	*type;
 	char	*dev;
 	char	mpoint[32];
-	int	cfd;			// ifc control channel
+	int	cfd;			/* ifc control channel */
 	char	*cputype;
-	uchar	hwa[32];		// hardware address
+	uchar	hwa[32];		/* hardware address */
 	int	hwatype;
 	int	hwalen;
 	uchar	cid[32];
 	int	cidlen;
 	char	*baud;
 
-	// learned info
+	/* learned info */
 	uchar	gaddr[IPaddrlen];
 	uchar	laddr[IPaddrlen];
 	uchar	mask[IPaddrlen];
@@ -57,7 +57,7 @@ struct {
 	uchar	ntp[IPaddrlen];
 	int	mtu;
 
-	// dhcp specific
+	/* dhcp specific */
 	int	state;
 	int	fd;
 	ulong	xid;
@@ -89,9 +89,11 @@ struct Option
 	int	type;
 };
 
-// I was too lazy to look up the types for each of these
-// options.  If someone feels like it, please mail me a
-// corrected array -- presotto
+/*
+ * I was too lazy to look up the types for each of these
+ * options.  If someone feels like it, please mail me a
+ * corrected array -- presotto
+ */
 Option option[256] =
 {
 [OBmask]		{ "ipmask",		Taddr },
@@ -236,7 +238,9 @@ Ctl *firstctl, **ctll;
 void
 usage(void)
 {
-	fprint(2, "usage: %s [-ndDrGX] [-x netmtpt] [-m mtu] [-b baud] [-g gateway] [-h hostname] [-c control-string]* type device [verb] [localaddr [mask [remoteaddr [fsaddr [authaddr]]]]]\n", argv0);
+	fprint(2,
+"usage: %s [-ndDrGX] [-x netmtpt] [-m mtu] [-b baud] [-g gateway] [-h hostname] [-c ctlmsg]* type device [verb] [localaddr [mask [remoteaddr [fsaddr [authaddr]]]]]\n",
+		argv0);
 	exits("usage");
 }
 
@@ -261,7 +265,7 @@ main(int argc, char **argv)
 	retry = 0;
 	ctll = &firstctl;
 
-	// init set of requested parameters with the default
+	/* init set of requested parameters with the default */
 	nrequested = sizeof(defrequested);
 	memcpy(requested, defrequested, nrequested);
 
@@ -284,81 +288,68 @@ main(int argc, char **argv)
 	case 'P':
 		beprimary = 0;
 	case 'b':
-		p = ARGF();
-		if(p == nil)
-			usage();
-		conf.baud = p;
+		conf.baud = EARGF(usage());
 		break;
 	case 'c':
-		p = ARGF();
-		if(p == nil)
-			usage();
 		cp = malloc(sizeof(*cp));
 		if(cp == nil)
 			sysfatal("%r");
 		*ctll = cp;
 		ctll = &cp->next;
 		cp->next = nil;
-		cp->ctl = p;
+		cp->ctl = EARGF(usage());
 		break;
 	case 'd':
 		dodhcp = 1;
 		break;
 	case 'g':
-		p = ARGF();
-		if(p == nil)
+		if (parseip(conf.gaddr, EARGF(usage())) == -1)
 			usage();
-		parseip(conf.gaddr, p);
 		break;
 	case 'h':
-		p = ARGF();
-		if(p == nil)
-			usage();
-		snprint(conf.hostname, sizeof(conf.hostname), "%s", p);
+		snprint(conf.hostname, sizeof conf.hostname, "%s",
+			EARGF(usage()));
 		sendhostname = 1;
 		break;
 	case 'n':
 		noconfig = 1;
 		break;
 	case 'm':
-		p = ARGF();
-		if(p == nil)
-			usage();
-		conf.mtu = atoi(p);
+		conf.mtu = atoi(EARGF(usage()));
 		break;
 	case 'r':
 		retry = 1;
 		break;
 	case 'x':
-		p = ARGF();
-		if(p == nil)
-			usage();
-		setnetmtpt(conf.mpoint, sizeof(conf.mpoint), p);
+		setnetmtpt(conf.mpoint, sizeof conf.mpoint, EARGF(usage()));
 		break;
 	case 'X':
 		nodhcpwatch = 1;
 		break;
 	case 'o':
-		if(addoption(ARGF()) < 0)
+		if(addoption(EARGF(usage())) < 0)
 			usage();
 		break;
+	default:
+		usage();
+		break;
 	} ARGEND;
 
-	// default to any host name we already have
+	/* default to any host name we already have */
 	if(*conf.hostname == 0){
 		p = getenv("sysname");
 		if(p == nil || *p == 0)
 			p = sysname();
 		if(p != nil)
 			strncpy(conf.hostname, p, sizeof(conf.hostname)-1);
-	}		
+	}
 
-	// default
+	/* default */
 	conf.type = "ether";
 	conf.dev = "/net/ether0";
 	action = Vadd;
 
-	// get verb, default is "add"
+	/* get verb, default is "add" */
 	while(argc > 0){
 		verb = parseverb(argv[0]);
 		switch(verb){
@@ -382,23 +373,33 @@ main(int argc, char **argv)
 		argc--, argv++;
 	}
 
-	// get addresses
+	/* get addresses */
 	switch(argc){
 	case 5:
-		parseip(conf.auth, argv[4]);
+		if (parseip(conf.auth, argv[4]) == -1)
+			usage();
 		/* fall through */
 	case 4:
-		parseip(conf.fs, argv[3]);
+		if (parseip(conf.fs, argv[3]) == -1)
+			usage();
 		/* fall through */
 	case 3:
-		parseip(conf.raddr, argv[2]);
+		if (parseip(conf.raddr, argv[2]) == -1)
+			usage();
 		/* fall through */
 	case 2:
 		if(strcmp(argv[1], "0") != 0)
-			parseipmask(conf.mask, argv[1]);
+			if (parseipmask(conf.mask, argv[1]) == -1)
+				usage();
 		/* fall through */
 	case 1:
-		parseip(conf.laddr, argv[0]);
+		if (parseip(conf.laddr, argv[0]) == -1)
+			usage();
+		break;
+	case 0:
+		break;
+	default:
+		usage();
 		break;
 	}
 
@@ -439,12 +440,12 @@ doadd(int retry)
 {
 	int tries;
 
-	// get number of preexisting interfaces
+	/* get number of preexisting interfaces */
 	nip = nipifcs(conf.mpoint);
 	if(beprimary == -1 && (nip == 0 || !havendb(conf.mpoint)))
 		beprimary = 1;
 
-	// get ipifc into name space and condition device for ip
+	/* get ipifc into name space and condition device for ip */
 	if(!noconfig){
 		lookforip(conf.mpoint);
 		controldevice();
@@ -458,7 +459,7 @@ doadd(int retry)
 			dodhcp = 1;
 	}
 
-	// run dhcp if we need something
+	/* run dhcp if we need something */
 	if(dodhcp){
 		mkclientid();
 		for(tries = 0; tries < 6; tries++){
@@ -487,7 +488,7 @@ doadd(int retry)
 			dhcpwatch(0);
 	}
 
-	// leave everything we've learned somewhere other procs can find it
+	/* leave everything we've learned somewhere other procs can find it */
 	if(beprimary == 1){
 		putndb();
 		tweakservers();
@@ -555,7 +556,7 @@ dounbind(void)
 	}
 }
 
-// set the default route
+/* set the default route */
 void
 adddefroute(char *mpoint, uchar *gaddr)
 {
@@ -573,7 +574,7 @@ adddefroute(char *mpoint, uchar *gaddr)
 	close(cfd);
 }
 
-// create a client id
+/* create a client id */
 void
 mkclientid(void)
 {
@@ -591,7 +592,7 @@ mkclientid(void)
 	}
 }
 
-// bind ip into the namespace
+/* bind ip into the namespace */
 void
 lookforip(char *net)
 {
@@ -603,7 +604,7 @@ lookforip(char *net)
 	sysfatal("no ip stack bound onto %s", net);
 }
 
-// send some ctls to a device
+/* send some ctls to a device */
 void
 controldevice(void)
 {
@@ -628,26 +629,27 @@ controldevice(void)
 			sysfatal("ctl message %s: %r", cp->ctl);
 		seek(fd, 0, 0);
 	}
+//	close(fd);		/* or does it need to be left hanging? */
 }
 
-// bind an ip stack to a device, leave the control channel open
+/* bind an ip stack to a device, leave the control channel open */
 void
 binddevice(void)
 {
 	char buf[256];
 
 	if(myifc < 0){
-		// get a new ip interface
+		/* get a new ip interface */
 		snprint(buf, sizeof(buf), "%s/ipifc/clone", conf.mpoint);
 		conf.cfd = open(buf, ORDWR);
 		if(conf.cfd < 0)
 			sysfatal("opening %s/ipifc/clone: %r", conf.mpoint);
 
-		// specify the medium as an ethernet, and bind the interface to it
+		/* specify the medium as an ethernet, and bind the interface to it */
 		if(fprint(conf.cfd, "bind %s %s", conf.type, conf.dev) < 0)
 			sysfatal("binding device: %r");
 	} else {
-		// open the old interface
+		/* open the old interface */
 		snprint(buf, sizeof(buf), "%s/ipifc/%d/ctl", conf.mpoint, myifc);
 		conf.cfd = open(buf, ORDWR);
 		if(conf.cfd < 0)
@@ -656,7 +658,7 @@ binddevice(void)
 
 }
 
-// add a logical interface to the ip stack
+/* add a logical interface to the ip stack */
 int
 ipconfig(void)
 {
@@ -690,7 +692,7 @@ ipconfig(void)
 	return 0;
 }
 
-// remove a logical interface to the ip stack
+/* remove a logical interface to the ip stack */
 void
 ipunconfig(void)
 {
@@ -713,7 +715,7 @@ ipunconfig(void)
 	ipmove(conf.raddr, IPnoaddr);
 	ipmove(conf.mask, IPnoaddr);
 
-	// forget configuration info
+	/* forget configuration info */
 	if(beprimary==1)
 		writendb("", 0, 0);
 }
@@ -739,7 +741,7 @@ dhcpquery(int needconfig, int startstate)
 	}
 	notify(ding);
 
-	// try dhcp for 10 seconds
+	/* try dhcp for 10 seconds */
 	conf.xid = lrand();
 	conf.starttime = time(0);
 	conf.state = startstate;
@@ -789,14 +791,14 @@ dhcpwatch(int needconfig)
 		break;
 	}
 
-	// keep trying to renew the lease
+	/* keep trying to renew the lease */
 	for(;;){
 		if(conf.lease == 0)
 			secs = 5;
 		else
 			secs = conf.lease>>1;
 
-		// avoid overflows
+		/* avoid overflows */
 		for(s = secs; s > 0; s -= t){
 			if(s > MAXSLEEP)
 				t = MAXSLEEP;
@@ -806,8 +808,10 @@ dhcpwatch(int needconfig)
 		}
 
 		if(conf.lease > 0){
-			// during boot, the starttime can be bogus so avoid
-			// spurious ipinconfig's
+			/*
+			 * during boot, the starttime can be bogus so avoid
+			 * spurious ipinconfig's
+			 */
 			t = time(0) - conf.starttime;
 			if(t > (3*secs)/2)
 				t = secs;
@@ -827,7 +831,7 @@ dhcpwatch(int needconfig)
 				sysfatal("can't start ip: %r");
 			needconfig = 0;
 
-			// leave everything we've learned somewhere other procs can find it
+			/* leave everything we've learned somewhere other procs can find it */
 			if(beprimary==1){
 				putndb();
 				tweakservers();
@@ -919,7 +923,7 @@ dhcpsend(int type)
 	default:
 		sysfatal("dhcpsend: unknown message type: %d", type);
 	case Discover:
-		ipmove(up->raddr, IPv4bcast);	// broadcast
+		ipmove(up->raddr, IPv4bcast);	/* broadcast */
 		if(*conf.hostname && sendhostname)
 			p = optaddstr(p, OBhostname, conf.hostname);
 		if(plan9){
@@ -937,11 +941,11 @@ dhcpsend(int type)
 			v6tov4(bp.ciaddr, conf.laddr);
 			break;
 		case Srebinding:
-			ipmove(up->raddr, IPv4bcast);	// broadcast
+			ipmove(up->raddr, IPv4bcast);	/* broadcast */
 			v6tov4(bp.ciaddr, conf.laddr);
 			break;
 		case Srequesting:
-			ipmove(up->raddr, IPv4bcast);	// broadcast
+			ipmove(up->raddr, IPv4bcast);	/* broadcast */
 			p = optaddaddr(p, ODipaddr, conf.laddr);
 			p = optaddaddr(p, ODserverid, conf.server);
 			break;
@@ -954,7 +958,7 @@ dhcpsend(int type)
 		p = optaddvec(p, ODparams, requested, nrequested);
 		if(*conf.hostname && sendhostname)
 			p = optaddstr(p, OBhostname, conf.hostname);
-		break;	
+		break;
 	case Release:
 		ipmove(up->raddr, conf.server);
 		v6tov4(bp.ciaddr, conf.laddr);
@@ -1051,7 +1055,7 @@ dhcprecv(void)
 		if(conf.state != Srebinding)
 			break;
 
-		// ignore a bad lease
+		/* ignore a bad lease */
 		lease = optgetulong(bp->optdata, ODlease);
 		if(lease == 0){
 			/*
@@ -1063,7 +1067,7 @@ dhcprecv(void)
 		}
 		DEBUG("lease=%lud ", lease);
 
-		// address and mask
+		/* address and mask */
 		if(!validip(conf.laddr) || !Oflag)
 			v4tov6(conf.laddr, bp->yiaddr);
 		if(!validip(conf.mask) || !Oflag){
@@ -1072,8 +1076,10 @@ dhcprecv(void)
 		}
 		DEBUG("ipaddr=%I ipmask=%M ", conf.laddr, conf.mask);
 
-		// get a router address either from the router option
-		// or from the router that forwarded the dhcp packet
+		/*
+		 * get a router address either from the router option
+		 * or from the router that forwarded the dhcp packet
+		 */
 		if(!validip(conf.gaddr) || !Oflag){
 			if(optgetaddr(bp->optdata, OBrouter, conf.gaddr)){
 				DEBUG("ipgw=%I ", conf.gaddr);
@@ -1087,28 +1093,28 @@ dhcprecv(void)
 		else
 			DEBUG("ipgw=%I ", conf.gaddr);
 
-		// get dns servers
+		/* get dns servers */
 		memset(conf.dns, 0, sizeof(conf.dns));
 		n = optgetaddrs(bp->optdata, OBdnserver, conf.dns,
 				sizeof(conf.dns)/IPaddrlen);
 		for(i = 0; i < n; i++)
 			DEBUG("dns=%I ", conf.dns+i*IPaddrlen);
 
-		// get ntp servers
+		/* get ntp servers */
 		memset(conf.ntp, 0, sizeof(conf.ntp));
 		n = optgetaddrs(bp->optdata, OBntpserver, conf.ntp,
 				sizeof(conf.ntp)/IPaddrlen);
 		for(i = 0; i < n; i++)
 			DEBUG("ntp=%I ", conf.ntp+i*IPaddrlen);
 
-		// get names
+		/* get names */
 		optgetstr(bp->optdata, OBhostname, conf.hostname, sizeof(conf.hostname));
 		optgetstr(bp->optdata, OBdomainname, conf.domainname, sizeof(conf.domainname));
 
-		// get anything else we asked for
+		/* get anything else we asked for */
 		getoptions(bp->optdata);
 
-		// get plan9 specific options
+		/* get plan9 specific options */
 		n = optgetvec(bp->optdata, OBvendorinfo, vopts, sizeof(vopts)-1);
 		if(n > 0 && parseoptions(vopts, n) == 0){
 			if(validip(conf.fs) && Oflag)
@@ -1157,7 +1163,7 @@ openlisten()
 		if(!noconfig)
 			sysfatal("can't announce for dhcp: %r");
 
-		// might be another client - wait and try again
+		/* might be another client - wait and try again */
 		fprint(2, "%s: can't announce: %r\n", argv0);
 		sleep((nrand(10)+1)*1000);
 		if(n > 10)
@@ -1228,7 +1234,7 @@ optaddstr(uchar *p, int op, char *v)
 {
 	int n;
 
-	n = strlen(v)+1;	// microsoft leaves on the null, so we do too
+	n = strlen(v)+1;	/* microsoft leaves on the null, so we do too */
 	p[0] = op;
 	p[1] = n;
 	memmove(p+2, v, n);
@@ -1348,9 +1354,11 @@ optgetstr(uchar *p, int op, char *s, int n)
 	return len;
 }
 
-// sanity check options area
-//	- options don't overflow packet
-//	- options end with an OBend
+/*
+ * sanity check options area
+ * 	- options don't overflow packet
+ * 	- options end with an OBend
+ */
 int
 parseoptions(uchar *p, int n)
 {
@@ -1377,17 +1385,19 @@ parseoptions(uchar *p, int n)
 			return -1;
 		}
 		p += len;
-		n -= len;		
+		n -= len;
 	}
 
-	// make sure packet ends with an OBend all the optget code
+	/* make sure packet ends with an OBend all the optget code */
 	*p = OBend;
 	return 0;
 }
 
-//  sanity check received packet:
-//	- magic is dhcp magic
-//	- options don't overflow packet
+/*
+ * sanity check received packet:
+ * 	- magic is dhcp magic
+ * 	- options don't overflow packet
+ */
 Bootp *
 parsebootp(uchar *p, int n)
 {
@@ -1427,7 +1437,7 @@ parsebootp(uchar *p, int n)
 	return bp;
 }
 
-// write out an ndb entry
+/* write out an ndb entry */
 void
 writendb(char *s, int n, int append)
 {
@@ -1444,7 +1454,7 @@ writendb(char *s, int n, int append)
 	close(fd);
 }
 
-// put server addresses into the ndb entry
+/* put server addresses into the ndb entry */
 char*
 putaddrs(char *p, char *e, char *attr, uchar *a, int len)
 {
@@ -1458,7 +1468,7 @@ putaddrs(char *p, char *e, char *attr, uchar *a, int len)
 	return p;
 }
 
-// make an ndb entry and put it into /net/ndb for the servers to see
+/* make an ndb entry and put it into /net/ndb for the servers to see */
 void
 putndb(void)
 {
@@ -1498,13 +1508,12 @@ putndb(void)
 		writendb(buf, p-buf, append);
 }
 
-// get an ndb entry someone else wrote
+/* get an ndb entry someone else wrote */
 int
 getndb(void)
 {
 	char buf[1024];
-	int fd;
-	int n;
+	int fd, n;
 	char *p;
 
 	snprint(buf, sizeof buf, "%s/ndb", conf.mpoint);
@@ -1522,7 +1531,7 @@ getndb(void)
 	return 0;
 }
 
-// tell a server to refresh
+/* tell a server to refresh */
 void
 tweakserver(char *server)
 {
@@ -1537,7 +1546,7 @@ tweakserver(char *server)
 	close(fd);
 }
 
-// tell all servers to refresh their information
+/* tell all servers to refresh their information */
 void
 tweakservers(void)
 {
@@ -1545,7 +1554,7 @@ tweakservers(void)
 	tweakserver("cs");
 }
 
-// return number of networks
+/* return number of networks */
 int
 nipifcs(char *net)
 {
@@ -1572,7 +1581,7 @@ nipifcs(char *net)
 	return n;
 }
 
-// return true if this is a valid v4 address
+/* return true if this is a valid v4 address */
 int
 validip(uchar *addr)
 {
@@ -1584,26 +1593,23 @@ char *verbs[] = {
 [Vremove]	"remove",
 [Vunbind]	"unbind",
 [Vether]	"ether",
-[Vgbe]	"gbe",
+[Vgbe]		"gbe",
 [Vloopback]	"loopback",
 };
 
-// look for an action
+/* look for an action */
 int
 parseverb(char *name)
 {
 	int i;
 
-	for(i = 0; i < nelem(verbs); i++){
-		if(verbs[i] == 0)
-			continue;
-		if(strcmp(name, verbs[i]) == 0)
+	for(i = 0; i < nelem(verbs); i++)
+		if(verbs[i] != nil && strcmp(name, verbs[i]) == 0)
 			return i;
-	}
 	return -1;
 }
 
-// get everything out of ndb
+/* get everything out of ndb */
 void
 ndbconfig(void)
 {
@@ -1619,7 +1625,8 @@ ndbconfig(void)
 	db = ndbopen(0);
 	if(db == nil)
 		sysfatal("can't open ndb: %r");
-	if((strcmp(conf.type, "ether") != 0 && strcmp(conf.type, "gbe") != 0) || myetheraddr(conf.hwa, conf.dev) != 0)
+	if((strcmp(conf.type, "ether") != 0 && strcmp(conf.type, "gbe") != 0) ||
+	    myetheraddr(conf.hwa, conf.dev) != 0)
 		sysfatal("can't read hardware address");
 	sprint(etheraddr, "%E", conf.hwa);
 	nattr = 0;
@@ -1632,23 +1639,21 @@ ndbconfig(void)
 	attrs[nattr++] = "@auth";
 	attrs[nattr] = nil;
 	t = ndbipinfo(db, "ether", etheraddr, attrs, nattr);
-	for(nt = t; nt != nil; nt = nt->entry){
-		if(strcmp(nt->attr, "ip") == 0){
+	for(nt = t; nt != nil; nt = nt->entry)
+		if(strcmp(nt->attr, "ip") == 0)
 			parseip(conf.laddr, nt->val);
-		} else if(strcmp(nt->attr, "ipmask") == 0){
+		else if(strcmp(nt->attr, "ipmask") == 0)
 			parseipmask(conf.mask, nt->val);
-		} else if(strcmp(nt->attr, "ipgw") == 0){
+		else if(strcmp(nt->attr, "ipgw") == 0)
 			parseip(conf.gaddr, nt->val);
-		} else if(ndns < 2 && strcmp(nt->attr, "dns") == 0){
+		else if(ndns < 2 && strcmp(nt->attr, "dns") == 0)
 			parseip(conf.dns+IPaddrlen*ndns, nt->val);
-		} else if(strcmp(nt->attr, "ntp") == 0){
+		else if(strcmp(nt->attr, "ntp") == 0)
 			parseip(conf.ntp, nt->val);
-		} else if(nfs < 2 && strcmp(nt->attr, "fs") == 0){
+		else if(nfs < 2 && strcmp(nt->attr, "fs") == 0)
 			parseip(conf.fs+IPaddrlen*nfs, nt->val);
-		} else if(nauth < 2 && strcmp(nt->attr, "auth") == 0){
+		else if(nauth < 2 && strcmp(nt->attr, "auth") == 0)
 			parseip(conf.auth+IPaddrlen*nauth, nt->val);
-		}
-	}
 	ndbfree(t);
 	if(!validip(conf.laddr))
 		sysfatal("address not found in ndb");

+ 13 - 12
sys/src/cmd/mkfile

@@ -123,16 +123,17 @@ $O.cj:	cj.$O
 	update $stem.c /386/bin/$stem
 
 compilers:V:
-	@{
-		cd cc
-		mk clean
-		mk installall
-		mk clean
-	}
 	for(i in ?c)
-	if(! ~ $i cc rc) @{
-		cd $i;
-		mk clean
-		mk installall
-		mk clean
-	}
+		if(! ~ $i cc rc) @{
+			cd $i
+			mk clean
+			objtype=$cputype mk install
+			mk clean
+		}
+	for(i in ?c)
+		if(! ~ $i cc rc) @{
+			cd $i
+			mk clean
+			mk installall
+			mk clean
+		}

+ 5 - 0
sys/src/libdraw/mouse.c

@@ -108,6 +108,11 @@ initmouse(char *file, Image *i)
 		return nil;
 	}
 	t = malloc(strlen(file)+16);
+	if (t == nil) {
+		close(mc->mfd);
+		free(mc);
+		return nil;
+	}
 	strcpy(t, file);
 	sl = utfrrune(t, '/');
 	if(sl)

+ 4 - 2
sys/src/libdraw/writecolmap.c

@@ -18,8 +18,10 @@ writecolmap(Display *d, RGB *m)
 	sprint(buf, "/dev/draw/%d/colormap", d->dirno);
 	fd = open(buf, OWRITE);
 	if(fd < 0)
-		drawerror(d, "wrcolmap: open colormap failed");
+		drawerror(d, "writecolmap: open colormap failed");
 	t = malloc(8192);
+	if (t == nil)
+		drawerror(d, "writecolmap: no memory");
 	n = 0;
 	for(i = 0; i < 256; i++) {
 		r = m[i].red>>24;
@@ -31,5 +33,5 @@ writecolmap(Display *d, RGB *m)