aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/syscalls/sysgettod.c
blob: 24849d5ce06460456b84242adbf331b5694eb03d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* connector for gettimeofday */

#include <reent.h>
#include <sys/types.h>
#include <sys/times.h>

struct timeval;
struct timezone;

int
gettimeofday (ptimeval, ptimezone)
     struct timeval *ptimeval;
     struct timezone *ptimezone;
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _gettimeofday_r (_REENT, ptimeval, ptimezone);
#else
  return _gettimeofday (ptimeval, ptimezone);
#endif
}