ref: 08c1622b0d8de92c2650d7b0338d9abf20985827
parent: 0527345e0a81e412b434de44a44e2b999d464db2
author: cinap_lenrek <[email protected]>
date: Sat Dec 19 14:15:02 EST 2020
[12kq]l: remove unix compat code for cputime()
--- a/sys/src/cmd/1l/cputime.c
+++ /dev/null
@@ -1,12 +1,0 @@
-double
-cputime(void)
-{
- long t[4];
- long times(long*);
- int i;
-
- times(t);
- for(i=1; i<4; i++)
- t[0] += t[i];
- return t[0] / 100.;
-}
--- a/sys/src/cmd/2l/cputime.c
+++ /dev/null
@@ -1,12 +1,0 @@
-double
-cputime(void)
-{
- long t[4];
- long times(long*);
- int i;
-
- times(t);
- for(i=1; i<4; i++)
- t[0] += t[i];
- return t[0] / 100.;
-}
--- a/sys/src/cmd/kl/cputime.c
+++ /dev/null
@@ -1,30 +1,0 @@
-double
-cputime(void)
-{
- long t[4];
- long times(long*);
- int i;
-
- times(t);
- for(i=1; i<4; i++)
- t[0] += t[i];
- return t[0] / 100.;
-}
-
-long
-seek(int f, long o, int p)
-{
- long lseek(int, long, int);
-
- return lseek(f, o, p);
-}
-
-int
-create(char *n, int m, long p)
-{
- int creat(char*, int);
-
- if(m != 1)
- return -1;
- return creat(n, p);
-}
--- a/sys/src/cmd/ql/cputime.c
+++ /dev/null
@@ -1,30 +1,0 @@
-double
-cputime(void)
-{
- long t[4];
- long times(long*);
- int i;
-
- times(t);
- for(i=1; i<4; i++)
- t[0] += t[i];
- return t[0] / 100.;
-}
-
-long
-seek(int f, long o, int p)
-{
- long lseek(int, long, int);
-
- return lseek(f, o, p);
-}
-
-int
-create(char *n, int m, long p)
-{
- int creat(char*, int);
-
- if(m != 1)
- return -1;
- return creat(n, p);
-}