| 590 | typedef int64_t time_t; |
| 591 | |
| 592 | extern "C" time_t time(time_t* _arg) |
| 593 | { |
| 594 | timespec ts; |
| 595 | clock_gettime(0 /*CLOCK_REALTIME*/, &ts); |
| 596 | time_t result = ts.tv_sec; |
| 597 | |
| 598 | if (NULL != _arg) |
| 599 | { |
| 600 | *_arg = result; |
| 601 | } |
| 602 | |
| 603 | return result; |
| 604 | } |
| 605 | |
| 606 | extern "C" void* realloc(void* _ptr, size_t _size) |
| 607 | { |
no test coverage detected