llvm-mos-sdk
time.h
Go to the documentation of this file.
1 // Stub implementation of time.h.
2 
3 #ifndef _TIME_H_
4 #define _TIME_H_
5 
6 #include <stddef.h>
7 
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 typedef long long time_t;
13 
14 struct tm {
15  int tm_sec;
16  int tm_min;
17  int tm_hour;
18  int tm_mday;
19  int tm_mon;
20  int tm_year;
21  int tm_wday;
22  int tm_yday;
23  int tm_isdst;
24 };
25 
26 struct timespec {
28  long tv_nsec;
29 };
30 
31 typedef int clockid_t;
32 
33 #define CLOCK_REALTIME ((clockid_t)0)
34 
35 long clock(void);
36 time_t time(time_t *timep);
37 time_t mktime(struct tm *timep);
38 struct tm *gmtime(const time_t *timep);
39 struct tm *localtime(const time_t *timep);
40 size_t strftime(char *s, size_t maxsize, const char *format,
41  const struct tm *timep);
42 char *asctime(const struct tm *timep);
43 char *ctime(const time_t *timep);
44 
45 #ifdef __cplusplus
46 }
47 #endif
48 
49 #endif // not _TIME_H_
time_t mktime(struct tm *timep)
int clockid_t
Definition: time.h:31
char * ctime(const time_t *timep)
size_t strftime(char *s, size_t maxsize, const char *format, const struct tm *timep)
char * asctime(const struct tm *timep)
struct tm * localtime(const time_t *timep)
struct tm * gmtime(const time_t *timep)
long long time_t
Definition: time.h:12
time_t time(time_t *timep)
long clock(void)
Definition: time.h:26
long tv_nsec
Definition: time.h:28
time_t tv_sec
Definition: time.h:27
Definition: time.h:14
int tm_mon
Definition: time.h:19
int tm_year
Definition: time.h:20
int tm_hour
Definition: time.h:17
int tm_sec
Definition: time.h:15
int tm_isdst
Definition: time.h:23
int tm_yday
Definition: time.h:22
int tm_mday
Definition: time.h:18
int tm_min
Definition: time.h:16
int tm_wday
Definition: time.h:21