blob: 4709ecd065611829edfab83e07432d6786793ba4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#include <errno.h>
#include <time.h>
// TODO time
time_t time(time_t *tloc) {
time_t ret = 0;
if (tloc) *tloc = ret;
return ret;
}
clock_t clock(void) {
return 0;
}
struct tm *gmtime(const time_t *timer) {
(void)timer;
errno = ENOSYS;
return NULL;
}
struct tm *localtime(const time_t *timer) {
(void)timer;
errno = ENOSYS;
return NULL;
}
time_t mktime(struct tm *timeptr) {
(void)timeptr;
return 0;
}
double difftime(time_t time1, time_t time0) {
(void)time1; (void)time0;
return 0;
}
size_t strftime(
char *restrict s, size_t maxsize,
const char *restrict format, const struct tm *restrict timeptr)
{
(void)s; (void)maxsize; (void)format; (void)timeptr;
return 0;
}
|