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