diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-19 18:47:17 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2020-12-19 18:47:17 +0100 |
commit | 0527345e0a81e412b434de44a44e2b999d464db2 (patch) | |
tree | 4e0fc7339ae63e53cc156174c7a8febd37a1fed2 | |
parent | 58e6750401684c25a82c42c4edb5001a814f6d31 (diff) | |
download | plan9front-0527345e0a81e412b434de44a44e2b999d464db2.tar.xz |
libthread: remove unused _times() function
-rw-r--r-- | sys/src/libthread/main.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/sys/src/libthread/main.c b/sys/src/libthread/main.c index 708b65ed1..a2a2eb0af 100644 --- a/sys/src/libthread/main.c +++ b/sys/src/libthread/main.c @@ -69,38 +69,6 @@ skip(char *p) 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) { |