Minor cleanups in libio/iofdopen.c
[glibc.git] / conform / data / time.h-data
blobddd9a074c8bf36fcdd0d7730c93e1552309585ec
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 XPG3 && !defined XPG4
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 XOPEN2K && !defined XOPEN2K8 && !defined POSIX2008
46 symbol CLK_TCK
47 # endif
48 # if !defined XPG3 && !defined XPG4
49 #  if !defined POSIX && !defined UNIX98
50 constant CLOCK_PROCESS_CPUTIME_ID
51 constant CLOCK_THREAD_CPUTIME_ID
52 #  endif
54 type {struct itimerspec}
56 element {struct itimerspec} {struct timespec} it_interval
57 element {struct itimerspec} {struct timespec} it_value
59 constant CLOCK_REALTIME
60 constant TIMER_ABSTIME
61 #  if !defined POSIX && !defined UNIX98
62 constant CLOCK_MONOTONIC
63 #  endif
65 type clockid_t
66 type timer_t
67 # endif
69 # if defined XOPEN2K8 || defined POSIX2008
70 type pid_t
71 type locale_t
72 tag {struct sigevent}
73 # endif
75 # if !defined POSIX && !defined POSIX2008
76 variable int getdate_err
77 # endif
79 function {char*} asctime_r (const struct tm*, char*)
80 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
81 function int clock_getcpuclockid (pid_t, clockid_t*)
82 #endif
83 #if !defined XPG3 && !defined XPG4
84 function int clock_getres (clockid_t, struct timespec*)
85 function int clock_gettime (clockid_t, struct timespec*)
86 #endif
87 #if !defined POSIX && !defined XPG3 && !defined XPG4 && !defined UNIX98
88 function int clock_nanosleep (clockid_t, int, const struct timespec*, struct timespec*)
89 #endif
90 #if !defined XPG3 && !defined XPG4
91 function int clock_settime (clockid_t, const struct timespec*)
92 #endif
93 function {char*} ctime_r (const time_t*, char*)
94 # if !defined POSIX && !defined POSIX2008
95 function {struct tm*} getdate (const char*)
96 # endif
97 function {struct tm*} gmtime_r (const time_t*, struct tm*)
98 function {struct tm*} localtime_r (const time_t*, struct tm*)
99 # if !defined XPG3 && !defined XPG4
100 function int nanosleep (const struct timespec*, struct timespec*)
101 # endif
102 # if defined XOPEN2K8 || defined POSIX2008
103 function size_t strftime_l (char*, size_t, const char*, const struct tm*, locale_t)
104 # endif
105 # if !defined POSIX && !defined POSIX2008
106 function {char*} strptime (const char*, const char*, struct tm*)
107 # endif
108 # if !defined XPG3 && !defined XPG4
109 function int timer_create (clockid_t, struct sigevent*, timer_t*)
110 function int timer_delete (timer_t)
111 function int timer_gettime (timer_t, struct itimerspec*)
112 function int timer_getoverrun (timer_t)
113 function int timer_settime (timer_t, int, const struct itimerspec*, struct itimerspec*)
114 # endif
115 function void tzset (void)
117 # if !defined POSIX && !defined POSIX2008
118 variable int daylight
119 variable {long int} timezone
120 # endif
121 variable {char*} tzname [2]
123 # ifndef POSIX
124 allow tm_*
125 # endif
126 allow clock_*
127 allow timer_*
128 allow it_*
129 allow tv_*
130 allow CLOCK_*
131 allow TIMER_*
132 allow *_t
133 allow sigevent
134 #endif