mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-11-01 23:18:21 +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 HOST_NAME_MAX 64
|
||||||
|
|
||||||
|
#define CLOCK_REALTIME 0
|
||||||
|
#define CLOCK_MONOTONIC 1
|
||||||
|
#define CLOCK_BOOTTIME 7
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -4,10 +4,6 @@
|
|||||||
#include <kernel/timekeeper.h>
|
#include <kernel/timekeeper.h>
|
||||||
#include <kernel/vmm.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 syscall_clockget(context_t *, int clockid, timespec_t *tp) {
|
||||||
syscallret_t ret = {
|
syscallret_t ret = {
|
||||||
.ret = -1
|
.ret = -1
|
||||||
|
|||||||
@@ -1,10 +1,7 @@
|
|||||||
#include <kernel/syscalls.h>
|
#include <kernel/syscalls.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
#include <kernel/usercopy.h>
|
#include <kernel/usercopy.h>
|
||||||
|
#include <kernel/abi.h>
|
||||||
#define CLOCK_REALTIME 0
|
|
||||||
#define CLOCK_MONOTONIC 1
|
|
||||||
#define CLOCK_BOOTTIME 7
|
|
||||||
|
|
||||||
syscallret_t syscall_clock_getres(context_t *, int clockid, timespec_t *res) {
|
syscallret_t syscall_clock_getres(context_t *, int clockid, timespec_t *res) {
|
||||||
syscallret_t ret;
|
syscallret_t ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user