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 + * + * SPDX-License-Identifier: BSD-2-Clause + */ + +#pragma once + +#include + +#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 #include #include +#include #include #include #include @@ -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; diff --git a/Userland/Libraries/LibC/sys/times.h b/Userland/Libraries/LibC/sys/times.h index 06ccab79bd..50ef1a2938 100644 --- a/Userland/Libraries/LibC/sys/times.h +++ b/Userland/Libraries/LibC/sys/times.h @@ -1,23 +1,15 @@ /* - * Copyright (c) 2018-2020, Andreas Kling + * Copyright (c) 2018-2021, Andreas Kling * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once -#include -#include +#include __BEGIN_DECLS -struct tms { - clock_t tms_utime; - clock_t tms_stime; - clock_t tms_cutime; - clock_t tms_cstime; -}; - clock_t times(struct tms*); __END_DECLS