Browse Source

Plan 9 from Bell Labs 2007-12-07

David du Colombier 12 years ago
parent
commit
c9afb4363a

+ 4 - 5
dist/replica/_plan9.db

@@ -18,7 +18,7 @@
 386/bin/8l - 775 sys sys 1148500567 115711
 386/bin/9660srv - 775 sys sys 1168402261 104975
 386/bin/aan - 775 sys sys 1196742429 129831
-386/bin/acid - 775 sys sys 1188530145 405176
+386/bin/acid - 775 sys sys 1196914668 405249
 386/bin/acme - 775 sys sys 1196742437 431741
 386/bin/ape - 20000000775 sys sys 1016944144 0
 386/bin/ape/basename - 775 sys sys 1173754547 134719
@@ -572,7 +572,7 @@
 386/lib/libhttpd.a - 664 sys sys 1191273745 100822
 386/lib/libip.a - 664 sys sys 1187061208 34710
 386/lib/libl.a - 664 sys sys 1168402367 5372
-386/lib/libmach.a - 664 sys sys 1188530244 807480
+386/lib/libmach.a - 664 sys sys 1196972899 807480
 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 1188447454 79978
@@ -6215,7 +6215,7 @@ sys/lib/dist/cmd/touchfs.c - 664 sys sys 1018469727 1120
 sys/lib/dist/cmd/unbflz.c - 664 sys sys 1018469727 1688
 sys/lib/dist/logcompress.awk - 664 sys sys 1068558028 298
 sys/lib/dist/logtime.awk - 664 sys sys 1019526213 38
-sys/lib/dist/mkfile - 664 sys sys 1196547774 5490
+sys/lib/dist/mkfile - 664 sys sys 1196959057 5493
 sys/lib/dist/pc - 20000000775 sys sys 1147022870 0
 sys/lib/dist/pc/cd0.proto - 664 sys sys 1114358485 7
 sys/lib/dist/pc/empty - 20000000775 sys sys 1020895854 0
@@ -15399,7 +15399,7 @@ sys/src/libmach/8db.c - 664 sys sys 1136322405 50889
 sys/src/libmach/8obj.c - 664 sys sys 1148106912 2258
 sys/src/libmach/9.c - 664 sys sys 1178892114 3625
 sys/src/libmach/9c - 20000000775 sys sys 1178892193 0
-sys/src/libmach/9c/9.out.h - 664 sys sys 1178892193 4669
+sys/src/libmach/9c/9.out.h - 664 sys sys 1196959035 4709
 sys/src/libmach/9obj.c - 664 sys sys 1178892115 2747
 sys/src/libmach/access.c - 664 sys sys 1131289377 4588
 sys/src/libmach/elf.h - 664 sys sys 1188499825 2468
@@ -15854,4 +15854,3 @@ 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/acid - 775 sys sys 1196914668 405249

+ 50 - 0
dist/replica/binary

@@ -0,0 +1,50 @@
+#!/bin/rc
+
+if(~ $fscons '')
+	fscons=fscons
+if(~ $replica '')
+	replica=replica
+
+s=/n/dist/dist/replica
+serverroot=/n/dist
+serverlog=$s/plan9binary.log
+serverproto=$s/plan9binary.proto
+fn servermount {
+	9fs sources
+	bind /n/sources/plan9 /n/dist
+}
+fn serverupdate { status='' }
+
+if ( ! test -e /srv/boot && ! test -e /srv/kfs ) {
+	echo 'error: neither /srv/boot nor /srv/kfs present; make sure you are running on the file server'
+	exit '/srv/boot or /srv/kfs not present'
+}
+
+if (test -e /srv/$fscons) {
+	if ( ! test -w /srv/$fscons ) { 
+		echo 'error: no write access to /srv/'^$fscons^', make sure you are the host owner' 
+		exit 'no write access to /srv/fscons'
+	}
+
+	fn clientmount {
+		if(! test -e /srv/$replica){
+			echo 'srv -AWP '^$replica >>/srv/$fscons
+			sleep 5
+		}
+		mount -c /srv/$replica /n/boot
+	}
+	c=/n/boot/dist/replica
+	clientroot=/n/boot
+} 
+if not {
+	fn clientmount { 9fs kfs }
+	c=/n/kfs/dist/replica
+	clientroot=/n/kfs
+}
+
+clientdb=$c/client/plan9binary.db
+clientexclude=(dist/replica/client)
+clientlog=$c/client/plan9binary.log
+clientproto=$c/plan9binary.proto
+
+applyopt=(-u -T$c/client/plan9binary.time)

+ 3 - 3
dist/replica/plan9.db

@@ -572,7 +572,7 @@
 386/lib/libhttpd.a - 664 sys sys 1191273745 100822
 386/lib/libip.a - 664 sys sys 1187061208 34710
 386/lib/libl.a - 664 sys sys 1168402367 5372
-386/lib/libmach.a - 664 sys sys 1188530244 807480
+386/lib/libmach.a - 664 sys sys 1196972899 807480
 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 1188447454 79978
@@ -6215,7 +6215,7 @@ sys/lib/dist/cmd/touchfs.c - 664 sys sys 1018469727 1120
 sys/lib/dist/cmd/unbflz.c - 664 sys sys 1018469727 1688
 sys/lib/dist/logcompress.awk - 664 sys sys 1068558028 298
 sys/lib/dist/logtime.awk - 664 sys sys 1019526213 38
-sys/lib/dist/mkfile - 664 sys sys 1196547774 5490
+sys/lib/dist/mkfile - 664 sys sys 1196959057 5493
 sys/lib/dist/pc - 20000000775 sys sys 1147022870 0
 sys/lib/dist/pc/cd0.proto - 664 sys sys 1114358485 7
 sys/lib/dist/pc/empty - 20000000775 sys sys 1020895854 0
@@ -15399,7 +15399,7 @@ sys/src/libmach/8db.c - 664 sys sys 1136322405 50889
 sys/src/libmach/8obj.c - 664 sys sys 1148106912 2258
 sys/src/libmach/9.c - 664 sys sys 1178892114 3625
 sys/src/libmach/9c - 20000000775 sys sys 1178892193 0
-sys/src/libmach/9c/9.out.h - 664 sys sys 1178892193 4669
+sys/src/libmach/9c/9.out.h - 664 sys sys 1196959035 4709
 sys/src/libmach/9obj.c - 664 sys sys 1178892115 2747
 sys/src/libmach/access.c - 664 sys sys 1131289377 4588
 sys/src/libmach/elf.h - 664 sys sys 1188499825 2468

+ 5 - 0
dist/replica/plan9.log

@@ -18125,3 +18125,8 @@
 1196895604 2 c sys/src/cmd/acid/expr.c - 664 sys sys 1196895295 15497
 1196895604 3 c sys/src/cmd/acid/main.c - 664 sys sys 1196895291 8547
 1196915404 0 c 386/bin/acid - 775 sys sys 1196914668 405249
+1196958607 0 c sys/lib/dist/mkfile - 664 sys sys 1196959057 5493
+1196958607 1 c sys/src/libmach/9c/9.out.h - 664 sys sys 1196959035 4709
+1196960404 0 c sys/lib/dist/mkfile - 664 sys sys 1196959057 5493
+1196960404 1 c sys/src/libmach/9c/9.out.h - 664 sys sys 1196959035 4709
+1196973005 0 c 386/lib/libmach.a - 664 sys sys 1196972899 807480

File diff suppressed because it is too large
+ 7924 - 0
dist/replica/plan9binary.db


+ 79 - 0
dist/replica/plan9binary.log

@@ -0,0 +1,79 @@
+1196964902 0 a sys/man/8/diskparts - 664 sys sys 1196638946 696
+1196964902 1 a sys/man/8/disksim - 664 sys sys 1196638946 1700
+1196964902 2 a sys/man/8/drawterm - 664 sys sys 1196638946 1921
+1196964902 3 a sys/man/8/fossilcons - 664 sys sys 1196638946 18542
+1196964902 4 a sys/man/8/fs - 664 sys sys 1196638946 15086
+1196964902 5 a sys/man/8/fsconfig - 664 sys sys 1196638946 8890
+1196964902 6 a sys/man/8/fshalt - 664 sys sys 1196638947 862
+1196964902 7 a sys/man/8/getflags - 664 sys sys 1196638947 1713
+1196964902 8 a sys/man/8/gpsfs - 664 sys sys 1196638947 4918
+1196964902 9 a sys/man/8/httpd - 664 sys sys 1196638947 6866
+1196964902 10 a sys/man/8/init - 664 sys sys 1196638947 1430
+1196964902 11 a sys/man/8/ipconfig - 664 sys sys 1196638947 8187
+1196964902 12 a sys/man/8/ipserv - 664 sys sys 1196638947 4411
+1196964902 13 a sys/man/8/kfscmd - 664 sys sys 1196638947 4514
+1196964902 14 a sys/man/8/listen - 664 sys sys 1196638947 4032
+1196964902 15 a sys/man/8/lp - 664 sys sys 1196638947 2491
+1196964902 16 a sys/man/8/mk9660 - 664 sys sys 1196638947 3946
+1196964902 17 a sys/man/8/mkfs - 664 sys sys 1196638947 3427
+1196964902 18 a sys/man/8/mkpaqfs - 664 sys sys 1196638947 890
+1196964902 19 a sys/man/8/mksacfs - 664 sys sys 1196638947 710
+1196964902 20 a sys/man/8/mouse - 664 sys sys 1196638947 2476
+1196964902 21 a sys/man/8/na - 664 sys sys 1196638947 859
+1196964902 22 a sys/man/8/ndb - 664 sys sys 1196638947 15205
+1196964902 23 a sys/man/8/newuser - 664 sys sys 1196638947 2418
+1196964902 24 a sys/man/8/nfsserver - 664 sys sys 1196638947 3576
+1196964902 25 a sys/man/8/partfs - 664 sys sys 1196638947 869
+1196964902 26 a sys/man/8/pcmcia - 664 sys sys 1196638947 408
+1196964902 27 a sys/man/8/pem - 664 sys sys 1196638947 1189
+1196964902 28 a sys/man/8/ping - 664 sys sys 1196638947 3650
+1196964902 29 a sys/man/8/plan9.ini - 664 sys sys 1196638947 23835
+1196964902 30 a sys/man/8/pop3 - 664 sys sys 1196638948 2720
+1196964902 31 a sys/man/8/ppp - 664 sys sys 1196638948 4430
+1196964902 32 a sys/man/8/prep - 664 sys sys 1196638948 14201
+1196964902 33 a sys/man/8/qer - 664 sys sys 1196638948 4909
+1196964902 34 a sys/man/8/reboot - 664 sys sys 1196638948 443
+1196964902 35 a sys/man/8/replica - 664 sys sys 1196638948 6383
+1196964902 36 a sys/man/8/rsa - 664 sys sys 1196638948 4628
+1196964902 37 a sys/man/8/scanmail - 664 sys sys 1196638948 10803
+1196964902 38 a sys/man/8/scuzz - 664 sys sys 1196638948 8701
+1196964902 39 a sys/man/8/secstore - 664 sys sys 1196638948 1954
+1196964902 40 a sys/man/8/securenet - 664 sys sys 1196638948 3160
+1196964902 41 a sys/man/8/send - 664 sys sys 1196638948 2168
+1196964902 42 a sys/man/8/smtp - 664 sys sys 1196638948 5332
+1196964902 43 a sys/man/8/snoopy - 664 sys sys 1196638948 4442
+1196964902 44 a sys/man/8/stats - 664 sys sys 1196638948 4336
+1196964902 45 a sys/man/8/statusbar - 664 sys sys 1196638948 1254
+1196964902 46 a sys/man/8/stub - 664 sys sys 1196638948 943
+1196964902 47 a sys/man/8/swap - 664 sys sys 1196638948 886
+1196964902 48 a sys/man/8/timesync - 664 sys sys 1196638948 1717
+1196964902 49 a sys/man/8/tlssrv - 664 sys sys 1196638948 2589
+1196964902 50 a sys/man/8/trampoline - 664 sys sys 1196638948 1199
+1196964902 51 a sys/man/8/udpecho - 664 sys sys 1196638948 303
+1196964902 52 a sys/man/8/update - 664 sys sys 1196638948 2336
+1196964902 53 a sys/man/8/venti - 664 sys sys 1196638948 12190
+1196964902 54 a sys/man/8/venti-backup - 664 sys sys 1196638948 2102
+1196964902 55 a sys/man/8/venti-fmt - 664 sys sys 1196638948 8626
+1196964902 56 a sys/man/8/vga - 664 sys sys 1196638948 4129
+1196964902 57 a sys/man/fonts - 664 sys sys 1196638948 218
+1196964902 58 a sys/man/index.html - 664 sys sys 1196638948 1859
+1196964902 59 a sys/man/mkfile - 664 sys sys 1196638948 2264
+1196964902 60 a sys/man/preface.html - 664 sys sys 1196638948 3442
+1196964902 61 a sys/man/preface3.html - 664 sys sys 1196638948 2561
+1196964902 62 a sys/man/preface4.html - 664 sys sys 1196638948 2640
+1196964902 63 a sys/man/searchindex - 664 sys sys 1196638949 482603
+1196964902 64 a sys/man/vol1.pdf - 664 sys sys 1196638951 2348997
+1196964902 65 a sys/man/vol1.ps - 664 sys sys 1196638957 8170134
+1196964902 66 a sys/man/vol1.ps.gz - 664 sys sys 1196638958 2174519
+1196964902 67 a sys/src - 20000000775 sys sys 1196635552 0
+1196964902 68 a sys/src/mkfile - 664 glenda sys 1196366544 1026
+1196964902 69 a sys/src/mkfile.proto - 664 glenda sys 1105121349 265
+1196964902 70 a tmp - 20000000555 sys sys 1020896384 0
+1196964902 71 a dist - 20000000775 sys sys 1196638552 0
+1196964902 72 a dist/replica - 20000000775 sys sys 1196964912 0
+1196964902 73 a dist/replica/kfs - 664 sys sys 1196638557 237
+1196964902 74 a dist/replica/cd - 664 sys sys 1196638557 922
+1196964902 75 a dist/replica/network - 775 sys sys 1196638557 1075
+1196964902 76 a dist/replica/plan9.proto - 664 sys sys 1196638558 2871
+1196966314 0 a dist/replica/binary - 775 sys sys 1196963993 1122
+1196966314 1 a dist/replica/plan9binary.proto - 664 sys sys 1196966293 2930

+ 177 - 0
dist/replica/plan9binary.proto

@@ -0,0 +1,177 @@
+# files like NOTICE
+*	- sys sys
+
+# adm owns adm
+adm	- adm adm
+	+	- adm adm
+
+# upas owns mail
+mail	- upas upas
+	box	d777 upas upas
+		glenda	- glenda glenda
+			L.mbox	l666 glenda glenda
+			mbox	a662 glenda glenda
+	faxoutqueue	d777 upas upas
+	faxqueue	d777 upas upas
+		*	- upas upas
+	grey	d775 upas upas
+		whitelist a666 upas upas
+		tmp	d777 upas upas
+	fs	- upas upas
+	lib	- upas upas
+		+	- upas upas
+	queue	d777 upas upas
+	tmp	d777 upas upas
+
+# glenda owns her home directory
+usr	- sys sys
+	glenda	- glenda glenda
+		+	- glenda glenda
+
+# architectures owned by sys
+386	- sys sys
+	+	- sys sys
+68000	- sys sys
+	+	- sys sys
+68020	- sys sys
+	+	- sys sys
+alpha	- sys sys
+	+	- sys sys
+amd64	- sys sys
+	+	- sys sys
+arm	- sys sys
+	+	- sys sys
+mips	- sys sys
+	+	- sys sys
+power	- sys sys
+	+	- sys sys
+power64	- sys sys
+	+	- sys sys
+sparc	- sys sys
+	+	- sys sys
+sparc64	- sys sys
+	+	- sys sys
+
+# everything else is owned by sys
+acme	- sys sys
+	+	- sys sys
+cfg	- sys sys
+	+	- sys sys
+cron	d777 sys sys
+	upas	- upas sys
+		+	- upas sys
+fd	- sys sys
+	+	- sys sys
+env	- sys sys
+lib	- sys sys
+	+	- sys sys
+lp	- sys sys
+	log	d777 sys sys
+	prob	d777 sys sys
+	queue	d777 sys sys
+	tmp	d777 sys sys
+mnt	- sys sys
+	+	- sys sys
+n	- sys sys
+	+	- sys sys
+rc	- sys sys
+	+	- sys sys
+sys	- sys sys
+	doc	- sys sys
+		+	- sys sys
+	games	- sys sys
+		lib	- sys sys
+			4scores	a666 sys sys
+			5scores	a666 sys sys
+			fortunes	- sys sys
+			mahjongg	- sys sys
+				+	- sys sys
+			sokoban	- sys sys
+				+	- sys sys
+			sudoku	- sys sys
+				+	- sys sys
+	include	- sys sys
+		+	- sys sys
+	lib	- sys sys
+		*	- sys sys
+		acid	- sys sys
+			+	- sys sys
+		antiword	- sys sys
+			+	- sys sys
+		astar	- sys sys
+			+	- sys sys
+		dist	- sys sys
+			+	- sys sys
+		fax	- sys sys
+			+	- sys sys
+		ghostscript	- sys sys
+			+	- sys sys
+		kbmap	- sys sys
+			+	- sys sys
+		lex	- sys sys
+			+	- sys sys
+		lp	- sys sys
+			*	- sys sys
+			bin	- sys sys
+				+	- sys sys
+			daemon	- sys sys
+				+	- sys sys
+			kill	- sys sys
+				+	- sys sys
+			log	d777 sys sys
+			perm	- sys sys
+				+	- sys sys
+			process	- sys sys
+				+	- sys sys
+			sched	- sys sys
+				+	- sys sys
+			spooler	- sys sys
+				+	- sys sys
+			stat	- sys sys
+				+	- sys sys
+			tmp	d777 sys sys
+		man	- sys sys
+			+	- sys sys
+		plumb	- sys sys
+			+	- sys sys
+		postscript	- sys sys
+			+	- sys sys
+		scribble	- sys sys
+			+	- sys sys
+		ssh	- sys sys
+			+	- sys sys
+		sysconfig	- sys sys
+			+	- sys sys
+		texmf	- sys sys
+			+	- sys sys
+		tls	- sys sys
+			+	- sys sys
+		tmac	- sys sys
+			+	- sys sys
+		troff	- sys sys
+			+	- sys sys
+		wiki	- sys sys
+			+	- sys sys
+	log	- sys sys
+		*	a666 sys sys 
+		timesync.d	d775 sys sys
+		httpd	- sys sys
+			*	a666 sys sys
+	man	- sys sys
+		+	- sys sys
+	src	- sys sys
+		mkfile
+		mkfile.proto
+tmp	- sys sys
+	+	- sys sys
+
+# distribution metadata
+dist	- sys sys
+	replica	- sys sys
+		kfs	- sys sys
+		cd	- sys sys
+		network	- sys sys
+		binary	- sys sys
+		plan9.proto	- sys sys
+		plan9binary.proto	- sys sys
+

+ 1 - 1
sys/lib/dist/mkfile

@@ -45,7 +45,7 @@ compresslog:V:
 	{
 	awk -f logcompress.awk $d/dist/replica/plan9.log |
 		awk -f logtime.awk -v 't='^`{date -n} >/tmp/plan9.log
-	rm $d/dist/replica/plan9.new.log
+	rm -f $d/dist/replica/plan9.new.log
 	cp /tmp/plan9.log $d/dist/replica/plan9.new.log &&
 		mv $d/dist/replica/plan9.new.log $d/dist/replica/plan9.log
 	} <scan.lock

+ 3 - 0
sys/src/libmach/9c/9.out.h

@@ -358,6 +358,9 @@ enum	as
 	AREMDUV,
 	AREMDUVCC,
 
+	/* more 64-bit operations */
+	AHRFID,
+
 	ALAST
 };