Welcome to mirror list, hosted at ThFree Co, Russian Federation.

sysgettod.c « syscalls « libc « newlib - cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 9208a30b93ff6a5de1da598cbee11abbb3603532 (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
_DEFUN (gettimeofday, (ptimeval, ptimezone),
     struct timeval *ptimeval _AND
     struct timezone *ptimezone)
{
#ifdef REENTRANT_SYSCALLS_PROVIDED
  return _gettimeofday_r (_REENT, ptimeval, ptimezone);
#else
  return _gettimeofday (ptimeval, ptimezone);
#endif
}