diff options
author | Andreas Kling <awesomekling@gmail.com> | 2018-12-03 01:12:26 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2018-12-03 01:14:19 +0100 |
commit | e7cc08226f5af4711f8e8438d7132c35b10666ed (patch) | |
tree | def609f70bb376b9ab989c3b60792abbf2989147 /VirtualFileSystem/UnixTypes.h | |
parent | 4bc87dc7b99c4f7a9270e23e5958b4c93fe76033 (diff) | |
download | serenity-e7cc08226f5af4711f8e8438d7132c35b10666ed.zip |
Implement basic support for times().
The kernel now bills processes for time spent in kernelspace and userspace
separately. The accounting is forwarded to the parent process in reap().
This makes the "time" builtin in bash work.
Diffstat (limited to 'VirtualFileSystem/UnixTypes.h')
-rw-r--r-- | VirtualFileSystem/UnixTypes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/VirtualFileSystem/UnixTypes.h b/VirtualFileSystem/UnixTypes.h index d1e0e36efb..f90e860847 100644 --- a/VirtualFileSystem/UnixTypes.h +++ b/VirtualFileSystem/UnixTypes.h @@ -219,6 +219,14 @@ typedef dword mode_t; typedef dword nlink_t; typedef dword uid_t; typedef dword gid_t; +typedef dword clock_t; + +struct tms { + clock_t tms_utime; + clock_t tms_stime; + clock_t tms_cutime; + clock_t tms_cstime; +}; #ifdef SERENITY typedef void (*__sighandler_t)(int); |