Browse Source

Plan 9 from Bell Labs 2008-12-17

David du Colombier 11 years ago
parent
commit
0b9b8b80bd

+ 11 - 11
adm/timezone/local

@@ -11,14 +11,14 @@ EST -18000 EDT -14400
  860292000  877827600  891741600  909277200  923191200  941331600
  954640800  972781200  986090400 1004230800 1018144800 1035680400
 1049594400 1067130000 1081044000 1099184400 1112493600 1130634000
-1143943200 1162083600 1175392800 1193533200 1207447200 1224982800
-1238896800 1256432400 1270346400 1288486800 1301796000 1319936400
-1333245600 1351386000 1365300000 1382835600 1396749600 1414285200
-1428199200 1445734800 1459648800 1477789200 1491098400 1509238800
-1522548000 1540688400 1554602400 1572138000 1586052000 1603587600
-1617501600 1635642000 1648951200 1667091600 1680400800 1698541200
-1712455200 1729990800 1743904800 1761440400 1775354400 1792890000
-1806804000 1824944400 1838253600 1856394000 1869703200 1887843600
-1901757600 1919293200 1933207200 1950742800 1964656800 1982797200
-1996106400 2014246800 2027556000 2045696400 2059005600 2077146000
-2091060000 2108595600 2122509600 2140045200
+1143943200 1162083600 1173578400 1194141600 1205028000 1225591200
+1236477600 1257040800 1268532000 1289095200 1299981600 1320544800
+1331431200 1351994400 1362880800 1383444000 1394330400 1414893600
+1425780000 1446343200 1457834400 1478397600 1489284000 1509847200
+1520733600 1541296800 1552183200 1572746400 1583632800 1604196000
+1615687200 1636250400 1647136800 1667700000 1678586400 1699149600
+1710036000 1730599200 1741485600 1762048800 1772935200 1793498400
+1804989600 1825552800 1836439200 1857002400 1867888800 1888452000
+1899338400 1919901600 1930788000 1951351200 1962842400 1983405600
+1994292000 2014855200 2025741600 2046304800 2057191200 2077754400
+2088640800 2109204000 2120090400 2140653600

+ 9 - 10
dist/replica/_plan9.db

@@ -556,15 +556,15 @@
 386/lib - 20000000775 sys sys 1209184392 0
 386/lib/ape - 20000000775 sys sys 1197477092 0
 386/lib/ape/lib9.a - 664 sys sys 1205611022 8766
-386/lib/ape/libap.a - 664 sys sys 1227384559 823890
-386/lib/ape/libbsd.a - 664 sys sys 1220411684 185404
-386/lib/ape/libdraw.a - 664 sys sys 1227325296 631580
-386/lib/ape/libfmt.a - 664 sys sys 1219693464 156706
+386/lib/ape/libap.a - 664 sys sys 1229458148 824800
+386/lib/ape/libbsd.a - 664 sys sys 1229458148 185404
+386/lib/ape/libdraw.a - 664 sys sys 1229458149 631580
+386/lib/ape/libfmt.a - 664 sys sys 1229458149 156706
 386/lib/ape/libl.a - 664 sys sys 1212377636 9406
-386/lib/ape/libnet.a - 664 sys sys 1219693464 24090
+386/lib/ape/libnet.a - 664 sys sys 1229458149 24090
 386/lib/ape/libregexp.a - 664 sys sys 1212377638 47500
 386/lib/ape/libutf.a - 664 sys sys 1212377640 88500
-386/lib/ape/libv.a - 664 sys sys 1219693465 19334
+386/lib/ape/libv.a - 664 sys sys 1229458149 19334
 386/lib/lib9p.a - 664 sys sys 1228190946 91992
 386/lib/libString.a - 664 sys sys 1209184391 22466
 386/lib/libauth.a - 664 sys sys 1214418439 59742
@@ -824,7 +824,7 @@ adm/timezone/US_Pacific - 664 adm adm 1143927129 1518
 adm/timezone/US_Yukon - 664 adm adm 1143927130 1518
 adm/timezone/W-SU - 664 adm adm 1020313578 1164
 adm/timezone/WET - 664 adm adm 1020313578 1159
-adm/timezone/local - 664 adm adm 1020313578 1518
+adm/timezone/local - 664 adm adm 1229439141 1518
 adm/users - 664 adm adm 1020313578 123
 adm/whois - 10000000664 adm adm 797055645 0
 alpha - 20000000775 sys sys 1039727908 0
@@ -6097,7 +6097,7 @@ sys/include/ape/sys/wait.h - 664 sys sys 1210370471 697
 sys/include/ape/termios.h - 664 sys sys 944948760 2745
 sys/include/ape/time.h - 664 sys sys 1212357943 1212
 sys/include/ape/u.h - 664 sys sys 1146097783 430
-sys/include/ape/unistd.h - 664 sys sys 1219681426 4098
+sys/include/ape/unistd.h - 664 sys sys 1229453242 4161
 sys/include/ape/utf.h - 664 sys sys 1070327359 1595
 sys/include/ape/utime.h - 664 sys sys 944948760 259
 sys/include/ar.h - 664 sys sys 1014929061 244
@@ -8521,7 +8521,6 @@ sys/src/ape/cmd/pdksh/c_test.h - 664 sys sys 1014921976 1812
 sys/src/ape/cmd/pdksh/c_ulimit.c - 664 sys sys 1014921976 6775
 sys/src/ape/cmd/pdksh/conf-end.h - 664 sys sys 1014921976 1735
 sys/src/ape/cmd/pdksh/config.h - 664 sys sys 1014921976 10283
-sys/src/ape/cmd/pdksh/crap.c - 664 sys sys 1014921977 1397
 sys/src/ape/cmd/pdksh/eval.c - 664 sys sys 1014921976 31469
 sys/src/ape/cmd/pdksh/exec.c - 664 sys sys 1014921976 38927
 sys/src/ape/cmd/pdksh/expand.h - 664 sys sys 1014921976 2799
@@ -8882,7 +8881,7 @@ sys/src/ape/lib/ap/posix/mkfifo.c - 664 sys sys 1014921981 163
 sys/src/ape/lib/ap/posix/mkfile - 664 sys sys 1014921981 222
 sys/src/ape/lib/ap/posix/pathconf.c - 664 sys sys 1014921981 826
 sys/src/ape/lib/ap/posix/sigset.c - 664 sys sys 1014921981 892
-sys/src/ape/lib/ap/posix/sysconf.c - 664 sys sys 1014921981 630
+sys/src/ape/lib/ap/posix/sysconf.c - 664 sys sys 1229453242 695
 sys/src/ape/lib/ap/posix/tzset.c - 664 sys sys 1014921981 2794
 sys/src/ape/lib/ap/power - 20000000775 sys sys 1039727535 0
 sys/src/ape/lib/ap/power/getfcr.s - 664 sys sys 1014921991 352

+ 9 - 10
dist/replica/plan9.db

@@ -556,15 +556,15 @@
 386/lib - 20000000775 sys sys 1209184392 0
 386/lib/ape - 20000000775 sys sys 1197477092 0
 386/lib/ape/lib9.a - 664 sys sys 1205611022 8766
-386/lib/ape/libap.a - 664 sys sys 1227384559 823890
-386/lib/ape/libbsd.a - 664 sys sys 1220411684 185404
-386/lib/ape/libdraw.a - 664 sys sys 1227325296 631580
-386/lib/ape/libfmt.a - 664 sys sys 1219693464 156706
+386/lib/ape/libap.a - 664 sys sys 1229458148 824800
+386/lib/ape/libbsd.a - 664 sys sys 1229458148 185404
+386/lib/ape/libdraw.a - 664 sys sys 1229458149 631580
+386/lib/ape/libfmt.a - 664 sys sys 1229458149 156706
 386/lib/ape/libl.a - 664 sys sys 1212377636 9406
-386/lib/ape/libnet.a - 664 sys sys 1219693464 24090
+386/lib/ape/libnet.a - 664 sys sys 1229458149 24090
 386/lib/ape/libregexp.a - 664 sys sys 1212377638 47500
 386/lib/ape/libutf.a - 664 sys sys 1212377640 88500
-386/lib/ape/libv.a - 664 sys sys 1219693465 19334
+386/lib/ape/libv.a - 664 sys sys 1229458149 19334
 386/lib/lib9p.a - 664 sys sys 1228190946 91992
 386/lib/libString.a - 664 sys sys 1209184391 22466
 386/lib/libauth.a - 664 sys sys 1214418439 59742
@@ -824,7 +824,7 @@ adm/timezone/US_Pacific - 664 adm adm 1143927129 1518
 adm/timezone/US_Yukon - 664 adm adm 1143927130 1518
 adm/timezone/W-SU - 664 adm adm 1020313578 1164
 adm/timezone/WET - 664 adm adm 1020313578 1159
-adm/timezone/local - 664 adm adm 1020313578 1518
+adm/timezone/local - 664 adm adm 1229439141 1518
 adm/users - 664 adm adm 1020313578 123
 adm/whois - 10000000664 adm adm 797055645 0
 alpha - 20000000775 sys sys 1039727908 0
@@ -6097,7 +6097,7 @@ sys/include/ape/sys/wait.h - 664 sys sys 1210370471 697
 sys/include/ape/termios.h - 664 sys sys 944948760 2745
 sys/include/ape/time.h - 664 sys sys 1212357943 1212
 sys/include/ape/u.h - 664 sys sys 1146097783 430
-sys/include/ape/unistd.h - 664 sys sys 1219681426 4098
+sys/include/ape/unistd.h - 664 sys sys 1229453242 4161
 sys/include/ape/utf.h - 664 sys sys 1070327359 1595
 sys/include/ape/utime.h - 664 sys sys 944948760 259
 sys/include/ar.h - 664 sys sys 1014929061 244
@@ -8521,7 +8521,6 @@ sys/src/ape/cmd/pdksh/c_test.h - 664 sys sys 1014921976 1812
 sys/src/ape/cmd/pdksh/c_ulimit.c - 664 sys sys 1014921976 6775
 sys/src/ape/cmd/pdksh/conf-end.h - 664 sys sys 1014921976 1735
 sys/src/ape/cmd/pdksh/config.h - 664 sys sys 1014921976 10283
-sys/src/ape/cmd/pdksh/crap.c - 664 sys sys 1014921977 1397
 sys/src/ape/cmd/pdksh/eval.c - 664 sys sys 1014921976 31469
 sys/src/ape/cmd/pdksh/exec.c - 664 sys sys 1014921976 38927
 sys/src/ape/cmd/pdksh/expand.h - 664 sys sys 1014921976 2799
@@ -8882,7 +8881,7 @@ sys/src/ape/lib/ap/posix/mkfifo.c - 664 sys sys 1014921981 163
 sys/src/ape/lib/ap/posix/mkfile - 664 sys sys 1014921981 222
 sys/src/ape/lib/ap/posix/pathconf.c - 664 sys sys 1014921981 826
 sys/src/ape/lib/ap/posix/sigset.c - 664 sys sys 1014921981 892
-sys/src/ape/lib/ap/posix/sysconf.c - 664 sys sys 1014921981 630
+sys/src/ape/lib/ap/posix/sysconf.c - 664 sys sys 1229453242 695
 sys/src/ape/lib/ap/posix/tzset.c - 664 sys sys 1014921981 2794
 sys/src/ape/lib/ap/power - 20000000775 sys sys 1039727535 0
 sys/src/ape/lib/ap/power/getfcr.s - 664 sys sys 1014921991 352

+ 10 - 0
dist/replica/plan9.log

@@ -36345,3 +36345,13 @@
 1229304604 0 c sys/man/2/graphics - 664 sys sys 1229304375 12773
 1229304604 1 c sys/src/games/mahjongg/graphics.c - 664 sys sys 1229304506 5699
 1229315404 0 c 386/bin/games/mahjongg - 775 sys sys 1229314136 165355
+1229439604 0 c adm/timezone/local - 664 adm adm 1229439141 1518
+1229441404 0 d sys/src/ape/cmd/pdksh/crap.c - 664 sys sys 1014921977 0
+1229454004 0 c sys/include/ape/unistd.h - 664 sys sys 1229453242 4161
+1229454004 1 c sys/src/ape/lib/ap/posix/sysconf.c - 664 sys sys 1229453242 695
+1229459405 0 c 386/lib/ape/libap.a - 664 sys sys 1229458148 824800
+1229459405 1 c 386/lib/ape/libbsd.a - 664 sys sys 1229458148 185404
+1229459405 2 c 386/lib/ape/libdraw.a - 664 sys sys 1229458149 631580
+1229459405 3 c 386/lib/ape/libfmt.a - 664 sys sys 1229458149 156706
+1229459405 4 c 386/lib/ape/libnet.a - 664 sys sys 1229458149 24090
+1229459405 5 c 386/lib/ape/libv.a - 664 sys sys 1229458149 19334

+ 1 - 0
sys/include/ape/unistd.h

@@ -61,6 +61,7 @@ typedef long ssize_t;
 #define	_SC_JOB_CONTROL		8	/* posix job control */
 #define	_SC_SAVED_IDS		9	/* saved suid/sgid per process */
 #define	_SC_VERSION		10	/* this version */
+#define _SC_LOGIN_NAME_MAX	11	/* max length of a login name */
 
 /* pathconf argument */
 #define _PC_LINK_MAX		1

+ 0 - 75
sys/src/ape/cmd/pdksh/crap.c

@@ -1,75 +0,0 @@
-#include "../plan9/lib.h"
-#include "../plan9/sys9.h"
-#include <signal.h>
-#include <setjmp.h>
-
-/* A stack to hold pcs when signals nest */
-#define MAXSIGSTACK 20
-typedef struct Pcstack Pcstack;
-static struct Pcstack {
-	int sig;
-	void (*hdlr)(int, char*, Ureg*);
-	unsigned long restorepc;
-	Ureg *u;
-} pcstack[MAXSIGSTACK];
-static int nstack = 0;
-
-static void notecont(Ureg*, char*);
-
-void
-_notetramp(int sig, void (*hdlr)(int, char*, Ureg*), Ureg *u)
-{
-	Pcstack *p;
-
-	if(nstack >= MAXSIGSTACK)
-		_NOTED(1);	/* nesting too deep; just do system default */
-	p = &pcstack[nstack];
-	p->restorepc = u->pc;
-	p->sig = sig;
-	p->hdlr = hdlr;
-	p->u = u;
-	nstack++;
-	u->pc = (unsigned long) notecont;
-	_NOTED(2);	/* NSAVE: clear note but hold state */
-}
-
-static void
-notecont(Ureg *u, char *s)
-{
-	Pcstack *p;
-	void(*f)(int, char*, Ureg*);
-
-	p = &pcstack[nstack-1];
-	f = p->hdlr;
-	u->pc = p->restorepc;
-	nstack--;
-	(*f)(p->sig, s, u);
-	_NOTED(3);	/* NRSTR */
-}
-
-#define JMPBUFPC 1
-#define JMPBUFSP 0
-
-extern sigset_t	_psigblocked;
-
-void
-siglongjmp(sigjmp_buf j, int ret)
-{
-	struct Ureg *u;
-
-write(1,"_", 1);
-	if(j[0])
-		_psigblocked = j[1];
-	if(nstack == 0 || pcstack[nstack-1].u->sp > j[2+JMPBUFSP])
-		longjmp(j+2, ret);
-write(1,"!", 1);
-	u = pcstack[nstack-1].u;
-	nstack--;
-	u->ax = ret;
-	if(ret == 0)
-		u->ax = 1;
-	u->pc = j[2+JMPBUFPC];
-	u->sp = j[2+JMPBUFSP] + 4;
-write(1,"?", 1);
-	_NOTED(3);	/* NRSTR */
-}

+ 3 - 0
sys/src/ape/lib/ap/posix/sysconf.c

@@ -1,3 +1,4 @@
+#include	<stdio.h>
 #include	<unistd.h>
 #include	<limits.h>
 #include	<time.h>
@@ -33,6 +34,8 @@ sysconf(int name)
 #endif
 	case _SC_VERSION:
 		return _POSIX_VERSION;
+	case _SC_LOGIN_NAME_MAX:
+		return L_cuserid;
 	}
 	errno = EINVAL;
 	return -1;