Update test-gencat.sh and tst-langinfo.sh
[glibc.git] / conform / data / time.h-data
blob8ed2b4a68d381f7151f39a9e0207097b1309d69c
1 macro-constant NULL == 0
2 macro CLOCKS_PER_SEC {clock_t}
4 #ifdef ISO11
5 macro-int-constant TIME_UTC > 0
6 #endif
8 #if !defined ISO && !defined ISO99
9 type {struct timespec}
11 element {struct timespec} time_t tv_sec
12 element {struct timespec} long tv_nsec
13 #endif
15 type size_t
16 type clock_t
17 type time_t
19 type {struct tm}
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
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
44 #if !defined ISO && !defined ISO99 && !defined ISO11
45 # if !defined XOPEN21K && !defined XOPEN2K8 && !defined POSIX2008
46 symbol CLK_TCK
47 # endif
48 constant CLOCK_PROCESS_CPUTIME_ID
49 constant CLOCK_THREAD_CPUTIME_ID
51 type {struct itimerspec}
53 element {struct itimerspec} {struct timespec} it_interval
54 element {struct itimerspec} {struct timespec} it_value
56 constant CLOCK_REALTIME
57 constant TIMER_ABSTIME
58 constant CLOCK_MONOTONIC
60 type clockid_t
61 type timer_t
63 # if defined XOPEN2K8 || defined POSIX2008
64 type pid_t
65 type locale_t
66 tag {struct sigevent}
67 # endif
69 # if !defined POSIX && !defined POSIX2008
70 variable int getdate_err
71 # endif
73 function {char*} asctime_r (const struct tm*, char*)
74 #if !defined POSIX
75 function int clock_getcpuclockid (pid_t, clockid_t*)
76 #endif
77 function int clock_getres (clockid_t, struct timespec*)
78 function int clock_gettime (clockid_t, struct timespec*)
79 #if !defined POSIX
80 function int clock_nanosleep (clockid_t, int, const struct timespec*, struct timespec*)
81 #endif
82 function int clock_settime (clockid_t, const struct timespec*)
83 function {char*} ctime_r (const time_t*, char*)
84 # if !defined POSIX && !defined POSIX2008
85 function {struct tm*} getdate (const char*)
86 # endif
87 function {struct tm*} gmtime_r (const time_t*, struct tm*)
88 function {struct tm*} localtime_r (const time_t*, struct tm*)
89 function int nanosleep (const struct timespec*, struct timespec*)
90 # if defined XOPEN2K8 || defined POSIX2008
91 function size_t strftime_l (char*, size_t, const char*, const struct tm*, locale_t)
92 # endif
93 # if !defined POSIX && !defined POSIX2008
94 function {char*} strptime (const char*, const char*, struct tm*)
95 # endif
96 function int timer_create (clockid_t, struct sigevent*, timer_t*)
97 function int timer_delete (timer_t)
98 function int timer_gettime (timer_t, struct itimerspec*)
99 function int timer_getoverrun (timer_t)
100 function int timer_settime (timer_t, int, const struct itimerspec*, struct itimerspec*)
101 function void tzset (void)
103 # if !defined POSIX && !defined POSIX2008
104 variable int daylight
105 variable {long int} timezone
106 # endif
107 variable {char*} tzname [2]
109 allow tm_*
110 allow clock_*
111 allow timer_*
112 allow it_*
113 allow tv_*
114 allow CLOCK_*
115 allow TIMER_*
116 allow *_t
117 allow sigevent
118 #endif