mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:27:35 +00:00
Add gettimeofday() syscall and LibC wrappers gettimeofday() and time().
This only has second accuracy right now, I'll work out subseconds later.
This commit is contained in:
parent
5978185242
commit
dc6f57f19c
20 changed files with 188 additions and 8 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue