Browse Source

Plan 9 from Bell Labs 2005-02-27

David du Colombier 19 years ago
parent
commit
0b9f5aee0c
8 changed files with 166 additions and 12 deletions
  1. 10 4
      dist/replica/_plan9.db
  2. 10 7
      dist/replica/plan9.db
  3. 10 0
      dist/replica/plan9.log
  4. 52 0
      rc/bin/delkey
  5. 1 0
      sys/games/lib/fortunes
  6. 40 0
      sys/lib/kbmap/n97
  7. 42 0
      sys/man/1/delkey
  8. 1 1
      sys/man/1/man

+ 10 - 4
dist/replica/_plan9.db

@@ -3007,6 +3007,7 @@ rc/bin/broke - 775 sys sys 945617206 132
 rc/bin/bundle - 775 sys sys 945617206 173
 rc/bin/c: - 775 sys sys 1015089511 86
 rc/bin/cpurc - 775 sys sys 1048777186 1338
+rc/bin/delkey - 775 sys sys 1109429137 643
 rc/bin/dial - 20000000775 sys sys 1059180057 0
 rc/bin/dircp - 775 sys sys 1107836261 193
 rc/bin/doc2ps - 775 sys sys 1069793831 244
@@ -3348,7 +3349,7 @@ sys/doc/venti/venti.pdf - 755 sys sys 1020384352 139090
 sys/doc/venti/venti.ps - 664 sys sys 1019852320 2012620
 sys/games - 20000000775 sys sys 952648872 0
 sys/games/lib - 20000000775 sys sys 952648879 0
-sys/games/lib/fortunes - 664 sys sys 1108743634 253142
+sys/games/lib/fortunes - 664 sys sys 1109471220 253178
 sys/games/lib/mahjongg - 20000000775 sys sys 1095792278 0
 sys/games/lib/mahjongg/backgrounds - 20000000775 sys sys 1095792293 0
 sys/games/lib/mahjongg/backgrounds/default.bit - 664 sys sys 1095792293 346803
@@ -3907,13 +3908,14 @@ sys/lib/grap.defines - 664 sys sys 944956052 375
 sys/lib/httpd.rewrite - 664 sys sys 954262980 825
 sys/lib/kbmap - 20000000775 sys sys 1079535430 0
 sys/lib/kbmap/ascii - 664 sys sys 1082221421 6248
-sys/lib/kbmap/azerty - 644 sys sys 1079473812 735
+sys/lib/kbmap/azerty - 664 sys sys 1079473812 735
 sys/lib/kbmap/bg - 664 sys sys 1106924292 561
 sys/lib/kbmap/de - 664 sys sys 1100894012 6265
-sys/lib/kbmap/ee - 644 sys sys 1080222237 429
+sys/lib/kbmap/ee - 664 sys sys 1080222237 429
 sys/lib/kbmap/es - 664 sys sys 1079535430 1360
 sys/lib/kbmap/fi - 664 sys sys 1079617317 369
 sys/lib/kbmap/jp - 664 sys sys 1106107712 317
+sys/lib/kbmap/n97 - 664 sys sys 1109430112 561
 sys/lib/kbmap/uk - 664 sys sys 1079473812 55
 sys/lib/kbmap/us - 664 sys sys 1082221421 6248
 sys/lib/lex - 20000000775 sys sys 945136651 0
@@ -4691,6 +4693,7 @@ sys/man/1/date - 664 sys sys 969499884 996
 sys/man/1/db - 664 sys sys 1015024738 17862
 sys/man/1/dc - 664 sys sys 944959674 4834
 sys/man/1/dd - 664 sys sys 1055693436 3346
+sys/man/1/delkey - 664 sys sys 1109429138 779
 sys/man/1/deroff - 664 sys sys 1017423524 1826
 sys/man/1/diff - 664 sys sys 1106938097 2960
 sys/man/1/doc2txt - 664 sys sys 1105020018 2077
@@ -4731,7 +4734,7 @@ sys/man/1/look - 664 sys sys 944959673 1348
 sys/man/1/lp - 664 sys sys 1015024739 3304
 sys/man/1/ls - 664 sys sys 1087406208 2898
 sys/man/1/mail - 664 sys sys 1050078464 2158
-sys/man/1/man - 664 sys sys 1059484724 1740
+sys/man/1/man - 664 sys sys 1109428285 1745
 sys/man/1/marshal - 664 sys sys 1079970326 3150
 sys/man/1/mc - 664 sys sys 1045501392 508
 sys/man/1/mk - 664 sys sys 964455061 13154
@@ -12459,3 +12462,6 @@ 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/9loaddebug - 775 sys sys 1109477747 309905
+386/9loadlitedebug - 775 sys sys 1109477747 198992
+386/bin/8c - 775 sys sys 1109477746 358000

+ 10 - 7
dist/replica/plan9.db

@@ -1,8 +1,8 @@
 386 - 20000000775 sys sys 1010957353 0
 386/9load - 775 sys sys 1100269948 208708
-386/9loaddebug - 775 sys sys 1108268393 306473
+386/9loaddebug - 775 sys sys 1109477747 309905
 386/9loadlite - 775 sys sys 1100269949 132260
-386/9loadlitedebug - 775 sys sys 1108268393 195556
+386/9loadlitedebug - 775 sys sys 1109477747 198992
 386/9pc - 775 sys sys 1109132016 1833270
 386/9pc.gz - 664 sys sys 1077049336 635727
 386/9pccpu - 775 sys sys 1109132020 1487821
@@ -15,7 +15,7 @@
 386/_9pcdisk.gz - 664 sys sys 1039764191 695837
 386/bin - 20000000775 sys sys 1018897690 0
 386/bin/8a - 775 sys sys 1108285260 115096
-386/bin/8c - 775 sys sys 1109303823 358000
+386/bin/8c - 775 sys sys 1109477746 358000
 386/bin/8l - 775 sys sys 1107835553 115728
 386/bin/9660srv - 775 sys sys 1108354539 103973
 386/bin/aan - 775 sys sys 1108354539 130710
@@ -3007,6 +3007,7 @@ rc/bin/broke - 775 sys sys 945617206 132
 rc/bin/bundle - 775 sys sys 945617206 173
 rc/bin/c: - 775 sys sys 1015089511 86
 rc/bin/cpurc - 775 sys sys 1048777186 1338
+rc/bin/delkey - 775 sys sys 1109429137 643
 rc/bin/dial - 20000000775 sys sys 1059180057 0
 rc/bin/dircp - 775 sys sys 1107836261 193
 rc/bin/doc2ps - 775 sys sys 1069793831 244
@@ -3348,7 +3349,7 @@ sys/doc/venti/venti.pdf - 755 sys sys 1020384352 139090
 sys/doc/venti/venti.ps - 664 sys sys 1019852320 2012620
 sys/games - 20000000775 sys sys 952648872 0
 sys/games/lib - 20000000775 sys sys 952648879 0
-sys/games/lib/fortunes - 664 sys sys 1108743634 253142
+sys/games/lib/fortunes - 664 sys sys 1109471220 253178
 sys/games/lib/mahjongg - 20000000775 sys sys 1095792278 0
 sys/games/lib/mahjongg/backgrounds - 20000000775 sys sys 1095792293 0
 sys/games/lib/mahjongg/backgrounds/default.bit - 664 sys sys 1095792293 346803
@@ -3907,13 +3908,14 @@ sys/lib/grap.defines - 664 sys sys 944956052 375
 sys/lib/httpd.rewrite - 664 sys sys 954262980 825
 sys/lib/kbmap - 20000000775 sys sys 1079535430 0
 sys/lib/kbmap/ascii - 664 sys sys 1082221421 6248
-sys/lib/kbmap/azerty - 644 sys sys 1079473812 735
+sys/lib/kbmap/azerty - 664 sys sys 1079473812 735
 sys/lib/kbmap/bg - 664 sys sys 1106924292 561
 sys/lib/kbmap/de - 664 sys sys 1100894012 6265
-sys/lib/kbmap/ee - 644 sys sys 1080222237 429
+sys/lib/kbmap/ee - 664 sys sys 1080222237 429
 sys/lib/kbmap/es - 664 sys sys 1079535430 1360
 sys/lib/kbmap/fi - 664 sys sys 1079617317 369
 sys/lib/kbmap/jp - 664 sys sys 1106107712 317
+sys/lib/kbmap/n97 - 664 sys sys 1109430112 561
 sys/lib/kbmap/uk - 664 sys sys 1079473812 55
 sys/lib/kbmap/us - 664 sys sys 1082221421 6248
 sys/lib/lex - 20000000775 sys sys 945136651 0
@@ -4691,6 +4693,7 @@ sys/man/1/date - 664 sys sys 969499884 996
 sys/man/1/db - 664 sys sys 1015024738 17862
 sys/man/1/dc - 664 sys sys 944959674 4834
 sys/man/1/dd - 664 sys sys 1055693436 3346
+sys/man/1/delkey - 664 sys sys 1109429138 779
 sys/man/1/deroff - 664 sys sys 1017423524 1826
 sys/man/1/diff - 664 sys sys 1106938097 2960
 sys/man/1/doc2txt - 664 sys sys 1105020018 2077
@@ -4731,7 +4734,7 @@ sys/man/1/look - 664 sys sys 944959673 1348
 sys/man/1/lp - 664 sys sys 1015024739 3304
 sys/man/1/ls - 664 sys sys 1087406208 2898
 sys/man/1/mail - 664 sys sys 1050078464 2158
-sys/man/1/man - 664 sys sys 1059484724 1740
+sys/man/1/man - 664 sys sys 1109428285 1745
 sys/man/1/marshal - 664 sys sys 1079970326 3150
 sys/man/1/mc - 664 sys sys 1045501392 508
 sys/man/1/mk - 664 sys sys 964455061 13154

+ 10 - 0
dist/replica/plan9.log

@@ -13814,3 +13814,13 @@
 1109365217 1 c sys/src/boot/pc/dat.h - 664 sys sys 1109364490 3565
 1109365217 2 c sys/src/boot/pc/fns.h - 664 sys sys 1109364490 4221
 1109365217 3 c sys/src/boot/pc/load.c - 664 sys sys 1109364491 8903
+1109430031 0 a rc/bin/delkey - 775 sys sys 1109429137 643
+1109430031 1 a sys/man/1/delkey - 664 sys sys 1109429138 779
+1109430031 2 c sys/man/1/man - 664 sys sys 1109428285 1745
+1109431831 0 m sys/lib/kbmap/azerty - 664 sys sys 1079473812 735
+1109431831 1 m sys/lib/kbmap/ee - 664 sys sys 1080222237 429
+1109431831 2 a sys/lib/kbmap/n97 - 664 sys sys 1109430112 561
+1109471440 0 c sys/games/lib/fortunes - 664 sys sys 1109471220 253178
+1109478642 0 c 386/9loaddebug - 775 sys sys 1109477747 309905
+1109478642 1 c 386/9loadlitedebug - 775 sys sys 1109477747 198992
+1109478642 2 c 386/bin/8c - 775 sys sys 1109477746 358000

+ 52 - 0
rc/bin/delkey

@@ -0,0 +1,52 @@
+#!/bin/rc
+
+rfork e
+
+ctl = /mnt/factotum/ctl
+if(test -r /mnt/term/mnt/factotum/ctl)
+	ctl = /mnt/term/mnt/factotum/ctl
+
+fn forceit {
+	switch($force){
+	case no
+		echo -n $* '? [y/n]' > /dev/cons
+		ok = `{read}
+		switch($ok){
+		case y* Y*
+			echo yes
+		case q* Q*
+			exit ''
+		case *
+			echo no
+		}
+	case *
+		echo yes
+	}
+}
+
+fn deleteit {
+	key = `{echo $* | sed 's/ ![0-9a-zA-Z_]+\??/ /g' | sed 's/ +$//'}
+	if(~ `{forceit del$key} yes)
+		if(! echo del$key > $ctl)
+			exit bad
+}
+
+force = no
+
+if(~ $1 '-f'){
+	force = yes
+	shift
+}
+
+ifs='
+'
+
+if(~ $#* 0){
+	for(i in `{cat $ctl})
+		deleteit $i
+	exit ''
+}
+
+for(i in `{grep $"* $ctl})
+	deleteit $i
+exit ''

+ 1 - 0
sys/games/lib/fortunes

@@ -4055,3 +4055,4 @@ MessageSocket::setHostname(): gethostbyname() failed: Success
 /* This variable is here only because of a historical reason.  */
 It's almost as though someone is creating billboards that read, ``If you can#t splel VaigrA, you cn mkae big $M$O$N$E$Y$ wtih b.ul.k adtervising on teh I*N*T*R*E*N*E*T.''  - Rob Kolstad
 And, as you read, please forgive the necessary typos - I'm going for rock-solid facts, rather than spelling.
+mp3riot -  Directory search utility

+ 40 - 0
sys/lib/kbmap/n97

@@ -0,0 +1,40 @@
+# keymap for NMB N-97 keyboard commonly used by NCD X-terminals
+# only works under VMWare.
+# normal characters are in US key-layout; ie, Shift+8 is *
+#
+#0: normal
+#1: shift
+#2: esc1
+#3: altgr
+#4: ctrl
+#
+# backslash
+0 0x75 0x5c
+# esc
+0 0x64 0x1b
+# ctrl
+0 0x38 0xf862
+1 0x38 0xf862
+2 0x38 0xf862
+3 0x38 0xf862
+4 0x38 0xf862
+# lalt
+0 0x71 0xf863
+1 0x71 0xf863
+2 0x71 0xf867
+3 0x71 0xf867
+4 0x71 0xf863
+# ralt
+0 0x72 0xf863
+1 0x72 0xf863
+2 0x72 0xf867
+3 0x72 0xf867
+4 0x72 0xf863
+# del
+0 0x79 0x7f
+1 0x79 0x7f
+2 0x79 0x7f
+3 0x79 0x7f
+4 0x79 0x7f
+# pipe
+1 0x75 0x7c

+ 42 - 0
sys/man/1/delkey

@@ -0,0 +1,42 @@
+.TH DELKEY 1
+.SH NAME
+delkey \- delete keys from factotum
+.SH SYNOPSIS
+.B delkey
+[
+.B -f
+]
+.I pattern
+.SH DESCRIPTION
+.I Delkey
+shows the user each key stored in
+.IR factotum (4)
+and matching the
+.IR pattern ,
+prompting for whether the key should be deleted.
+At each prompt, typing a response beginning with
+.B y
+deletes the key, typing a response beginning with
+.B q
+aborts the listing,
+and any other response skips over the key.
+.PP
+The
+.B -f
+option disables the prompting; all keys matching the pattern are deleted.
+.PP
+When run on a cpu server,
+.I delkey
+uses the terminal's factotum, if present, instead of the server's factotum.
+.SH FILES
+.TP
+.B /mnt/term/mnt/factotum
+First choice for
+.I factotum
+to use
+.TP
+.B /mnt/factotum
+Second choice
+.PP
+.SH SOURCE
+.B /rc/bin/delkey

+ 1 - 1
sys/man/1/man

@@ -1,6 +1,6 @@
 .TH MAN 1
 .SH NAME
-man, lookman \- print or find pages of this manual
+man, lookman, sig \- print or find pages of this manual
 .SH SYNOPSIS
 .B man
 [