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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [newlib/] [newlib/] [libc/] [include/] [time.h] - Diff between revs 39 and 56

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 39 Rev 56
Line 3... Line 3...
 *
 *
 * Struct and function declarations for dealing with time.
 * Struct and function declarations for dealing with time.
 */
 */
 
 
#ifndef _TIME_H_
#ifndef _TIME_H_
#ifdef __cplusplus
 
extern "C" {
 
#endif
 
#define _TIME_H_
#define _TIME_H_
 
 
#include "_ansi.h"
#include "_ansi.h"
 
 
 
#ifdef __cplusplus
 
extern "C" {
 
#endif
 
 
#ifndef NULL
#ifndef NULL
#define NULL    0L
#define NULL    0
#endif
#endif
 
 
#define CLOCKS_PER_SEC 1000             /* Machine dependent */
/* Get _CLOCKS_PER_SEC_ */
 
#include <machine/time.h>
 
 
 
#ifndef _CLOCKS_PER_SEC_
 
#define _CLOCKS_PER_SEC_ 1000
 
#endif
 
 
 
#define CLOCKS_PER_SEC _CLOCKS_PER_SEC_
#define CLK_TCK CLOCKS_PER_SEC
#define CLK_TCK CLOCKS_PER_SEC
#define __need_size_t
#define __need_size_t
#include <stddef.h>
#include <stddef.h>
 
 
/* Get _CLOCK_T_ and _TIME_T_.  */
/* Get _CLOCK_T_ and _TIME_T_.  */
Line 64... Line 72...
struct tm *_EXFUN(gmtime_r,     (const time_t *, struct tm *));
struct tm *_EXFUN(gmtime_r,     (const time_t *, struct tm *));
struct tm *_EXFUN(localtime_r,  (const time_t *, struct tm *));
struct tm *_EXFUN(localtime_r,  (const time_t *, struct tm *));
 
 
#ifdef __CYGWIN32__
#ifdef __CYGWIN32__
#ifndef __STRICT_ANSI__
#ifndef __STRICT_ANSI__
extern time_t *__imp__timezone;
extern time_t _timezone __declspec(dllimport);
#define _timezone (*__imp__timezone)
extern int _daylight __declspec(dllimport);
extern int *__imp__daylight;
extern char *_tzname[2] __declspec(dllimport);
#define _daylight (*__imp__daylight)
 
extern char *((*__imp__tzname)[2]);
 
#define _tzname (*__imp__tzname)
 
char *_EXFUN(timezone, (void));
char *_EXFUN(timezone, (void));
void _EXFUN(tzset, (void));
void _EXFUN(tzset, (void));
#endif
#endif
#endif /* __CYGWIN32__ */
#endif /* __CYGWIN32__ */
 
 

powered by: WebSVN 2.1.0

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