Browse Source

Plan 9 from Bell Labs 2003-08-01

David du Colombier 21 years ago
parent
commit
14db6d56e5

+ 10 - 7
dist/replica/plan9.db

@@ -194,7 +194,7 @@
 386/bin/dial/at - 775 sys sys 1058790014 59165
 386/bin/dial/drain - 775 sys sys 1058790014 4122
 386/bin/dial/expect - 775 sys sys 1058790015 58571
-386/bin/dial/pass - 775 sys sys 1058790016 39133
+386/bin/dial/pass - 775 sys sys 1059696921 39305
 386/bin/dict - 775 sys sys 1056364240 168338
 386/bin/diff - 775 sys sys 1056364240 82287
 386/bin/disk - 20000000775 sys sys 984788664 0
@@ -864,17 +864,18 @@ lib/dicewords - 664 sys sys 1037463439 89128
 lib/face - 20000000775 sys sys 945049943 0
 lib/face/.machinelist - 644 sys sys 944945676 97
 lib/face/48x48x1 - 20000000755 sys sys 944941680 0
-lib/face/48x48x1/.dict - 664 sys sys 1020313579 8516
+lib/face/48x48x1/.dict - 664 sys sys 1059657726 8596
 lib/face/48x48x1/a - 20000000755 sys sys 945300156 0
 lib/face/48x48x1/a/acsnet.1 - 644 sys sys 1020313578 1056
 lib/face/48x48x1/a/adb.1 - 644 sys sys 1020313578 1200
 lib/face/48x48x1/a/adm.1 - 644 sys sys 1020313578 1152
 lib/face/48x48x1/a/andrew.1 - 644 sys sys 1020313578 1152
 lib/face/48x48x1/a/ap.1 - 644 sys sys 1020313578 1056
-lib/face/48x48x1/b - 20000000755 sys sys 944941666 0
+lib/face/48x48x1/b - 20000000775 sys sys 1059681078 0
 lib/face/48x48x1/b/bart.1 - 644 sys sys 1020313578 1056
 lib/face/48x48x1/b/bin.2 - 644 sys sys 1020313578 1152
 lib/face/48x48x1/b/bobf.1 - 644 sys sys 1020313578 1056
+lib/face/48x48x1/b/boyd.1 - 664 sys sys 1059681078 1057
 lib/face/48x48x1/b/bs.1 - 644 sys sys 1020313578 1056
 lib/face/48x48x1/b/bwk.1 - 644 sys sys 1020313578 1056
 lib/face/48x48x1/c - 20000000755 sys sys 944941666 0
@@ -1174,7 +1175,7 @@ lib/face/48x48x1/x - 20000000755 sys sys 944941680 0
 lib/face/48x48x1/y - 20000000755 sys sys 944941680 0
 lib/face/48x48x1/z - 20000000755 sys sys 944941680 0
 lib/face/48x48x2 - 20000000755 sys sys 944941683 0
-lib/face/48x48x2/.dict - 664 sys sys 947361690 497
+lib/face/48x48x2/.dict - 664 sys sys 1059677865 534
 lib/face/48x48x2/a - 20000000755 sys sys 944941681 0
 lib/face/48x48x2/a/adb.1 - 644 sys sys 944941681 1776
 lib/face/48x48x2/a/andrew.1 - 644 sys sys 944941681 1776
@@ -1225,7 +1226,7 @@ lib/face/48x48x2/x - 20000000755 sys sys 944941683 0
 lib/face/48x48x2/y - 20000000755 sys sys 944941683 0
 lib/face/48x48x2/z - 20000000755 sys sys 944941683 0
 lib/face/48x48x4 - 20000000775 sys sys 944941894 0
-lib/face/48x48x4/.dict - 664 sys sys 1058223097 2005
+lib/face/48x48x4/.dict - 664 sys sys 1059677902 2042
 lib/face/48x48x4/Z - 20000000775 sys sys 944945342 0
 lib/face/48x48x4/a - 20000000775 sys sys 944945701 0
 lib/face/48x48x4/a/adb.1 - 664 sys sys 944941890 962
@@ -1327,11 +1328,12 @@ lib/face/48x48x4/x - 20000000775 sys sys 944941894 0
 lib/face/48x48x4/y - 20000000775 sys sys 944941894 0
 lib/face/48x48x4/z - 20000000775 sys sys 944941894 0
 lib/face/48x48x8 - 20000000775 sys sys 944941834 0
-lib/face/48x48x8/.dict - 664 sys sys 1057029309 1738
+lib/face/48x48x8/.dict - 664 sys sys 1059678094 1849
 lib/face/48x48x8/Z - 20000000775 sys sys 944941832 0
 lib/face/48x48x8/a - 20000000775 sys sys 944941832 0
 lib/face/48x48x8/a/axel.1 - 664 sys sys 1056983599 473
 lib/face/48x48x8/b - 20000000775 sys sys 945300273 0
+lib/face/48x48x8/b/boyd.1 - 664 sys sys 1059679697 1897
 lib/face/48x48x8/b/brucee.1 - 664 sys sys 1056982181 1512
 lib/face/48x48x8/c - 20000000775 sys sys 945300281 0
 lib/face/48x48x8/c/chrislocke.1 - 644 sys sys 1057005038 1613
@@ -1352,6 +1354,7 @@ lib/face/48x48x8/k - 20000000775 sys sys 944941833 0
 lib/face/48x48x8/k/karen.1 - 644 sys sys 1057005135 1608
 lib/face/48x48x8/l - 20000000775 sys sys 944941833 0
 lib/face/48x48x8/l/lucent.1 - 664 sys sys 944941833 801
+lib/face/48x48x8/l/lucio.1 - 664 sys sys 1059678230 1069
 lib/face/48x48x8/m - 20000000775 sys sys 944941833 0
 lib/face/48x48x8/m/michael.1 - 664 sys sys 1057005144 1806
 lib/face/48x48x8/n - 20000000775 sys sys 944941833 0
@@ -7020,7 +7023,7 @@ sys/src/cmd/dial/at.c - 664 sys sys 1058789951 2011
 sys/src/cmd/dial/drain.c - 664 sys sys 1058789952 241
 sys/src/cmd/dial/expect.c - 664 sys sys 1058789952 1595
 sys/src/cmd/dial/mkfile - 664 sys sys 1058789952 191
-sys/src/cmd/dial/pass.c - 664 sys sys 1058789955 891
+sys/src/cmd/dial/pass.c - 664 sys sys 1059696920 1297
 sys/src/cmd/dict - 20000000775 sys sys 944960882 0
 sys/src/cmd/dict/ahd.c - 664 sys sys 944960882 2082
 sys/src/cmd/dict/canonind.awk - 664 sys sys 944960880 665

+ 11 - 0
dist/replica/plan9.log

@@ -13004,3 +13004,14 @@
 1059586268 0 c sys/src/9/ppc/ucu - 664 sys sys 1059584672 713
 1059597079 0 c sys/src/9/ppc/ucu - 664 sys sys 1059595927 706
 1059597079 1 d sys/src/9/ppc/rcmain - 664 sys sys 1059490838 0
+1059658306 0 c lib/face/48x48x1/.dict - 664 sys sys 1059657726 8596
+1059658306 1 c lib/face/48x48x8/.dict - 664 sys sys 1059657791 1818
+1059678125 0 c lib/face/48x48x2/.dict - 664 sys sys 1059677865 534
+1059678125 1 c lib/face/48x48x4/.dict - 664 sys sys 1059677902 2042
+1059678125 2 c lib/face/48x48x8/.dict - 664 sys sys 1059678094 1849
+1059679925 0 a lib/face/48x48x8/b/boyd.1 - 664 sys sys 1059679697 1897
+1059679925 1 a lib/face/48x48x8/l/lucio.1 - 664 sys sys 1059678230 1069
+1059681726 0 m lib/face/48x48x1/b - 20000000775 sys sys 1059681078 0
+1059681726 1 a lib/face/48x48x1/b/boyd.1 - 664 sys sys 1059681078 1057
+1059697933 0 c 386/bin/dial/pass - 775 sys sys 1059696921 39305
+1059697933 1 c sys/src/cmd/dial/pass.c - 664 sys sys 1059696920 1297

+ 3 - 0
lib/face/48x48x1/.dict

@@ -139,10 +139,12 @@ indiana.edu/unknown u/unknown.134
 inel.gov/unknown u/unknown.34
 informix.com/unknown u/unknown.174
 inria.fr/unknown u/unknown.54
+insultant.net/boyd b/boyd.1
 intel.com/unknown u/unknown.102
 iris.brown.edu/unknown u/unknown.138
 irisa.fr/unknown u/unknown.84
 is/unknown u/unknown.87
+it.usyd.edu.au/boyd b/boyd.1
 it/unknown u/unknown.178
 japan/unknown u/unknown.58
 jp/unknown u/unknown.168
@@ -232,6 +234,7 @@ rice.edu/unknown u/unknown.125
 saber.com/unknown u/unknown.139
 samsung.com/unknown u/unknown.203
 sco.com/unknown u/unknown.42
+sdgm.net/boyd b/boyd.1
 se/unknown u/unknown.180
 sei.cmu.edu/unknown u/unknown.76
 sequent.com/unknown u/unknown.57

+ 49 - 0
lib/face/48x48x1/b/boyd.1

@@ -0,0 +1,49 @@
+0x0000,0x0000,0x0000,
+0x0000,0x0290,0x0000,
+0x0000,0x1ea4,0x0000,
+0x0000,0xfd38,0x0000,
+0x0001,0xff53,0x0000,
+0x0002,0xfba4,0x8000,
+0x0005,0x9f5b,0x8000,
+0x0007,0xffbe,0xe000,
+0x000f,0xddbf,0xf000,
+0x001a,0x2b76,0x0000,
+0x002c,0x05c0,0x1000,
+0x0038,0x0000,0x0800,
+0x0030,0x0000,0x0c00,
+0x0070,0x0000,0x0400,
+0x0070,0x0000,0x0c00,
+0x0060,0x0000,0x0400,
+0x0078,0x0000,0x0c00,
+0x0070,0x0000,0x0400,
+0x0071,0x0000,0x0e00,
+0x0074,0x0005,0x8400,
+0x0070,0x7f2f,0x7600,
+0x0075,0xdf9f,0xcc00,
+0x0073,0x6f9e,0x7400,
+0x0032,0xff9f,0xee00,
+0x0023,0xff8f,0xd600,
+0x00c2,0x778f,0xc400,
+0x0080,0xac0b,0x0c00,
+0x0021,0x1304,0x5400,
+0x0060,0x2404,0x8400,
+0x0004,0x5a02,0x1000,
+0x0008,0x8407,0xa000,
+0x0001,0x2dbd,0x4800,
+0x000a,0x52ff,0x7000,
+0x0008,0x89f8,0x8000,
+0x0002,0x53fd,0x3000,
+0x0000,0x8472,0xa000,
+0x0001,0x1bff,0x2000,
+0x0002,0x8c49,0xa000,
+0x0000,0x50f0,0x5000,
+0x0001,0x81da,0xa000,
+0x0001,0x3071,0x4000,
+0x0000,0x8802,0xc000,
+0x0005,0x7282,0x8000,
+0x000c,0xbd37,0x8000,
+0x000e,0xbeef,0xc000,
+0x001e,0x6fff,0x4000,
+0x001e,0xbfff,0xe000,
+0x003f,0xa2ff,0x6000,
+

+ 1 - 0
lib/face/48x48x2/.dict

@@ -21,4 +21,5 @@ astro/sean s/sean.1
 astro/seanq s/seanq.1
 astro/td t/td.1
 astro/unknown p/pjw.1
+closedmind.org/presotto p/presotto.1
 research.att.com/tom t/tom.1

+ 1 - 0
lib/face/48x48x4/.dict

@@ -61,6 +61,7 @@ astro/va v/va.1
 astro/wmc w/wmc.1
 bell-labs.com/ehg e/ehg.1
 bell-labs.com/trickey h/howard.1
+closedmind.org/presotto p/presotto.1
 cpcs.ucalgary.ca/mirtchov a/andrey.1
 cs.utwente.nl/sape s/sape.1
 delbarton.org/rsc r/rsc.1

+ 4 - 0
lib/face/48x48x8/.dict

@@ -33,6 +33,7 @@ il/unknown u/unknown.51
 in/unknown u/unknown.119
 is/unknown u/unknown.87
 it/unknown u/unknown.178
+it.usyd.edu.au/boyd b/boyd.1
 jp/unknown u/unknown.168
 kr/unknown u/unknown.190
 lucent.com/unknown l/lucent.1
@@ -43,8 +44,11 @@ nl/unknown u/unknown.156
 no/unknown u/unknown.193
 nz/unknown u/unknown.148
 plan9.escet.urjc.es/nemo n/nemo.1
+proxima.alt.za/lucio l/lucio.1
 pt/unknown u/unknown.166
 ru/unknown u/unknown.215
+sdgm.net/boyd b/boyd.1
+sdgm.net/cross d/dancross.1
 se/unknown u/unknown.180
 sg/unknown u/unknown.147
 sk/unknown s/sk.1

BIN
lib/face/48x48x8/b/boyd.1


BIN
lib/face/48x48x8/l/lucio.1


+ 39 - 13
sys/src/cmd/dial/pass.c

@@ -2,6 +2,7 @@
 #include <libc.h>
 
 int alarmed;
+int done;
 
 void
 usage(void)
@@ -20,13 +21,14 @@ ding(void*, char *s)
 		noted(NDFLT);
 }
 
+
 void
 main(int argc, char **argv)
 {
 	int fd, cfd;
+	int i;
 	char buf[1];
 	int quiet = 0;
-	int done = 0;
 
 	ARGBEGIN {
 	case 'q':
@@ -43,22 +45,46 @@ main(int argc, char **argv)
 	if(cfd >= 0)
 		fprint(cfd, "rawon");
 
-	while(!done){
-		if(read(fd, buf, 1) <= 0)
-			break;
-		if(buf[0] == '\n' || buf[0] == '\r')
-			done = 1;
-		if(write(1, buf, 1) < 0)
-			break;
-		if(!quiet){
+	switch(rfork(RFPROC|RFFDG|RFMEM)){
+	case -1:
+		sysfatal("forking: %r");
+	default:
+		// read until we're done writing or
+		// we get an end of line
+		while(!done){
 			alarmed = 0;
-			alarm(500);
-			if(read(0, buf, 1) <= 0 && !alarmed)
-				break;
+			alarm(250);
+			i = read(0, buf, 1);
 			alarm(0);
-			if(buf[0] != '\r' && write(fd, buf, 1) < 0)
+
+			if(i == 0)
+				break;
+			if(i < 0){
+				if(alarmed)
+					continue;
+				else
+					break;
+			}
+			if(!quiet && write(fd, buf, 1) < 1)
+				break;
+			if(buf[0] == '\n' || buf[0] == '\r')
+				break;
+		}	
+		break;
+	case 0:
+		// pass one character at a time till end of line
+		for(;;){
+			if(read(fd, buf, 1) <= 0)
+				break;
+			if(write(1, buf, 1) < 0)
+				break;
+			if(buf[0] == '\n' || buf[0] == '\r')
 				break;
 		}
+
+		// tell reader to give up after next char
+		done = 1;
+		break;
 	}
 	exits(0);
 }