Browse Source

Plan 9 from Bell Labs 2005-12-07

David du Colombier 18 years ago
parent
commit
e326c8fa12
12 changed files with 49 additions and 48 deletions
  1. 11 11
      dist/replica/_plan9.db
  2. 11 11
      dist/replica/plan9.db
  3. 11 0
      dist/replica/plan9.log
  4. 1 12
      sys/man/1/vt
  5. 1 1
      sys/man/2/memdraw
  6. 1 1
      sys/man/3/audio
  7. 3 1
      sys/man/3/cons
  8. 2 2
      sys/man/3/fs
  9. 4 4
      sys/man/3/ip
  10. 2 2
      sys/man/3/proc
  11. 1 1
      sys/src/cmd/sam/list.c
  12. 1 2
      sys/src/cmd/sam/sam.h

+ 11 - 11
dist/replica/_plan9.db

@@ -385,7 +385,7 @@
 386/bin/rio - 775 sys sys 1133287403 310310
 386/bin/rio - 775 sys sys 1133287403 310310
 386/bin/rm - 775 sys sys 1130594779 61365
 386/bin/rm - 775 sys sys 1130594779 61365
 386/bin/rx - 775 sys sys 1130594779 82087
 386/bin/rx - 775 sys sys 1130594779 82087
-386/bin/sam - 775 sys sys 1133287404 159353
+386/bin/sam - 775 sys sys 1133892147 159358
 386/bin/scat - 775 sys sys 1132506872 284491
 386/bin/scat - 775 sys sys 1132506872 284491
 386/bin/scp - 775 sys sys 1132506873 152166
 386/bin/scp - 775 sys sys 1132506873 152166
 386/bin/scuzz - 775 sys sys 1130594781 111636
 386/bin/scuzz - 775 sys sys 1130594781 111636
@@ -7379,7 +7379,7 @@ sys/man/1/uptime - 664 sys sys 1074733782 380
 sys/man/1/vac - 664 sys sys 1021579977 3227
 sys/man/1/vac - 664 sys sys 1021579977 3227
 sys/man/1/vi - 664 sys sys 1101668051 2904
 sys/man/1/vi - 664 sys sys 1101668051 2904
 sys/man/1/vnc - 664 sys sys 1045501432 4186
 sys/man/1/vnc - 664 sys sys 1045501432 4186
-sys/man/1/vt - 664 sys sys 1133804098 2472
+sys/man/1/vt - 664 sys sys 1133880370 2256
 sys/man/1/wc - 664 sys sys 1113743327 908
 sys/man/1/wc - 664 sys sys 1113743327 908
 sys/man/1/who - 664 sys sys 944959674 332
 sys/man/1/who - 664 sys sys 944959674 332
 sys/man/1/winwatch - 664 sys sys 1113252108 723
 sys/man/1/winwatch - 664 sys sys 1113252108 723
@@ -7472,7 +7472,7 @@ sys/man/2/lock - 664 sys sys 1048643958 4692
 sys/man/2/mach - 664 sys sys 1080179298 7995
 sys/man/2/mach - 664 sys sys 1080179298 7995
 sys/man/2/malloc - 664 sys sys 1102093069 4763
 sys/man/2/malloc - 664 sys sys 1102093069 4763
 sys/man/2/matrix - 664 sys sys 950892861 6090
 sys/man/2/matrix - 664 sys sys 950892861 6090
-sys/man/2/memdraw - 664 sys sys 1113742428 10111
+sys/man/2/memdraw - 664 sys sys 1133883757 10112
 sys/man/2/memlayer - 664 sys sys 1040484074 6963
 sys/man/2/memlayer - 664 sys sys 1040484074 6963
 sys/man/2/memory - 664 sys sys 944959694 2139
 sys/man/2/memory - 664 sys sys 944959694 2139
 sys/man/2/mktemp - 664 sys sys 950892862 669
 sys/man/2/mktemp - 664 sys sys 950892862 669
@@ -7538,17 +7538,17 @@ sys/man/3/INDEX - 664 sys sys 1104736375 363
 sys/man/3/INDEX.html - 664 sys sys 1104736377 3590
 sys/man/3/INDEX.html - 664 sys sys 1104736377 3590
 sys/man/3/apm - 664 sys sys 984709634 1625
 sys/man/3/apm - 664 sys sys 984709634 1625
 sys/man/3/arch - 664 sys sys 958419692 1425
 sys/man/3/arch - 664 sys sys 958419692 1425
-sys/man/3/audio - 664 sys sys 1015024777 2932
+sys/man/3/audio - 664 sys sys 1133880494 2933
 sys/man/3/cap - 664 sys sys 1032632323 2137
 sys/man/3/cap - 664 sys sys 1032632323 2137
-sys/man/3/cons - 664 sys sys 1127766305 8965
+sys/man/3/cons - 664 sys sys 1133880397 8972
 sys/man/3/draw - 664 sys sys 1040457030 13813
 sys/man/3/draw - 664 sys sys 1040457030 13813
 sys/man/3/dup - 664 sys sys 1015024778 1099
 sys/man/3/dup - 664 sys sys 1015024778 1099
 sys/man/3/env - 664 sys sys 1015024778 1409
 sys/man/3/env - 664 sys sys 1015024778 1409
 sys/man/3/ether - 664 sys sys 984709635 2563
 sys/man/3/ether - 664 sys sys 984709635 2563
 sys/man/3/floppy - 664 sys sys 954378905 881
 sys/man/3/floppy - 664 sys sys 954378905 881
-sys/man/3/fs - 664 sys sys 1055701106 2706
+sys/man/3/fs - 664 sys sys 1133880474 2702
 sys/man/3/i82365 - 664 sys sys 954378906 884
 sys/man/3/i82365 - 664 sys sys 954378906 884
-sys/man/3/ip - 664 sys sys 1103554774 21677
+sys/man/3/ip - 664 sys sys 1133880453 21677
 sys/man/3/kbmap - 664 sys sys 1131110122 1732
 sys/man/3/kbmap - 664 sys sys 1131110122 1732
 sys/man/3/kprof - 664 sys sys 1018029972 1377
 sys/man/3/kprof - 664 sys sys 1018029972 1377
 sys/man/3/loopback - 664 sys sys 964662153 1995
 sys/man/3/loopback - 664 sys sys 964662153 1995
@@ -7557,7 +7557,7 @@ sys/man/3/mnt - 664 sys sys 944959698 1994
 sys/man/3/mouse - 664 sys sys 1020313480 4276
 sys/man/3/mouse - 664 sys sys 1020313480 4276
 sys/man/3/pipe - 664 sys sys 1032640674 1145
 sys/man/3/pipe - 664 sys sys 1032640674 1145
 sys/man/3/pnp - 664 sys sys 1088560895 4547
 sys/man/3/pnp - 664 sys sys 1088560895 4547
-sys/man/3/proc - 664 sys sys 1093452918 12027
+sys/man/3/proc - 664 sys sys 1133880424 12029
 sys/man/3/root - 664 sys sys 1046958450 632
 sys/man/3/root - 664 sys sys 1046958450 632
 sys/man/3/rtc - 664 sys sys 954378857 667
 sys/man/3/rtc - 664 sys sys 954378857 667
 sys/man/3/sd - 664 sys sys 1018386776 4805
 sys/man/3/sd - 664 sys sys 1018386776 4805
@@ -12768,7 +12768,7 @@ sys/src/cmd/sam/error.c - 664 sys sys 1108939612 2222
 sys/src/cmd/sam/errors.h - 664 sys sys 944961628 695
 sys/src/cmd/sam/errors.h - 664 sys sys 944961628 695
 sys/src/cmd/sam/file.c - 664 sys sys 1045505553 11030
 sys/src/cmd/sam/file.c - 664 sys sys 1045505553 11030
 sys/src/cmd/sam/io.c - 664 sys sys 1111181614 4688
 sys/src/cmd/sam/io.c - 664 sys sys 1111181614 4688
-sys/src/cmd/sam/list.c - 664 sys sys 1132448975 1431
+sys/src/cmd/sam/list.c - 664 sys sys 1133885097 1437
 sys/src/cmd/sam/mesg.c - 664 sys sys 1132448975 14291
 sys/src/cmd/sam/mesg.c - 664 sys sys 1132448975 14291
 sys/src/cmd/sam/mesg.h - 664 sys sys 1111181613 3785
 sys/src/cmd/sam/mesg.h - 664 sys sys 1111181613 3785
 sys/src/cmd/sam/mkfile - 664 sys sys 1111181613 429
 sys/src/cmd/sam/mkfile - 664 sys sys 1111181613 429
@@ -12778,8 +12778,8 @@ sys/src/cmd/sam/parse.h - 664 sys sys 1130423794 1934
 sys/src/cmd/sam/plan9.c - 664 sys sys 1112535044 2303
 sys/src/cmd/sam/plan9.c - 664 sys sys 1112535044 2303
 sys/src/cmd/sam/rasp.c - 664 sys sys 1132448976 5618
 sys/src/cmd/sam/rasp.c - 664 sys sys 1132448976 5618
 sys/src/cmd/sam/regexp.c - 664 sys sys 944961629 15390
 sys/src/cmd/sam/regexp.c - 664 sys sys 944961629 15390
-sys/src/cmd/sam/sam.c - 664 sys sys 1132448976 12016
-sys/src/cmd/sam/sam.h - 664 sys sys 1132448977 9345
+sys/src/cmd/sam/sam.c - 664 sys sys 1133885145 12016
+sys/src/cmd/sam/sam.h - 664 sys sys 1133885097 9366
 sys/src/cmd/sam/shell.c - 664 sys sys 1121977163 3143
 sys/src/cmd/sam/shell.c - 664 sys sys 1121977163 3143
 sys/src/cmd/sam/string.c - 664 sys sys 944961629 2766
 sys/src/cmd/sam/string.c - 664 sys sys 944961629 2766
 sys/src/cmd/sam/sys.c - 664 sys sys 1014926939 745
 sys/src/cmd/sam/sys.c - 664 sys sys 1014926939 745

+ 11 - 11
dist/replica/plan9.db

@@ -385,7 +385,7 @@
 386/bin/rio - 775 sys sys 1133287403 310310
 386/bin/rio - 775 sys sys 1133287403 310310
 386/bin/rm - 775 sys sys 1130594779 61365
 386/bin/rm - 775 sys sys 1130594779 61365
 386/bin/rx - 775 sys sys 1130594779 82087
 386/bin/rx - 775 sys sys 1130594779 82087
-386/bin/sam - 775 sys sys 1133287404 159353
+386/bin/sam - 775 sys sys 1133892147 159358
 386/bin/scat - 775 sys sys 1132506872 284491
 386/bin/scat - 775 sys sys 1132506872 284491
 386/bin/scp - 775 sys sys 1132506873 152166
 386/bin/scp - 775 sys sys 1132506873 152166
 386/bin/scuzz - 775 sys sys 1130594781 111636
 386/bin/scuzz - 775 sys sys 1130594781 111636
@@ -7379,7 +7379,7 @@ sys/man/1/uptime - 664 sys sys 1074733782 380
 sys/man/1/vac - 664 sys sys 1021579977 3227
 sys/man/1/vac - 664 sys sys 1021579977 3227
 sys/man/1/vi - 664 sys sys 1101668051 2904
 sys/man/1/vi - 664 sys sys 1101668051 2904
 sys/man/1/vnc - 664 sys sys 1045501432 4186
 sys/man/1/vnc - 664 sys sys 1045501432 4186
-sys/man/1/vt - 664 sys sys 1133804098 2472
+sys/man/1/vt - 664 sys sys 1133880370 2256
 sys/man/1/wc - 664 sys sys 1113743327 908
 sys/man/1/wc - 664 sys sys 1113743327 908
 sys/man/1/who - 664 sys sys 944959674 332
 sys/man/1/who - 664 sys sys 944959674 332
 sys/man/1/winwatch - 664 sys sys 1113252108 723
 sys/man/1/winwatch - 664 sys sys 1113252108 723
@@ -7472,7 +7472,7 @@ sys/man/2/lock - 664 sys sys 1048643958 4692
 sys/man/2/mach - 664 sys sys 1080179298 7995
 sys/man/2/mach - 664 sys sys 1080179298 7995
 sys/man/2/malloc - 664 sys sys 1102093069 4763
 sys/man/2/malloc - 664 sys sys 1102093069 4763
 sys/man/2/matrix - 664 sys sys 950892861 6090
 sys/man/2/matrix - 664 sys sys 950892861 6090
-sys/man/2/memdraw - 664 sys sys 1113742428 10111
+sys/man/2/memdraw - 664 sys sys 1133883757 10112
 sys/man/2/memlayer - 664 sys sys 1040484074 6963
 sys/man/2/memlayer - 664 sys sys 1040484074 6963
 sys/man/2/memory - 664 sys sys 944959694 2139
 sys/man/2/memory - 664 sys sys 944959694 2139
 sys/man/2/mktemp - 664 sys sys 950892862 669
 sys/man/2/mktemp - 664 sys sys 950892862 669
@@ -7538,17 +7538,17 @@ sys/man/3/INDEX - 664 sys sys 1104736375 363
 sys/man/3/INDEX.html - 664 sys sys 1104736377 3590
 sys/man/3/INDEX.html - 664 sys sys 1104736377 3590
 sys/man/3/apm - 664 sys sys 984709634 1625
 sys/man/3/apm - 664 sys sys 984709634 1625
 sys/man/3/arch - 664 sys sys 958419692 1425
 sys/man/3/arch - 664 sys sys 958419692 1425
-sys/man/3/audio - 664 sys sys 1015024777 2932
+sys/man/3/audio - 664 sys sys 1133880494 2933
 sys/man/3/cap - 664 sys sys 1032632323 2137
 sys/man/3/cap - 664 sys sys 1032632323 2137
-sys/man/3/cons - 664 sys sys 1127766305 8965
+sys/man/3/cons - 664 sys sys 1133880397 8972
 sys/man/3/draw - 664 sys sys 1040457030 13813
 sys/man/3/draw - 664 sys sys 1040457030 13813
 sys/man/3/dup - 664 sys sys 1015024778 1099
 sys/man/3/dup - 664 sys sys 1015024778 1099
 sys/man/3/env - 664 sys sys 1015024778 1409
 sys/man/3/env - 664 sys sys 1015024778 1409
 sys/man/3/ether - 664 sys sys 984709635 2563
 sys/man/3/ether - 664 sys sys 984709635 2563
 sys/man/3/floppy - 664 sys sys 954378905 881
 sys/man/3/floppy - 664 sys sys 954378905 881
-sys/man/3/fs - 664 sys sys 1055701106 2706
+sys/man/3/fs - 664 sys sys 1133880474 2702
 sys/man/3/i82365 - 664 sys sys 954378906 884
 sys/man/3/i82365 - 664 sys sys 954378906 884
-sys/man/3/ip - 664 sys sys 1103554774 21677
+sys/man/3/ip - 664 sys sys 1133880453 21677
 sys/man/3/kbmap - 664 sys sys 1131110122 1732
 sys/man/3/kbmap - 664 sys sys 1131110122 1732
 sys/man/3/kprof - 664 sys sys 1018029972 1377
 sys/man/3/kprof - 664 sys sys 1018029972 1377
 sys/man/3/loopback - 664 sys sys 964662153 1995
 sys/man/3/loopback - 664 sys sys 964662153 1995
@@ -7557,7 +7557,7 @@ sys/man/3/mnt - 664 sys sys 944959698 1994
 sys/man/3/mouse - 664 sys sys 1020313480 4276
 sys/man/3/mouse - 664 sys sys 1020313480 4276
 sys/man/3/pipe - 664 sys sys 1032640674 1145
 sys/man/3/pipe - 664 sys sys 1032640674 1145
 sys/man/3/pnp - 664 sys sys 1088560895 4547
 sys/man/3/pnp - 664 sys sys 1088560895 4547
-sys/man/3/proc - 664 sys sys 1093452918 12027
+sys/man/3/proc - 664 sys sys 1133880424 12029
 sys/man/3/root - 664 sys sys 1046958450 632
 sys/man/3/root - 664 sys sys 1046958450 632
 sys/man/3/rtc - 664 sys sys 954378857 667
 sys/man/3/rtc - 664 sys sys 954378857 667
 sys/man/3/sd - 664 sys sys 1018386776 4805
 sys/man/3/sd - 664 sys sys 1018386776 4805
@@ -12768,7 +12768,7 @@ sys/src/cmd/sam/error.c - 664 sys sys 1108939612 2222
 sys/src/cmd/sam/errors.h - 664 sys sys 944961628 695
 sys/src/cmd/sam/errors.h - 664 sys sys 944961628 695
 sys/src/cmd/sam/file.c - 664 sys sys 1045505553 11030
 sys/src/cmd/sam/file.c - 664 sys sys 1045505553 11030
 sys/src/cmd/sam/io.c - 664 sys sys 1111181614 4688
 sys/src/cmd/sam/io.c - 664 sys sys 1111181614 4688
-sys/src/cmd/sam/list.c - 664 sys sys 1132448975 1431
+sys/src/cmd/sam/list.c - 664 sys sys 1133885097 1437
 sys/src/cmd/sam/mesg.c - 664 sys sys 1132448975 14291
 sys/src/cmd/sam/mesg.c - 664 sys sys 1132448975 14291
 sys/src/cmd/sam/mesg.h - 664 sys sys 1111181613 3785
 sys/src/cmd/sam/mesg.h - 664 sys sys 1111181613 3785
 sys/src/cmd/sam/mkfile - 664 sys sys 1111181613 429
 sys/src/cmd/sam/mkfile - 664 sys sys 1111181613 429
@@ -12778,8 +12778,8 @@ sys/src/cmd/sam/parse.h - 664 sys sys 1130423794 1934
 sys/src/cmd/sam/plan9.c - 664 sys sys 1112535044 2303
 sys/src/cmd/sam/plan9.c - 664 sys sys 1112535044 2303
 sys/src/cmd/sam/rasp.c - 664 sys sys 1132448976 5618
 sys/src/cmd/sam/rasp.c - 664 sys sys 1132448976 5618
 sys/src/cmd/sam/regexp.c - 664 sys sys 944961629 15390
 sys/src/cmd/sam/regexp.c - 664 sys sys 944961629 15390
-sys/src/cmd/sam/sam.c - 664 sys sys 1132448976 12016
-sys/src/cmd/sam/sam.h - 664 sys sys 1132448977 9345
+sys/src/cmd/sam/sam.c - 664 sys sys 1133885145 12016
+sys/src/cmd/sam/sam.h - 664 sys sys 1133885097 9366
 sys/src/cmd/sam/shell.c - 664 sys sys 1121977163 3143
 sys/src/cmd/sam/shell.c - 664 sys sys 1121977163 3143
 sys/src/cmd/sam/string.c - 664 sys sys 944961629 2766
 sys/src/cmd/sam/string.c - 664 sys sys 944961629 2766
 sys/src/cmd/sam/sys.c - 664 sys sys 1014926939 745
 sys/src/cmd/sam/sys.c - 664 sys sys 1014926939 745

+ 11 - 0
dist/replica/plan9.log

@@ -23364,3 +23364,14 @@
 1133821894 2 c 386/bin/vt - 775 sys sys 1133820585 176212
 1133821894 2 c 386/bin/vt - 775 sys sys 1133820585 176212
 1133821894 3 c sys/src/cmd/ssh/ssh.c - 664 sys sys 1133821217 9671
 1133821894 3 c sys/src/cmd/ssh/ssh.c - 664 sys sys 1133821217 9671
 1133829096 0 c 386/bin/ssh - 775 sys sys 1133827764 211090
 1133829096 0 c 386/bin/ssh - 775 sys sys 1133827764 211090
+1133881311 0 c sys/man/1/vt - 664 sys sys 1133880370 2256
+1133881311 1 c sys/man/3/audio - 664 sys sys 1133880494 2933
+1133881311 2 c sys/man/3/cons - 664 sys sys 1133880397 8972
+1133881311 3 c sys/man/3/fs - 664 sys sys 1133880474 2702
+1133881311 4 c sys/man/3/ip - 664 sys sys 1133880453 21677
+1133881311 5 c sys/man/3/proc - 664 sys sys 1133880424 12029
+1133884910 0 c sys/man/2/memdraw - 664 sys sys 1133883757 10112
+1133886712 0 c sys/src/cmd/sam/list.c - 664 sys sys 1133885097 1437
+1133886712 1 c sys/src/cmd/sam/sam.c - 664 sys sys 1133885145 12016
+1133886712 2 c sys/src/cmd/sam/sam.h - 664 sys sys 1133885097 9366
+1133893914 0 c 386/bin/sam - 775 sys sys 1133892147 159358

+ 1 - 12
sys/man/1/vt

@@ -4,7 +4,7 @@ vt \- emulate a VT-100 or VT-220 terminal
 .SH SYNOPSIS
 .SH SYNOPSIS
 .B vt
 .B vt
 [
 [
-.B -2aswx
+.B -2asx
 ]
 ]
 [
 [
 .B -f
 .B -f
@@ -29,17 +29,6 @@ The
 option changes the color scheme to black text on a white background.
 option changes the color scheme to black text on a white background.
 .PP
 .PP
 The
 The
-.B -w
-option causes
-.I vt
-to provide a 
-.B /dev/wctl
-file that can be read to learn about window size changes.
-In particular,
-.IR ssh (1)
-will read this file and inform the remote system about size changes.
-.PP
-The
 .B -f
 .B -f
 option sets the font.
 option sets the font.
 .PP
 .PP

+ 1 - 1
sys/man/2/memdraw

@@ -173,7 +173,7 @@ RPCs to the
 .B /dev/draw
 .B /dev/draw
 hierarchy.
 hierarchy.
 The
 The
-.Bmemdraw
+.B memdraw
 library is the basis for the kernel 
 library is the basis for the kernel 
 .IR draw (3)
 .IR draw (3)
 driver and also used by a number of programs that must manipulate
 driver and also used by a number of programs that must manipulate

+ 1 - 1
sys/man/3/audio

@@ -75,7 +75,7 @@ For example, if all of the values are shared, the form degenerates to
 .RI ` source
 .RI ` source
 .IR value '.
 .IR value '.
 Valid sources depend on the particular audio device,
 Valid sources depend on the particular audio device,
-though all devices have a
+though all devices have an
 .B audio
 .B audio
 stereo source, which controls the output volume from the D/A converter
 stereo source, which controls the output volume from the D/A converter
 connected to
 connected to

+ 3 - 1
sys/man/3/cons

@@ -84,7 +84,9 @@ file and the file is still open,
 is in
 is in
 .IR "raw mode" :
 .IR "raw mode" :
 characters are not echoed as they are typed,
 characters are not echoed as they are typed,
-backspace and
+backspace,
+.L ^U
+and
 .L ^D
 .L ^D
 are not treated specially,
 are not treated specially,
 and characters are available to
 and characters are available to

+ 2 - 2
sys/man/3/fs

@@ -45,7 +45,7 @@ Writes to
 are handled by sequentially writing to the
 are handled by sequentially writing to the
 .I files
 .I files
 from right to left (the reverse of
 from right to left (the reverse of
-of the order in the control message).
+the order in the control message).
 If any write fails, the write is aborted.
 If any write fails, the write is aborted.
 Reads from
 Reads from
 .BI new
 .BI new
@@ -78,7 +78,7 @@ corresponds to the block interleaving of
 .IR files ;
 .IR files ;
 an 8192-byte block size is assumed.
 an 8192-byte block size is assumed.
 .TP
 .TP
-.BI cat " name files" \fR...
+.BI cat " new files" \fR...
 The device
 The device
 .I new
 .I new
 corresponds to the catenation of
 corresponds to the catenation of

+ 4 - 4
sys/man/3/ip

@@ -165,8 +165,8 @@ Reassemble IP fragments before forwarding to this interface
 .TP
 .TP
 .BI iprouting\  n
 .BI iprouting\  n
 Allow
 Allow
-.RI ( n is missing
-or non-zero) or disallow
+.RI ( n
+is missing or non-zero) or disallow
 .RI ( n
 .RI ( n
 is 0) forwarding packets between this interface and
 is 0) forwarding packets between this interface and
 others.
 others.
@@ -341,7 +341,7 @@ and
 (see
 (see
 .IR ndb (8)).
 .IR ndb (8)).
 .B /net/ndb
 .B /net/ndb
-may contain up tp 1024 bytes.
+may contain up to 1024 bytes.
 .PP
 .PP
 The file
 The file
 .B /net/ipselftab
 .B /net/ipselftab
@@ -711,7 +711,7 @@ and
 .B header
 .B header
 Turn on header mode.  Every buffer read from
 Turn on header mode.  Every buffer read from
 .B data
 .B data
-starts with 4 unsued bytes, and the first 4 bytes
+starts with 4 unused bytes, and the first 4 bytes
 of every buffer written to
 of every buffer written to
 .B data
 .B data
 are ignored.
 are ignored.

+ 2 - 2
sys/man/3/proc

@@ -360,12 +360,12 @@ give up the processor voluntarily, they exhaust their CPU allocation, or they re
 .IR deadline .
 .IR deadline .
 The moment of release is dictated by the
 The moment of release is dictated by the
 .I period
 .I period
-and whther the process is
+and whether the process is
 .I sporadic
 .I sporadic
 or not.
 or not.
 Non-sporadic processes are called
 Non-sporadic processes are called
 .I periodic
 .I periodic
-and they are released precisely at intervals of their period (but perods can be skipped
+and they are released precisely at intervals of their period (but periods can be skipped
 if the process blocks on I/O).  Sporadic processes are released whenever they become
 if the process blocks on I/O).  Sporadic processes are released whenever they become
 runnable (after being blocked by
 runnable (after being blocked by
 .IR sleep ()
 .IR sleep ()

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

@@ -16,7 +16,7 @@ growlist(List *l, int esize)
 	else if(l->nused == l->nalloc){
 	else if(l->nused == l->nalloc){
 		p = erealloc(l->listptr, (l->nalloc+INCR)*esize);
 		p = erealloc(l->listptr, (l->nalloc+INCR)*esize);
 		l->listptr = p;
 		l->listptr = p;
-		memset(p+l->nalloc, 0, INCR*esize);
+		memset(p+l->nalloc*esize, 0, INCR*esize);
 		l->nalloc += INCR;
 		l->nalloc += INCR;
 	}
 	}
 }
 }

+ 1 - 2
sys/src/cmd/sam/sam.h

@@ -66,12 +66,11 @@ struct String
 
 
 struct List
 struct List
 {
 {
-	int	type;
+	int	type;	/* 'p' for pointer, 'P' for Posn */
 	int	nalloc;
 	int	nalloc;
 	int	nused;
 	int	nused;
 	union{
 	union{
 		void*	listp;
 		void*	listp;
-		Block*	blkp;
 		void**	voidp;
 		void**	voidp;
 		Posn*	posnp;
 		Posn*	posnp;
 		String**stringp;
 		String**stringp;