OK, turing.

<- leave blank

Thu May 24 12:17:33 EDT 2018

diff -r 507ffb553e11 sys/src/cmd/vt/main.c
--- a/sys/src/cmd/vt/main.c Sun May 20 17:31:42 2018 -0400
+++ b/sys/src/cmd/vt/main.c Thu May 24 12:17:02 2018 -0400
@@ -928,6 +928,10 @@
			z++;
		}
	}
+ if (psel >= esel)
+ psel = esel - 1;
+
+ *psel = 0;
 }

 int


Thu May 24 12:09:13 EDT 2018
diff -r d417adf19a53 sys/src/cmd/8c/cgen.c
--- a/sys/src/cmd/8c/cgen.c Thu May 24 13:41:08 2018 +0100
+++ b/sys/src/cmd/8c/cgen.c Thu May 24 12:09:05 2018 -0400
@@ -994,7 +994,8 @@

	case OCAST:
		if(nn == Z) {
- nullwarn(l, Z);
+ if(n->type != types[TVOID])
+ nullwarn(l, Z);
			break;
		}
		/*


Thu May 24 11:26:46 EDT 2018
Ok great

Thu May 24 11:08:17 EDT 2018
ok turring

Thu May 24 09:30:52 EDT 2018
#!/bin/rc
# Use with the following plumb rule:
#
# type is text
# arg isdir $data
# plumb to none
# plumb start lswin $dir
{
	rfork en

	wdir=$1
	if(~ $wsys /srv/*){
		if(~ $#wpid 0)
			wpid=`{cat /dev/ppid}
		spec=($spec -pid $wpid)
	}
	if(~ $#wdir 0){
		wdir=`{pwd}
	}
	if not {
		builtin cd $wdir
	}
	spec=($spec -cd $wdir)

	{unmount /mnt/acme /dev; unmount $wsys /dev} >[2]/dev/null
	if(mount $wsys /mnt/wsys 'new '$"spec){
		bind -b /mnt/wsys /dev
		lc > /dev/cons
	echo -n 'rc!'`{pwd} > /dev/label
		rm /env/^(wdir wpid)
		exec rc </dev/cons >/dev/cons >[2]/dev/cons
		exit exec
	}
}&


Thu May 24 09:30:35 EDT 2018
fn stroll {
	if(~ $#* 1)
		cd $1
	pwd
	echo stroll ..
	ls -F | grep '/$' | sed 's/^(.*)\/$/stroll \1/g'
	for(i in `'
	'{ls})
		if(test -f $i)
			echo B $i
}


Thu May 24 09:27:34 EDT 2018
#!/bin/rc
# Use with the following plumb rule:
#
# type is text
# arg isdir $data
# plumb to none
# plumb start lswin $dir
{
	wdir=$1
	if(~ $wsys /srv/*){
		if(~ $#wpid 0)
			wpid=`{cat /dev/ppid}
		spec=($spec -pid $wpid)
	}
	if(~ $#wdir 0){
		wdir=`{pwd}
	}
	if not {
		builtin cd $wdir
	}
	spec=($spec -cd $wdir)

	{unmount /mnt/acme /dev; unmount $wsys /dev} >[2]/dev/null
	if(mount $wsys /mnt/wsys 'new '$"spec){
		bind -b /mnt/wsys /dev
		lc > /dev/cons
	echo -n 'rc!'`{pwd} > /dev/label
		rm /env/^(wdir wpid)
		exec rc </dev/cons >/dev/cons >[2]/dev/cons
		exit exec
	}
}&


Thu May 24 08:35:48 EDT 2018
diff -r 3912259ac653 -r 04d1c31f3bae 386/include/ape/math.h
--- a/386/include/ape/math.h Wed May 23 19:44:12 2018 +0200
+++ b/386/include/ape/math.h Thu May 24 08:35:01 2018 -0400
@@ -15,6 +15,7 @@
 extern double atan(double);
 extern double atan2(double, double);
 extern double cos(double);
+extern double hypot(double, double);
 extern double sin(double);
 extern double tan(double);
 extern double cosh(double);
@@ -36,6 +37,7 @@
 extern int isNaN(double);
 extern double Inf(int);
 extern int isInf(double, int);
+extern double fmin(double, double);

 #ifdef _RESEARCH_SOURCE
 /* does >> treat left operand as unsigned ? */
diff -r 3912259ac653 -r 04d1c31f3bae 68020/include/ape/math.h
--- a/68020/include/ape/math.h Wed May 23 19:44:12 2018 +0200
+++ b/68020/include/ape/math.h Thu May 24 08:35:01 2018 -0400
@@ -15,6 +15,7 @@
 extern double atan(double);
 extern double atan2(double, double);
 extern double cos(double);
+extern double hypot(double, double);
 extern double sin(double);
 extern double tan(double);
 extern double cosh(double);
@@ -36,6 +37,7 @@
 extern int isNaN(double);
 extern double Inf(int);
 extern int isInf(double, int);
+extern double fmin(double, double);

 #ifdef _RESEARCH_SOURCE
 /* does >> treat left operand as unsigned ? */
diff -r 3912259ac653 -r 04d1c31f3bae amd64/include/ape/math.h
--- a/amd64/include/ape/math.h Wed May 23 19:44:12 2018 +0200
+++ b/amd64/include/ape/math.h Thu May 24 08:35:01 2018 -0400
@@ -37,6 +37,7 @@
 extern int isNaN(double);
 extern double Inf(int);
 extern int isInf(double, int);
+extern double fmin(double, double);

 #ifdef _RESEARCH_SOURCE
 /* does >> treat left operand as unsigned ? */
diff -r 3912259ac653 -r 04d1c31f3bae arm/include/ape/math.h
--- a/arm/include/ape/math.h Wed May 23 19:44:12 2018 +0200
+++ b/arm/include/ape/math.h Thu May 24 08:35:01 2018 -0400
@@ -15,6 +15,7 @@
 extern double atan(double);
 extern double atan2(double, double);
 extern double cos(double);
+extern double hypot(double, double);
 extern double sin(double);
 extern double tan(double);
 extern double cosh(double);
@@ -36,6 +37,7 @@
 extern int isNaN(double);
 extern double Inf(int);
 extern int isInf(double, int);
+extern double fmin(double, double);

 #ifdef _RESEARCH_SOURCE
 /* does >> treat left operand as unsigned ? */
diff -r 3912259ac653 -r 04d1c31f3bae mips/include/ape/math.h
--- a/mips/include/ape/math.h Wed May 23 19:44:12 2018 +0200
+++ b/mips/include/ape/math.h Thu May 24 08:35:01 2018 -0400
@@ -15,6 +15,7 @@
 extern double atan(double);
 extern double atan2(double, double);
 extern double cos(double);
+extern double hypot(double, double);
 extern double sin(double);
 extern double tan(double);
 extern double cosh(double);
@@ -36,6 +37,7 @@
 extern int isNaN(double);
 extern double Inf(int);
 extern int isInf(double, int);
+extern double fmin(double, double);

 #ifdef _RESEARCH_SOURCE
 /* does >> treat left operand as unsigned ? */
diff -r 3912259ac653 -r 04d1c31f3bae power/include/ape/math.h
--- a/power/include/ape/math.h Wed May 23 19:44:12 2018 +0200
+++ b/power/include/ape/math.h Thu May 24 08:35:01 2018 -0400
@@ -15,6 +15,7 @@
 extern double atan(double);
 extern double atan2(double, double);
 extern double cos(double);
+extern double hypot(double, double);
 extern double sin(double);
 extern double tan(double);
 extern double cosh(double);
@@ -36,6 +37,7 @@
 extern int isNaN(double);
 extern double Inf(int);
 extern int isInf(double, int);
+extern double fmin(double, double);

 #ifdef _RESEARCH_SOURCE
 /* does >> treat left operand as unsigned ? */
diff -r 3912259ac653 -r 04d1c31f3bae sparc/include/ape/math.h
--- a/sparc/include/ape/math.h Wed May 23 19:44:12 2018 +0200
+++ b/sparc/include/ape/math.h Thu May 24 08:35:01 2018 -0400
@@ -15,6 +15,7 @@
 extern double atan(double);
 extern double atan2(double, double);
 extern double cos(double);
+extern double hypot(double, double);
 extern double sin(double);
 extern double tan(double);
 extern double cosh(double);
@@ -36,6 +37,7 @@
 extern int isNaN(double);
 extern double Inf(int);
 extern int isInf(double, int);
+extern double fmin(double, double);

 #ifdef _RESEARCH_SOURCE
 /* does >> treat left operand as unsigned ? */
diff -r 3912259ac653 -r 04d1c31f3bae sparc64/include/ape/math.h
--- a/sparc64/include/ape/math.h Wed May 23 19:44:12 2018 +0200
+++ b/sparc64/include/ape/math.h Thu May 24 08:35:01 2018 -0400
@@ -15,6 +15,7 @@
 extern double atan(double);
 extern double atan2(double, double);
 extern double cos(double);
+extern double hypot(double, double);
 extern double sin(double);
 extern double tan(double);
 extern double cosh(double);
@@ -36,6 +37,7 @@
 extern int isNaN(double);
 extern double Inf(int);
 extern int isInf(double, int);
+extern double fmin(double, double);

 #ifdef _RESEARCH_SOURCE
 /* does >> treat left operand as unsigned ? */
diff -r 3912259ac653 -r 04d1c31f3bae sys/src/ape/lib/ap/math/fmin.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/src/ape/lib/ap/math/fmin.c Thu May 24 08:35:01 2018 -0400
@@ -0,0 +1,11 @@
+#include <math.h>
+
+double
+fmin(double a, double b)
+{
+ if(isNaN(a))
+ return b;
+ if(isNaN(b))
+ return a;
+ return a < b ? a : b;
+}
diff -r 3912259ac653 -r 04d1c31f3bae sys/src/ape/lib/ap/math/mkfile
--- a/sys/src/ape/lib/ap/math/mkfile Wed May 23 19:44:12 2018 +0200
+++ b/sys/src/ape/lib/ap/math/mkfile Thu May 24 08:35:01 2018 -0400
@@ -10,6 +10,7 @@
	fabs.$O\
	floor.$O\
	fmod.$O\
+ fmin.$O\
	gamma.$O\
	hypot.$O\
	j0.$O\


Thu May 24 08:16:33 EDT 2018
      events[j].ev_endchr =
	Int_val(Field(Field(Field(ev, EV_LOC), LOC_END), POS_CNUM))
	- Int_val(Field(ev_start, POS_BOL));


Wed May 23 20:06:03 EDT 2018
fuck you

Tue May 22 23:26:47 EDT 2018
server "example.com" {
	listen on * port 80
	listen on :: port 80
	root "/werc/sites/example.com/_werc"
	directory index "werc.rc"
	location "/werc.rc" {
		root "/werc/bin"
		fastcgi
	}
	location "*/werc.rc" {
		root "/werc/bin"
		root strip 100
		directory index "werc.rc"
		fastcgi
	}
}

next