mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
abi: move CLOCK_* defines to abi.h
This commit is contained in:
@@ -199,4 +199,8 @@ typedef struct {
|
||||
|
||||
#define HOST_NAME_MAX 64
|
||||
|
||||
#define CLOCK_REALTIME 0
|
||||
#define CLOCK_MONOTONIC 1
|
||||
#define CLOCK_BOOTTIME 7
|
||||
|
||||
#endif
|
||||
|
||||
@@ -4,10 +4,6 @@
|
||||
#include <kernel/timekeeper.h>
|
||||
#include <kernel/vmm.h>
|
||||
|
||||
#define CLOCK_REALTIME 0
|
||||
#define CLOCK_MONOTONIC 1
|
||||
#define CLOCK_BOOTTIME 7
|
||||
|
||||
syscallret_t syscall_clockget(context_t *, int clockid, timespec_t *tp) {
|
||||
syscallret_t ret = {
|
||||
.ret = -1
|
||||
|
||||
@@ -1,10 +1,7 @@
|
||||
#include <kernel/syscalls.h>
|
||||
#include <time.h>
|
||||
#include <kernel/usercopy.h>
|
||||
|
||||
#define CLOCK_REALTIME 0
|
||||
#define CLOCK_MONOTONIC 1
|
||||
#define CLOCK_BOOTTIME 7
|
||||
#include <kernel/abi.h>
|
||||
|
||||
syscallret_t syscall_clock_getres(context_t *, int clockid, timespec_t *res) {
|
||||
syscallret_t ret;
|
||||
|
||||
Reference in New Issue
Block a user