git: plan9front

Download patch

ref: 0527345e0a81e412b434de44a44e2b999d464db2
parent: 58e6750401684c25a82c42c4edb5001a814f6d31
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Dec 19 13:47:17 EST 2020

libthread: remove unused _times() function

--- a/sys/src/libthread/main.c
+++ b/sys/src/libthread/main.c
@@ -69,38 +69,6 @@
 	return p;
 }
 
-static long
-_times(long *t)
-{
-	char b[200], *p;
-	int f;
-	ulong r;
-
-	memset(b, 0, sizeof(b));
-	f = open("/dev/cputime", OREAD|OCEXEC);
-	if(f < 0)
-		return 0;
-	if(read(f, b, sizeof(b)) <= 0){
-		close(f);
-		return 0;
-	}
-	p = b;
-	if(t)
-		t[0] = atol(p);
-	p = skip(p);
-	if(t)
-		t[1] = atol(p);
-	p = skip(p);
-	r = atol(p);
-	if(t){
-		p = skip(p);
-		t[2] = atol(p);
-		p = skip(p);
-		t[3] = atol(p);
-	}
-	return r;
-}
-
 static void
 efork(Execargs *e)
 {
--