summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-08-15 09:03:26 -0400
committerJakob Kaivo <jkk@ung.org>2020-08-15 09:03:26 -0400
commitcdcd1977d7b8d8f92a950777462e3d02af90a6bc (patch)
tree8befb214e2570d7914cf7ab54097877708e39765
parent014a49e4aee821ca3490f318ce6d875942f4018f (diff)
implement as syscall
-rw-r--r--src/__sys.x86-32.s (renamed from src/_sys.x86-32.s)0
-rw-r--r--src/__sys.x86-64.s (renamed from src/_sys.x86-64.s)0
-rw-r--r--src/sys/times/times.c5
3 files changed, 3 insertions, 2 deletions
diff --git a/src/_sys.x86-32.s b/src/__sys.x86-32.s
index ad60201d..ad60201d 100644
--- a/src/_sys.x86-32.s
+++ b/src/__sys.x86-32.s
diff --git a/src/_sys.x86-64.s b/src/__sys.x86-64.s
index 415a8084..415a8084 100644
--- a/src/_sys.x86-64.s
+++ b/src/__sys.x86-64.s
diff --git a/src/sys/times/times.c b/src/sys/times/times.c
index 753d66ae..f677d3b4 100644
--- a/src/sys/times/times.c
+++ b/src/sys/times/times.c
@@ -1,11 +1,12 @@
#include "time.h"
#include <sys/times.h>
+#include "_syscall.h"
clock_t times(struct tms *buffer)
{
- (void)buffer;
- return (clock_t)-1;
+ SYSCALL(times, clock_t, -1, buffer, 0, 0, 0, 0, 0);
}
+
/*
POSIX(1)
*/