| 366 | RTM_EXPORT(clock); |
| 367 | |
| 368 | int stime(const time_t *t) |
| 369 | { |
| 370 | #ifdef RT_USING_RTC |
| 371 | if ((t != RT_NULL) && (_control_rtc(RT_DEVICE_CTRL_RTC_SET_TIME, (void *)t) == RT_EOK)) |
| 372 | { |
| 373 | return 0; |
| 374 | } |
| 375 | #endif /* RT_USING_RTC */ |
| 376 | |
| 377 | rt_set_errno(EFAULT); |
| 378 | return -1; |
| 379 | } |
| 380 | RTM_EXPORT(stime); |
| 381 | |
| 382 | time_t timegm(struct tm * const t) |
nothing calls this directly
no test coverage detected