Subversion Repositories Kolibri OS

Rev

Rev 8687 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8687 Rev 8787
Line 6... Line 6...
6
typedef unsigned long int clock_t;
6
typedef unsigned long int clock_t;
7
typedef unsigned long int time_t;
7
typedef unsigned long int time_t;
8
#define clock() _ksys_get_clock()
8
#define clock() _ksys_get_clock()
9
#define CLOCKS_PER_SEC 100
9
#define CLOCKS_PER_SEC 100
Line -... Line 10...
-
 
10
 
10
 
11
#pragma pack(push, 1)
11
struct tm {
12
struct tm {
12
	int tm_sec;	 /*	seconds after the minute	0-61*/
13
	int tm_sec;	 /*	seconds after the minute	0-61*/
13
	int tm_min;	 /* minutes after the hour	0-59 */
14
	int tm_min;	 /* minutes after the hour	0-59 */
14
	int tm_hour; /*	hours since midnight	0-23 */
15
	int tm_hour; /*	hours since midnight	0-23 */
Line 17... Line 18...
17
	int tm_year; /* years since 1900 */	
18
	int tm_year; /* years since 1900 */	
18
	int tm_wday; /* days since Sunday	0-6		*/
19
	int tm_wday; /* days since Sunday	0-6		*/
19
	int tm_yday; /* days since January 1	0-365 	*/
20
	int tm_yday; /* days since January 1	0-365 	*/
20
	int tm_isdst; /* Daylight Saving Time flag	*/
21
	int tm_isdst; /* Daylight Saving Time flag	*/
21
};
22
};
-
 
23
#pragma pack(pop)
Line 22... Line 24...
22
 
24
 
23
extern time_t _FUNC(mktime)(struct tm * timeptr);
25
extern time_t _FUNC(mktime)(struct tm * timeptr);
24
extern time_t _FUNC(time)(time_t* timer);
26
extern time_t _FUNC(time)(time_t* timer);
25
extern struct tm * _FUNC(localtime)(const time_t * timer); /* non-standard!  ignore parameter and return just time now, not generate tm_isdst, tm_yday, tm_wday == -1  */
27
extern struct tm * _FUNC(localtime)(const time_t * timer); 
26
extern double _FUNC(difftime)(time_t end, time_t beginning);
-
 
27
 
28
extern double _FUNC(difftime)(time_t end, time_t beginning);
Line 28... Line 29...
28
extern struct tm buffertime;
29
extern char*  _FUNC(asctime)(const struct tm *tm);
29
 
30