mirror of
https://github.com/RGBCube/serenity
synced 2025-05-30 22:38:12 +00:00
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.
This commit is contained in:
parent
4bc87dc7b9
commit
e7cc08226f
10 changed files with 50 additions and 7 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue