diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-10-25 17:29:49 +0200 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-10-25 17:36:18 +0200 |
commit | dc6f57f19cff71c6bd83a42fd58a93adbbeb70cb (patch) | |
tree | 8b7d250141b3666063775f3fff0213e99e20fa3f /Kernel/types.h | |
parent | 597818524277bf24a2d6b10f540cbf2c34c2bb34 (diff) | |
download | serenity-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.h | 6 |
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 }; |