Subversion Repositories Kolibri OS

Rev

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

Rev 4874 Rev 4921
Line 8... Line 8...
8
#define _TIME_H_
8
#define _TIME_H_
Line 9... Line 9...
9
 
9
 
10
#include "_ansi.h"
10
#include "_ansi.h"
Line 11... Line 11...
11
#include 
11
#include 
12
 
12
 
13
#ifndef NULL
13
#define __need_size_t
Line 14... Line 14...
14
#define	NULL	0
14
#define __need_NULL
15
#endif
15
#include 
Line 16... Line 16...
16
 
16
 
17
/* Get _CLOCKS_PER_SEC_ */
17
/* Get _CLOCKS_PER_SEC_ */
18
#include 
18
#include 
Line 19... Line 19...
19
 
19
 
20
#ifndef _CLOCKS_PER_SEC_
20
#ifndef _CLOCKS_PER_SEC_
21
#define _CLOCKS_PER_SEC_ 1000
-
 
22
#endif
-
 
Line 23... Line 21...
23
 
21
#define _CLOCKS_PER_SEC_ 1000
Line 24... Line 22...
24
#define CLOCKS_PER_SEC _CLOCKS_PER_SEC_
22
#endif
Line 51... Line 49...
51
char	  *_EXFUN(asctime,  (const struct tm *_tblock));
49
char	  *_EXFUN(asctime,  (const struct tm *_tblock));
52
char	  *_EXFUN(ctime,    (const time_t *_time));
50
char	  *_EXFUN(ctime,    (const time_t *_time));
53
struct tm *_EXFUN(gmtime,   (const time_t *_timer));
51
struct tm *_EXFUN(gmtime,   (const time_t *_timer));
54
struct tm *_EXFUN(localtime,(const time_t *_timer));
52
struct tm *_EXFUN(localtime,(const time_t *_timer));
55
#endif
53
#endif
-
 
54
size_t	   _EXFUN(strftime, (char *__restrict _s,
56
size_t	   _EXFUN(strftime, (char *_s, size_t _maxsize, const char *_fmt, const struct tm *_t));
55
			     size_t _maxsize, const char *__restrict _fmt,
-
 
56
			     const struct tm *__restrict _t));
Line 57... Line 57...
57
 
57
 
-
 
58
char	  *_EXFUN(asctime_r,	(const struct tm *__restrict,
58
char	  *_EXFUN(asctime_r,	(const struct tm *, char *));
59
				 char *__restrict));
59
char	  *_EXFUN(ctime_r,	(const time_t *, char *));
60
char	  *_EXFUN(ctime_r,	(const time_t *, char *));
-
 
61
struct tm *_EXFUN(gmtime_r,	(const time_t *__restrict,
60
struct tm *_EXFUN(gmtime_r,	(const time_t *, struct tm *));
62
				 struct tm *__restrict));
-
 
63
struct tm *_EXFUN(localtime_r,	(const time_t *__restrict,
Line 61... Line 64...
61
struct tm *_EXFUN(localtime_r,	(const time_t *, struct tm *));
64
				 struct tm *__restrict));
Line 62... Line 65...
62
 
65
 
63
_END_STD_C
66
_END_STD_C
64
 
67
 
Line 65... Line 68...
65
#ifdef __cplusplus
68
#ifdef __cplusplus
66
extern "C" {
69
extern "C" {
-
 
70
#endif
-
 
71
 
67
#endif
72
#ifndef __STRICT_ANSI__
68
 
73
char      *_EXFUN(strptime,     (const char *__restrict,
Line 69... Line 74...
69
#ifndef __STRICT_ANSI__
74
				 const char *__restrict,
70
char      *_EXFUN(strptime,     (const char *, const char *, struct tm *));
75
				 struct tm *__restrict));
Line 150... Line 155...
150
int _EXFUN(clock_getres,  (clockid_t clock_id, struct timespec *res));
155
int _EXFUN(clock_getres,  (clockid_t clock_id, struct timespec *res));
Line 151... Line 156...
151
 
156
 
Line 152... Line 157...
152
/* Create a Per-Process Timer, P1003.1b-1993, p. 264 */
157
/* Create a Per-Process Timer, P1003.1b-1993, p. 264 */
-
 
158
 
153
 
159
int _EXFUN(timer_create,
-
 
160
  	(clockid_t clock_id,
Line 154... Line 161...
154
int _EXFUN(timer_create,
161
 	struct sigevent *__restrict evp,
Line 155... Line 162...
155
  (clockid_t clock_id, struct sigevent *evp, timer_t *timerid));
162
	timer_t *__restrict timerid));
Line 156... Line 163...
156
 
163
 
Line 157... Line 164...
157
/* Delete a Per_process Timer, P1003.1b-1993, p. 266 */
164
/* Delete a Per_process Timer, P1003.1b-1993, p. 266 */
158
 
165
 
-
 
166
int _EXFUN(timer_delete, (timer_t timerid));
159
int _EXFUN(timer_delete, (timer_t timerid));
167
 
160
 
168
/* Per-Process Timers, P1003.1b-1993, p. 267 */
161
/* Per-Process Timers, P1003.1b-1993, p. 267 */
169
 
Line 162... Line 170...
162
 
170
int _EXFUN(timer_settime,