diff options
author | Andreas Kling <kling@serenityos.org> | 2021-08-14 19:17:32 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-08-14 19:58:11 +0200 |
commit | 35b52338bb82ff66e7a76ba764c1ca97b6e9e18c (patch) | |
tree | 5cbc88d580594b98b62864c93f7bfdb255011145 /Kernel | |
parent | 808ce594db1f2190e5212a250e900bde2ffe710b (diff) | |
download | serenity-35b52338bb82ff66e7a76ba764c1ca97b6e9e18c.zip |
Kernel+LibC: Share definitions for sys/times.h
Diffstat (limited to 'Kernel')
-rw-r--r-- | Kernel/API/POSIX/sys/times.h | 24 | ||||
-rw-r--r-- | Kernel/UnixTypes.h | 8 |
2 files changed, 25 insertions, 7 deletions
diff --git a/Kernel/API/POSIX/sys/times.h b/Kernel/API/POSIX/sys/times.h new file mode 100644 index 0000000000..c208e9ed3b --- /dev/null +++ b/Kernel/API/POSIX/sys/times.h @@ -0,0 +1,24 @@ +/* + * Copyright (c) 2018-2021, Andreas Kling <kling@serenityos.org> + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include <Kernel/API/POSIX/sys/types.h> + +#ifdef __cplusplus +extern "C" { +#endif + +struct tms { + clock_t tms_utime; + clock_t tms_stime; + clock_t tms_cutime; + clock_t tms_cstime; +}; + +#ifdef __cplusplus +} +#endif diff --git a/Kernel/UnixTypes.h b/Kernel/UnixTypes.h index 29bacddeee..b3af1919fe 100644 --- a/Kernel/UnixTypes.h +++ b/Kernel/UnixTypes.h @@ -22,6 +22,7 @@ #include <Kernel/API/POSIX/sys/mman.h> #include <Kernel/API/POSIX/sys/socket.h> #include <Kernel/API/POSIX/sys/stat.h> +#include <Kernel/API/POSIX/sys/times.h> #include <Kernel/API/POSIX/sys/un.h> #include <Kernel/API/POSIX/sys/utsname.h> #include <Kernel/API/POSIX/sys/wait.h> @@ -38,13 +39,6 @@ TYPEDEF_DISTINCT_ORDERED_ID(pid_t, ThreadID); TYPEDEF_DISTINCT_ORDERED_ID(pid_t, SessionID); TYPEDEF_DISTINCT_ORDERED_ID(pid_t, ProcessGroupID); -struct tms { - clock_t tms_utime; - clock_t tms_stime; - clock_t tms_cutime; - clock_t tms_cstime; -}; - typedef i64 off_t; typedef i64 time_t; |