2022-08-13 20:11:56 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_INTERNAL_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_INTERNAL_H_
|
|
|
|
#include "libc/calls/struct/timeval.h"
|
2023-06-15 20:50:42 +00:00
|
|
|
#include "libc/mem/alloca.h"
|
2024-05-05 06:05:36 +00:00
|
|
|
#include "libc/time.h"
|
2022-08-13 20:11:56 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
|
|
|
|
2023-07-24 15:31:54 +00:00
|
|
|
int sys_settimeofday(const struct timeval *, const struct timezone *);
|
|
|
|
int sys_futimes(int, const struct timeval *);
|
|
|
|
int sys_lutimes(const char *, const struct timeval *);
|
|
|
|
int sys_utimes(const char *, const struct timeval *);
|
|
|
|
int sys_utimes_nt(const char *, const struct timeval[2]);
|
2022-08-13 20:11:56 +00:00
|
|
|
|
2024-08-25 01:10:22 +00:00
|
|
|
const char *_DescribeTimeval(char[45], int, const struct timeval *);
|
|
|
|
#define DescribeTimeval(rc, ts) _DescribeTimeval(alloca(45), rc, ts)
|
2023-06-15 20:50:42 +00:00
|
|
|
|
2022-08-13 20:11:56 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_TIMEVAL_INTERNAL_H_ */
|