Browse Source

Plan 9 from Bell Labs 2007-09-05

David du Colombier 13 years ago
parent
commit
43fdef9acb

+ 4 - 4
dist/replica/_plan9.db

@@ -7532,7 +7532,7 @@ sys/man/2/encode - 664 sys sys 1071289168 1572
 sys/man/2/encrypt - 664 sys sys 951229670 1885
 sys/man/2/errstr - 664 sys sys 1080218022 1705
 sys/man/2/event - 664 sys sys 1015091520 7512
-sys/man/2/exec - 664 sys sys 1139838662 4191
+sys/man/2/exec - 664 sys sys 1188955837 4230
 sys/man/2/exits - 664 sys sys 944959695 1652
 sys/man/2/exp - 664 sys sys 944959694 935
 sys/man/2/fauth - 664 sys sys 1017251164 1222
@@ -8240,8 +8240,8 @@ sys/src/9/port/sdaoe.c - 664 sys sys 1187034227 9934
 sys/src/9/port/segment.c - 664 sys sys 1170456581 14052
 sys/src/9/port/semaphore.p - 664 sys sys 1143129797 2424
 sys/src/9/port/swap.c - 664 sys sys 1138028310 7019
-sys/src/9/port/sysfile.c - 664 sys sys 1141940070 22192
-sys/src/9/port/sysproc.c - 664 sys sys 1143289632 21534
+sys/src/9/port/sysfile.c - 664 sys sys 1188922869 22120
+sys/src/9/port/sysproc.c - 664 sys sys 1188922870 21419
 sys/src/9/port/systab.h - 664 sys sys 1161222889 3204
 sys/src/9/port/taslock.c - 664 sys sys 1177343190 4418
 sys/src/9/port/thwack.c - 664 sys sys 1057323394 7253
@@ -9773,7 +9773,7 @@ sys/src/cmd/aux/mswordstrings.c - 664 sys sys 952201344 5767
 sys/src/cmd/aux/na - 20000000775 sys sys 1039727550 0
 sys/src/cmd/aux/na/mkfile - 664 sys sys 955036627 121
 sys/src/cmd/aux/na/na.h - 775 sys sys 955036627 267
-sys/src/cmd/aux/na/na.y - 775 sys sys 1015008889 25158
+sys/src/cmd/aux/na/na.y - 775 sys sys 1188957547 25129
 sys/src/cmd/aux/nfsmount.c - 664 sys sys 1045589268 6202
 sys/src/cmd/aux/olefs.c - 664 sys sys 1071245775 9853
 sys/src/cmd/aux/pcmcia.c - 664 sys sys 1099761153 9213

+ 4 - 4
dist/replica/plan9.db

@@ -7532,7 +7532,7 @@ sys/man/2/encode - 664 sys sys 1071289168 1572
 sys/man/2/encrypt - 664 sys sys 951229670 1885
 sys/man/2/errstr - 664 sys sys 1080218022 1705
 sys/man/2/event - 664 sys sys 1015091520 7512
-sys/man/2/exec - 664 sys sys 1139838662 4191
+sys/man/2/exec - 664 sys sys 1188955837 4230
 sys/man/2/exits - 664 sys sys 944959695 1652
 sys/man/2/exp - 664 sys sys 944959694 935
 sys/man/2/fauth - 664 sys sys 1017251164 1222
@@ -8240,8 +8240,8 @@ sys/src/9/port/sdaoe.c - 664 sys sys 1187034227 9934
 sys/src/9/port/segment.c - 664 sys sys 1170456581 14052
 sys/src/9/port/semaphore.p - 664 sys sys 1143129797 2424
 sys/src/9/port/swap.c - 664 sys sys 1138028310 7019
-sys/src/9/port/sysfile.c - 664 sys sys 1141940070 22192
-sys/src/9/port/sysproc.c - 664 sys sys 1143289632 21534
+sys/src/9/port/sysfile.c - 664 sys sys 1188922869 22120
+sys/src/9/port/sysproc.c - 664 sys sys 1188922870 21419
 sys/src/9/port/systab.h - 664 sys sys 1161222889 3204
 sys/src/9/port/taslock.c - 664 sys sys 1177343190 4418
 sys/src/9/port/thwack.c - 664 sys sys 1057323394 7253
@@ -9773,7 +9773,7 @@ sys/src/cmd/aux/mswordstrings.c - 664 sys sys 952201344 5767
 sys/src/cmd/aux/na - 20000000775 sys sys 1039727550 0
 sys/src/cmd/aux/na/mkfile - 664 sys sys 955036627 121
 sys/src/cmd/aux/na/na.h - 775 sys sys 955036627 267
-sys/src/cmd/aux/na/na.y - 775 sys sys 1015008889 25158
+sys/src/cmd/aux/na/na.y - 775 sys sys 1188957547 25129
 sys/src/cmd/aux/nfsmount.c - 664 sys sys 1045589268 6202
 sys/src/cmd/aux/olefs.c - 664 sys sys 1071245775 9853
 sys/src/cmd/aux/pcmcia.c - 664 sys sys 1099761153 9213

+ 4 - 0
dist/replica/plan9.log

@@ -52374,3 +52374,7 @@
 1188703805 2 c 386/bin/auth/secstored - 775 sys sys 1188702773 197480
 1188703805 3 c 386/bin/auth/secuser - 775 sys sys 1188702776 149443
 1188842404 0 c sys/man/2/thread - 664 sys sys 1188841215 11916
+1188923403 0 c sys/src/9/port/sysfile.c - 664 sys sys 1188922869 22120
+1188923403 1 c sys/src/9/port/sysproc.c - 664 sys sys 1188922870 21419
+1188955804 0 c sys/man/2/exec - 664 sys sys 1188955837 4230
+1188957605 0 c sys/src/cmd/aux/na/na.y - 775 sys sys 1188957547 25129

+ 4 - 4
sys/man/2/exec

@@ -8,10 +8,10 @@ exec, execl, _privates, _nprivates, _tos \- execute a file
 .PP
 .nf
 .B
-int exec(char *name, char* argv[])
+void* exec(char *name, char* argv[])
 .PP
 .B
-int execl(char *name, ...)
+void* execl(char *name, ...)
 .PP
 .B
 void	**_privates;
@@ -168,7 +168,7 @@ of
 followed by a terminating null pointer; and
 the return register (e.g.
 .B R0
-on the 68020) contains the address of the clock.
+on the 68020) contains the address of the clock information.
 .SH SOURCE
 .B /sys/src/libc/9syscall
 .br
@@ -180,7 +180,7 @@ on the 68020) contains the address of the clock.
 .SH DIAGNOSTICS
 If these functions fail, they return and set
 .IR errstr .
-There can be no return from a successful
+There can be no return to the calling process from a successful
 .I exec
 or
 .IR execl ;

+ 0 - 6
sys/src/9/port/sysfile.c

@@ -1350,9 +1350,3 @@ sys_fwstat(ulong *)
 	error("old fwstat system call - recompile");
 	return -1;
 }
-long
-syspassfd(ulong *)
-{
-	error("passfd unimplemented");
-	return -1;
-}

+ 0 - 8
sys/src/9/port/sysproc.c

@@ -622,14 +622,6 @@ sysawait(ulong *arg)
 	return i;
 }
 
-long
-sysdeath(ulong*)
-{
-	pprint("deprecated system call\n");
-	pexit("Suicide", 0);
-	return 0;	/* not reached */
-}
-
 void
 werrstr(char *fmt, ...)
 {

+ 3 - 5
sys/src/cmd/aux/na/na.y

@@ -924,11 +924,9 @@ preprocess(char *in, FILE *out)
 		argv[ncppopts + 2] = "-N";
 		argv[ncppopts + 3] = in;
 		argv[ncppopts + 4] = 0;
-		if (exec("/bin/cpp", argv) < 0) {
-			fprintf(stderr, "failed to exec cpp (%R)\n");
-			exits("exec");
-		}
-		exits("");
+		exec("/bin/cpp", argv);
+		fprintf(stderr, "failed to exec cpp (%R)\n");
+		exits("exec");
 	}
 	w = wait();
 	free(w);