summaryrefslogtreecommitdiff
path: root/Kernel/types.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2018-10-25 17:29:49 +0200
committerAndreas Kling <awesomekling@gmail.com>2018-10-25 17:36:18 +0200
commitdc6f57f19cff71c6bd83a42fd58a93adbbeb70cb (patch)
tree8b7d250141b3666063775f3fff0213e99e20fa3f /Kernel/types.h
parent597818524277bf24a2d6b10f540cbf2c34c2bb34 (diff)
downloadserenity-dc6f57f19cff71c6bd83a42fd58a93adbbeb70cb.zip
Add gettimeofday() syscall and LibC wrappers gettimeofday() and time().
This only has second accuracy right now, I'll work out subseconds later.
Diffstat (limited to 'Kernel/types.h')
-rw-r--r--Kernel/types.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/Kernel/types.h b/Kernel/types.h
index 3b4b609454..ac5a4feedd 100644
--- a/Kernel/types.h
+++ b/Kernel/types.h
@@ -23,8 +23,14 @@ typedef DWORD uid_t;
typedef DWORD gid_t;
typedef int pid_t;
typedef DWORD time_t;
+typedef DWORD suseconds_t;
typedef DWORD size_t;
+struct timeval {
+ time_t tv_sec;
+ suseconds_t tv_usec;
+};
+
struct FarPtr {
DWORD offset { 0 };
WORD selector { 0 };