URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 199 |
Rev 1765 |
|
|
#include <time.h>
|
#include <time.h>
|
|
|
extern void __tm_conv();
|
extern void __tm_conv();
|
extern void __asctime();
|
extern void __asctime();
|
|
|
char *
|
char *
|
ctime_r(timep, buf)
|
ctime_r(timep, buf)
|
__const time_t * timep;
|
__const time_t * timep;
|
char * buf;
|
char * buf;
|
{
|
{
|
struct tm tmb;
|
struct tm tmb;
|
struct timezone tz;
|
struct timezone tz;
|
time_t offt;
|
time_t offt;
|
|
|
gettimeofday((void*)0, &tz);
|
gettimeofday((void*)0, &tz);
|
|
|
offt = -tz.tz_minuteswest*60L;
|
offt = -tz.tz_minuteswest*60L;
|
|
|
/* tmb.tm_isdst = ? */
|
/* tmb.tm_isdst = ? */
|
__tm_conv(&tmb, timep, offt);
|
__tm_conv(&tmb, timep, offt);
|
|
|
__asctime(buf, &tmb);
|
__asctime(buf, &tmb);
|
|
|
return buf;
|
return buf;
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.