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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [include/] [alpha/] [osf/] [time.h] - Blame information for rev 236

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

Line No. Rev Author Line
1 4 hellwig
#ifndef __TIME
2
#define __TIME
3
 
4
#define CLOCKS_PER_SEC 1000000
5
#ifndef NULL
6
#define NULL ((void*)0)
7
#endif
8
 
9
#if !defined(_CLOCK_T) && !defined(_CLOCK_T_) && !defined(_CLOCK_T_DEFINED)
10
#define _CLOCK_T
11
#define _CLOCK_T_
12
#define _CLOCK_T_DEFINED
13
typedef long clock_t;
14
#endif
15
 
16
#if !defined(_TIME_T) && !defined(_TIME_T_) && !defined(_TIME_T_DEFINED)
17
#define _TIME_T
18
#define _TIME_T_
19
#define _TIME_T_DEFINED
20
typedef long time_t;
21
#endif
22
 
23
#if !defined(_SIZE_T) && !defined(_SIZE_T_) && !defined(_SIZE_T_DEFINED)
24
#define _SIZE_T
25
#define _SIZE_T_
26
#define _SIZE_T_DEFINED
27
typedef unsigned long size_t;
28
#endif
29
 
30
struct tm {
31
        int     tm_sec;
32
        int     tm_min;
33
        int     tm_hour;
34
        int     tm_mday;
35
        int     tm_mon;
36
        int     tm_year;
37
        int     tm_wday;
38
        int     tm_yday;
39
        int     tm_isdst;
40
long __tm_gmtoff;
41
        char *__tm_zone;
42
};
43
extern clock_t clock(void);
44
extern double difftime(time_t, time_t);
45
extern time_t mktime(struct tm *);
46
extern time_t time(time_t *);
47
extern char *asctime(const struct tm *);
48
extern char *ctime(const time_t *);
49
extern struct tm *gmtime(const time_t *);
50
extern struct tm *localtime(const time_t *);
51
extern size_t strftime(char *, size_t, const char *, const struct tm *);
52
 
53
#endif /* __TIME */

powered by: WebSVN 2.1.0

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