master
 1#ifndef _WASI_EMULATED_PROCESS_CLOCKS
 2#error WASI lacks process-associated clocks; to enable emulation of the `times` function using \
 3the wall clock, which isn't sensitive to whether the program is running or suspended, \
 4compile with -D_WASI_EMULATED_PROCESS_CLOCKS and link with -lwasi-emulated-process-clocks
 5#else
 6#ifndef	_SYS_TIMES_H
 7#define	_SYS_TIMES_H
 8
 9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define __NEED_clock_t
14#include <bits/alltypes.h>
15
16#ifdef __wasilibc_unmodified_upstream /* Use alternate WASI libc headers */
17struct tms {
18	clock_t tms_utime;
19	clock_t tms_stime;
20	clock_t tms_cutime;
21	clock_t tms_cstime;
22};
23#else
24#include <__struct_tms.h>
25#endif
26
27clock_t times (struct tms *);
28
29#ifdef __cplusplus
30}
31#endif
32
33#endif
34#endif