aboutsummaryrefslogtreecommitdiff
path: root/libc/inc/sys.h
diff options
context:
space:
mode:
Diffstat (limited to 'libc/inc/sys.h')
-rw-r--r--libc/inc/sys.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/libc/inc/sys.h b/libc/inc/sys.h
index 2014da9..bb5dec2 100644
--- a/libc/inc/sys.h
+++ b/libc/inc/sys.h
@@ -12,6 +12,7 @@ enum sys {
SYS_WRITE,
SYS_EXEC,
SYS_EXIT,
+ SYS_TIME,
SYS_MAP,
SYS_UNMAP,
SYS_RESOLVE
@@ -42,6 +43,7 @@ int sysv(enum sys num, ...);
while (1) { \
} \
}
+#define time() sys0(SYS_TIME)
#define event_map(id, func) sys2(SYS_MAP, (int)id, (int)func)
#define event_unmap(id, func) sys2(SYS_UNMAP, (int)id, (int)func)
#define event_resolve() sys0(SYS_RESOLVE) // TODO: Find method making event_resolve obsolete