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

Subversion Repositories eco32

[/] [eco32/] [trunk/] [lcc/] [include/] [eco32/] [linux/] [time.h] - Blame information for rev 4

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
};
41
extern clock_t clock(void);
42
extern double difftime(time_t, time_t);
43
extern time_t mktime(struct tm *);
44
extern time_t time(time_t *);
45
extern char *asctime(const struct tm *);
46
extern char *ctime(const time_t *);
47
extern struct tm *gmtime(const time_t *);
48
extern struct tm *localtime(const time_t *);
49
extern size_t strftime(char *, size_t, const char *, const struct tm *);
50
 
51
#endif /* __TIME */

powered by: WebSVN 2.1.0

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