elf/Makefile: Split and sort PIE tests
[glibc.git] / conform / data / time.h-data
blob9c1c19596e9e83771327db8fc98bffb59b2b9708
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 && !defined XPG4 && !defined XPG42
9 type {struct timespec}
11 element {struct timespec} time_t tv_sec
12 // Bug 16437: tv_nsec has wrong type.
13 xfail[x86_64-x32-linux]-element {struct timespec} long tv_nsec
14 #endif
16 type size_t
17 type clock_t
18 type time_t
20 type {struct tm}
22 element {struct tm} int tm_sec
23 element {struct tm} int tm_min
24 element {struct tm} int tm_hour
25 element {struct tm} int tm_mday
26 element {struct tm} int tm_mon
27 element {struct tm} int tm_year
28 element {struct tm} int tm_wday
29 element {struct tm} int tm_yday
30 element {struct tm} int tm_isdst
32 function clock_t clock (void)
33 function double difftime (time_t, time_t)
34 function time_t mktime (struct tm*)
35 function time_t time (time_t*)
36 function {char*} asctime (const struct tm*)
37 function {char*} ctime (const time_t*)
38 function {struct tm*} gmtime (const time_t*)
39 function {struct tm*} localtime (const time_t*)
40 function size_t strftime (char*, size_t, const char*, const struct tm*)
41 #if defined ISO11
42 function int timespec_get (struct timespec *, int)
43 #endif
45 #if !defined ISO && !defined ISO99 && !defined ISO11
46 # if !defined XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
47 symbol CLK_TCK
48 # endif
49 # if !defined XPG4 && !defined XPG42
50 #  if !defined POSIX && !defined UNIX98
51 constant CLOCK_PROCESS_CPUTIME_ID
52 constant CLOCK_THREAD_CPUTIME_ID
53 #  endif
55 type {struct itimerspec}
57 element {struct itimerspec} {struct timespec} it_interval
58 element {struct itimerspec} {struct timespec} it_value
60 constant CLOCK_REALTIME
61 constant TIMER_ABSTIME
62 #  if !defined POSIX && !defined UNIX98
63 constant CLOCK_MONOTONIC
64 #  endif
66 type clockid_t
67 type timer_t
68 # endif
70 # if defined XOPEN2K8 || defined POSIX2008
71 type pid_t
72 type locale_t
73 tag {struct sigevent}
74 # endif
76 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
77 variable int getdate_err
78 # endif
80 function {char*} asctime_r (const struct tm*, char*)
81 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
82 function int clock_getcpuclockid (pid_t, clockid_t*)
83 #endif
84 #if !defined XPG4 && !defined XPG42
85 function int clock_getres (clockid_t, struct timespec*)
86 function int clock_gettime (clockid_t, struct timespec*)
87 #endif
88 #if !defined POSIX && !defined XPG4 && !defined XPG42 && !defined UNIX98
89 function int clock_nanosleep (clockid_t, int, const struct timespec*, struct timespec*)
90 #endif
91 #if !defined XPG4 && !defined XPG42
92 function int clock_settime (clockid_t, const struct timespec*)
93 #endif
94 function {char*} ctime_r (const time_t*, char*)
95 # if !defined XPG4 && !defined POSIX && !defined POSIX2008
96 function {struct tm*} getdate (const char*)
97 # endif
98 function {struct tm*} gmtime_r (const time_t*, struct tm*)
99 function {struct tm*} localtime_r (const time_t*, struct tm*)
100 # if !defined XPG4 && !defined XPG42
101 function int nanosleep (const struct timespec*, struct timespec*)
102 # endif
103 # if defined XOPEN2K8 || defined POSIX2008
104 function size_t strftime_l (char*, size_t, const char*, const struct tm*, locale_t)
105 # endif
106 # if !defined POSIX && !defined POSIX2008
107 function {char*} strptime (const char*, const char*, struct tm*)
108 # endif
109 # if !defined XPG4 && !defined XPG42
110 function int timer_create (clockid_t, struct sigevent*, timer_t*)
111 function int timer_delete (timer_t)
112 function int timer_gettime (timer_t, struct itimerspec*)
113 function int timer_getoverrun (timer_t)
114 function int timer_settime (timer_t, int, const struct itimerspec*, struct itimerspec*)
115 # endif
116 function void tzset (void)
118 # if !defined POSIX && !defined POSIX2008
119 variable int daylight
120 variable {long int} timezone
121 # endif
122 variable {char*} tzname [2]
124 # ifndef POSIX
125 allow tm_*
126 # endif
127 allow clock_*
128 allow timer_*
129 allow it_*
130 allow tv_*
131 allow CLOCK_*
132 allow TIMER_*
133 allow *_t
134 allow sigevent
135 #endif