2022-08-13 13:11:56 -07:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMESPEC_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMESPEC_INTERNAL_H_
|
|
|
|
#include "libc/calls/struct/timespec.h"
|
|
|
|
#include "libc/mem/alloca.h"
|
|
|
|
COSMOPOLITAN_C_START_
|
2022-10-05 06:37:15 -07:00
|
|
|
/* clang-format off */
|
2022-08-13 13:11:56 -07:00
|
|
|
|
2023-07-24 08:31:54 -07:00
|
|
|
int __sys_clock_nanosleep(int, int, const struct timespec *, struct timespec *);
|
|
|
|
int __sys_utimensat(int, const char *, const struct timespec[2], int);
|
|
|
|
int __utimens(int, const char *, const struct timespec[2], int);
|
|
|
|
int sys_clock_getres(int, struct timespec *);
|
|
|
|
int sys_clock_gettime(int, struct timespec *);
|
|
|
|
int sys_clock_gettime_m1(int, struct timespec *);
|
2023-10-02 19:25:19 -07:00
|
|
|
int sys_clock_gettime_mono(struct timespec *);
|
|
|
|
int sys_clock_gettime_nt(int, struct timespec *);
|
2023-07-24 08:31:54 -07:00
|
|
|
int sys_clock_gettime_xnu(int, struct timespec *);
|
|
|
|
int sys_clock_nanosleep_nt(int, int, const struct timespec *, struct timespec *);
|
|
|
|
int sys_clock_nanosleep_openbsd(int, int, const struct timespec *, struct timespec *);
|
|
|
|
int sys_clock_nanosleep_xnu(int, int, const struct timespec *, struct timespec *);
|
2023-10-02 19:25:19 -07:00
|
|
|
int sys_clock_settime(int, const struct timespec *);
|
2023-07-24 08:31:54 -07:00
|
|
|
int sys_futimens(int, const struct timespec[2]);
|
|
|
|
int sys_nanosleep(const struct timespec *, struct timespec *);
|
|
|
|
int sys_nanosleep_nt(const struct timespec *, struct timespec *);
|
|
|
|
int sys_sem_timedwait(int64_t, const struct timespec *);
|
|
|
|
int sys_utimensat(int, const char *, const struct timespec[2], int);
|
|
|
|
int sys_utimensat_nt(int, const char *, const struct timespec[2], int);
|
2023-09-06 03:54:42 -07:00
|
|
|
int sys_utimensat_old(int, const char *, const struct timespec[2], int);
|
2024-09-12 23:01:20 -07:00
|
|
|
struct timespec sys_clock_gettime_monotonic_nt(void);
|
2022-08-13 13:11:56 -07:00
|
|
|
|
2024-08-24 18:10:22 -07:00
|
|
|
const char *_DescribeTimespec(char[45], int, const struct timespec *);
|
|
|
|
#define DescribeTimespec(rc, ts) _DescribeTimespec(alloca(45), rc, ts)
|
2022-08-13 13:11:56 -07:00
|
|
|
|
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMESPEC_INTERNAL_H_ */
|