Line data Source code
1 0 : /*
2 : * Copyright (c) 2025 Tenstorrent AI ULC
3 : *
4 : * SPDX-License-Identifier: Apache-2.0
5 : */
6 :
7 : #ifndef ZEPHYR_INCLUDE_POSIX_SYS_TIMES_H_
8 : #define ZEPHYR_INCLUDE_POSIX_SYS_TIMES_H_
9 :
10 : #include <time.h>
11 :
12 : #ifdef __cplusplus
13 : extern "C" {
14 : #endif
15 :
16 : #if defined(_POSIX_MULTI_PROCESS) || defined(__DOXYGEN__)
17 :
18 : #if !defined(_TMS_DECLARED) && !defined(__tms_defined)
19 0 : struct tms {
20 0 : clock_t tms_utime;
21 0 : clock_t tms_stime;
22 0 : clock_t tms_cutime;
23 0 : clock_t tms_cstime;
24 : };
25 : #define _TMS_DECLARED
26 : #define __tms_defined
27 : #endif
28 :
29 0 : clock_t times(struct tms *buf);
30 :
31 : #endif /* _POSIX_MULTI_PROCESS */
32 :
33 : #ifdef __cplusplus
34 : }
35 : #endif
36 :
37 : #endif /* ZEPHYR_INCLUDE_POSIX_SYS_TIMES_H_ */
|