| 469 | #endif /* _MSC_VER < 1800 */ |
| 470 | |
| 471 | int c_gettimeofday(c_timeval *tp, struct c_timezone *tzp) |
| 472 | { |
| 473 | struct _timeb tb; |
| 474 | |
| 475 | _ftime(&tb); |
| 476 | if (tp != 0) { |
| 477 | tp->tv_sec = (long)tb.time; |
| 478 | tp->tv_usec = tb.millitm * 1000; |
| 479 | } |
| 480 | if (tzp != 0) { |
| 481 | tzp->tz_minuteswest = tb.timezone; |
| 482 | tzp->tz_dsttime = tb.dstflag; |
| 483 | } |
| 484 | return (0); |
| 485 | } |
| 486 | |
| 487 | char *c_realpath(const char *path, char *real) |
| 488 | { |
no outgoing calls
no test coverage detected