]> git.ipfire.org Git - thirdparty/glibc.git/blob - conform/data/time.h-data
First steps to get conformtest fully working
[thirdparty/glibc.git] / conform / data / time.h-data
1 constant NULL
2 constant CLOCKS_PER_SEC
3
4 #ifdef ISO11
5 macro TIME_UTC
6 #endif
7
8 #if !defined ISO && !defined ISO99
9 type {struct timespec}
10
11 element {struct timespec} time_t tv_sec
12 element {struct timespec} long tv_nsec
13 #endif
14
15 type size_t
16 type clock_t
17 type time_t
18
19 type {struct tm}
20
21 element {struct tm} int tm_sec
22 element {struct tm} int tm_min
23 element {struct tm} int tm_hour
24 element {struct tm} int tm_mday
25 element {struct tm} int tm_mon
26 element {struct tm} int tm_year
27 element {struct tm} int tm_wday
28 element {struct tm} int tm_yday
29 element {struct tm} int tm_isdst
30
31 function clock_t clock (void)
32 function double difftime (time_t, time_t)
33 function time_t mktime (struct tm*)
34 function time_t time (time_t*)
35 function {char*} asctime (const struct tm*)
36 function {char*} ctime (const time_t*)
37 function {struct tm*} gmtime (const time_t*)
38 function {struct tm*} localtime (const time_t*)
39 function size_t strftime (char*, size_t, const char*, const struct tm*)
40 #if defined ISO11
41 function int timespec_get (struct timespec *, int)
42 #endif
43
44 #if !defined ISO && !defined ISO99 && !defined ISO11
45 # if !defined XOPEN21K && !defined XOPEN2K8 && !defined POSIX2008
46 constant CLK_TCK
47 # endif
48 constant CLOCK_PROCESS_CPUTIME_ID
49 constant CLOCK_THREAD_CPUTIME_ID
50
51 type {struct itimerspec}
52
53 element {struct itimerspec} {struct timespec} it_interval
54 element {struct itimerspec} {struct timespec} it_value
55
56 constant CLOCK_REALTIME
57 constant TIMER_ABSTIME
58 constant CLOCK_MONOTONIC
59
60 type clockid_t
61 type timer_t
62
63 # if defined XOPEN2K8 || defined POSIX2008
64 type pid_t
65 type locale_t
66 tag {struct sigevent}
67 # endif
68
69 # if !defined POSIX && !defined POSIX2008
70 variable int getdate_err
71 # endif
72
73 function {char*} asctime_r (const struct tm*, char*)
74 function int clock_getcpuclockid (pid_t, clockid_t*)
75 function int clock_getres (clockid_t, struct timespec*)
76 function int clock_gettime (clockid_t, struct timespec*)
77 function int clock_nanosleep (clockid_t, int, const struct timespec*, struct timespec*)
78 function int clock_settime (clockid_t, const struct timespec*)
79 function {char*} ctime_r (const time_t*, char*)
80 # if !defined POSIX && !defined POSIX2008
81 function {struct tm*} getdate (const char*)
82 # endif
83 function {struct tm*} gmtime_r (const time_t*, struct tm*)
84 function {struct tm*} localtime_r (const time_t*, struct tm*)
85 function int nanosleep (const struct timespec*, struct timespec*)
86 # if defined XOPEN2K8 || defined POSIX2008
87 function size_t strftime_l (char*, size_t, const char*, const struct tm*, locale_t)
88 # endif
89 # if !defined POSIX && !defined POSIX2008
90 function {char*} strptime (const char*, const char*, struct tm*)
91 # endif
92 function int timer_create (clockid_t, struct sigevent*, timer_t*)
93 function int timer_delete (timer_t)
94 function int timer_gettime (timer_t, struct itimerspec*)
95 function int timer_getoverrun (timer_t)
96 function int timer_settime (timer_t, int, const struct itimerspec*, struct itimerspec*)
97 function void tzset (void)
98
99 # if !defined POSIX && !defined POSIX2008
100 variable int daylight
101 variable {long int} timezone
102 # endif
103 variable {char*} tzname [2]
104
105 allow tm_*
106 allow clock_*
107 allow timer_*
108 allow it_*
109 allow tv_*
110 allow CLOCK_*
111 allow TIMER_*
112 allow *_t
113 allow sigevent
114 #endif