OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [syscalls/] [sysgettod.c] - Blame information for rev 1774

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 56 joel
/* 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
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.