OSDN Git Service

* Makefile.shared: New file.
[pf3gnuchains/pf3gnuchains3x.git] / newlib / libc / syscalls / sysgettod.c
1 /* connector for gettimeofday */
2
3 #include <reent.h>
4 #include <sys/types.h>
5 #include <sys/times.h>
6
7 struct timeval;
8 struct timezone;
9
10 int
11 gettimeofday (ptimeval, ptimezone)
12      struct timeval *ptimeval;
13      struct timezone *ptimezone;
14 {
15 #ifdef REENTRANT_SYSCALLS_PROVIDED
16   return _gettimeofday_r (_REENT, ptimeval, ptimezone);
17 #else
18   return _gettimeofday (ptimeval, ptimezone);
19 #endif
20 }