Browse Source

Plan 9 from Bell Labs 2006-03-29

David du Colombier 18 years ago
parent
commit
a159db722c
6 changed files with 24 additions and 17 deletions
  1. 4 4
      dist/replica/_plan9.db
  2. 4 4
      dist/replica/plan9.db
  3. 4 0
      dist/replica/plan9.log
  4. 5 4
      sys/man/3/usb
  5. 6 5
      sys/man/8/prep
  6. 1 0
      sys/src/cmd/tweak.c

+ 4 - 4
dist/replica/_plan9.db

@@ -437,7 +437,7 @@
 386/bin/trace - 775 sys sys 1142871043 181505
 386/bin/troff - 775 sys sys 1134151360 357941
 386/bin/troff2html - 775 sys sys 1132506877 85770
-386/bin/tweak - 775 sys sys 1142871044 192901
+386/bin/tweak - 775 sys sys 1143568603 192903
 386/bin/unicode - 775 sys sys 1135570852 62504
 386/bin/uniq - 775 sys sys 1135570852 61885
 386/bin/units - 775 sys sys 1135570852 75235
@@ -7580,7 +7580,7 @@ sys/man/3/srv - 664 sys sys 958419690 1470
 sys/man/3/ssl - 664 sys sys 1018386776 3413
 sys/man/3/tls - 664 sys sys 1045501496 7018
 sys/man/3/uart - 664 sys sys 1138191356 2003
-sys/man/3/usb - 664 sys sys 1126971427 6960
+sys/man/3/usb - 664 sys sys 1143567502 6941
 sys/man/3/vga - 664 sys sys 1131301005 4957
 sys/man/4 - 20000000775 sys sys 1018581459 0
 sys/man/4/0intro - 664 sys sys 944959699 472
@@ -7729,7 +7729,7 @@ sys/man/8/ping - 664 sys sys 1139667147 3489
 sys/man/8/plan9.ini - 664 sys sys 1131294569 22077
 sys/man/8/pop3 - 664 sys sys 1063854676 2720
 sys/man/8/ppp - 664 sys sys 1125530075 4414
-sys/man/8/prep - 664 sys sys 1138460130 13853
+sys/man/8/prep - 664 sys sys 1143568557 13874
 sys/man/8/qer - 664 sys sys 1067723129 4909
 sys/man/8/reboot - 664 sys sys 969499895 414
 sys/man/8/replica - 664 sys sys 1138479158 6383
@@ -13440,7 +13440,7 @@ sys/src/cmd/troff2html - 20000000775 sys sys 961257241 0
 sys/src/cmd/troff2html/chars.h - 664 sys sys 1105584129 3957
 sys/src/cmd/troff2html/mkfile - 664 sys sys 1105631961 242
 sys/src/cmd/troff2html/troff2html.c - 664 sys sys 1132450028 14280
-sys/src/cmd/tweak.c - 664 sys sys 1134305456 38986
+sys/src/cmd/tweak.c - 664 sys sys 1143562011 38997
 sys/src/cmd/unicode.c - 664 sys sys 944961351 1953
 sys/src/cmd/uniq.c - 664 sys sys 944961351 2236
 sys/src/cmd/units.y - 664 sys sys 1014926801 10979

+ 4 - 4
dist/replica/plan9.db

@@ -437,7 +437,7 @@
 386/bin/trace - 775 sys sys 1142871043 181505
 386/bin/troff - 775 sys sys 1134151360 357941
 386/bin/troff2html - 775 sys sys 1132506877 85770
-386/bin/tweak - 775 sys sys 1142871044 192901
+386/bin/tweak - 775 sys sys 1143568603 192903
 386/bin/unicode - 775 sys sys 1135570852 62504
 386/bin/uniq - 775 sys sys 1135570852 61885
 386/bin/units - 775 sys sys 1135570852 75235
@@ -7580,7 +7580,7 @@ sys/man/3/srv - 664 sys sys 958419690 1470
 sys/man/3/ssl - 664 sys sys 1018386776 3413
 sys/man/3/tls - 664 sys sys 1045501496 7018
 sys/man/3/uart - 664 sys sys 1138191356 2003
-sys/man/3/usb - 664 sys sys 1126971427 6960
+sys/man/3/usb - 664 sys sys 1143567502 6941
 sys/man/3/vga - 664 sys sys 1131301005 4957
 sys/man/4 - 20000000775 sys sys 1018581459 0
 sys/man/4/0intro - 664 sys sys 944959699 472
@@ -7729,7 +7729,7 @@ sys/man/8/ping - 664 sys sys 1139667147 3489
 sys/man/8/plan9.ini - 664 sys sys 1131294569 22077
 sys/man/8/pop3 - 664 sys sys 1063854676 2720
 sys/man/8/ppp - 664 sys sys 1125530075 4414
-sys/man/8/prep - 664 sys sys 1138460130 13853
+sys/man/8/prep - 664 sys sys 1143568557 13874
 sys/man/8/qer - 664 sys sys 1067723129 4909
 sys/man/8/reboot - 664 sys sys 969499895 414
 sys/man/8/replica - 664 sys sys 1138479158 6383
@@ -13440,7 +13440,7 @@ sys/src/cmd/troff2html - 20000000775 sys sys 961257241 0
 sys/src/cmd/troff2html/chars.h - 664 sys sys 1105584129 3957
 sys/src/cmd/troff2html/mkfile - 664 sys sys 1105631961 242
 sys/src/cmd/troff2html/troff2html.c - 664 sys sys 1132450028 14280
-sys/src/cmd/tweak.c - 664 sys sys 1134305456 38986
+sys/src/cmd/tweak.c - 664 sys sys 1143562011 38997
 sys/src/cmd/unicode.c - 664 sys sys 944961351 1953
 sys/src/cmd/uniq.c - 664 sys sys 944961351 2236
 sys/src/cmd/units.y - 664 sys sys 1014926801 10979

+ 4 - 0
dist/replica/plan9.log

@@ -28337,3 +28337,7 @@
 1143482435 1 c 386/bin/ip/httpd/save - 775 sys sys 1143482342 133176
 1143482435 2 c 386/bin/ip/ppp - 775 sys sys 1143482342 219951
 1143487836 0 c sys/games/lib/fortunes - 664 sys sys 1143487643 258076
+1143563458 0 c sys/src/cmd/tweak.c - 664 sys sys 1143562011 38997
+1143568860 0 c 386/bin/tweak - 775 sys sys 1143568603 192903
+1143568860 1 c sys/man/3/usb - 664 sys sys 1143567502 6941
+1143568860 2 c sys/man/8/prep - 664 sys sys 1143568557 13874

+ 5 - 4
sys/man/3/usb

@@ -134,10 +134,11 @@ is the number of data units transmitted or received per second.
 .PP
 The data rate is thus
 .IR hz × samplesize
-bytes per second, and the packet size used will vary between
-⌊(\f2period\fP×\f2hz\fP)/1000⌋×\f2samplesize\fP
-and
-⌈(\f2period\fP×\f2hz\fP)/1000⌉×\f2samplesize\fP.
+bytes per second, and the number of samples in a packet
+will be 
+.RI ( period × hz )/1000,
+rounded up or down.
+Packets do not contain fractional samples.
 .PP
 The mouse, which produces 3-byte samples, is configured with
 .BR "ep 1 bulk r 3 32" :

+ 6 - 5
sys/man/8/prep

@@ -600,17 +600,18 @@ is an example of a suitable
 .I bfile
 to make the disk a boot disk.
 It gets loaded by the BIOS at 0x7C00,
-reads the root directory into address 0x7E00, and looks at
-the first root directory entry.
-If that file is called
-.BR 9LOAD ,
+reads the first sector of the
+root directory into address 0x7E00, and looks for
+a directory entry named 
+.BR 9LOAD .
+If it finds such an entry, 
 it uses
 single sector reads to load the file into address 0x10000 and then
 jumps to the loaded file image.
 The file
 .B /386/pbslba
 is similar, but because it uses LBA addressing (not supported
-by all BIOSes), it can access more than the first 8.5GB of the disk.
+by older BIOSes), it can access more than the first 8.5GB of the disk.
 .PP
 .I Mbr
 installs a new boot block in sector 0 (the master boot record)

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

@@ -536,6 +536,7 @@ tohex(int c)
 		return 10 + (c - 'a');
 	if('A'<=c && c<='F')
 		return 10 + (c - 'A');
+	return 0;
 }
 
 Thing*