diff options
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; |