1 /* $NetBSD: compat_localtime.c,v 1.3 2011/02/21 22:07:44 christos Exp $ */
4 * Written by Jason R. Thorpe <thorpej@NetBSD.org>, October 21, 1997.
11 #define __LIBC12_SOURCE__
14 #include <compat/include/time.h>
15 #include <compat/sys/time.h>
18 __weak_alias(ctime_r
,_ctime_r
)
19 __weak_alias(ctime_rz
,_ctime_rz
)
20 __weak_alias(gmtime_r
,_gmtime_r
)
21 __weak_alias(localtime_r
,_localtime_r
)
22 __weak_alias(localtime_rz
,_localtime_rz
)
23 __weak_alias(mktime_z
,_mktime_z
)
24 __weak_alias(offtime
,_offtime
)
25 __weak_alias(posix2time
,_posix2time
)
26 __weak_alias(posix2time_z
,_posix2time_z
)
27 __weak_alias(time2posix
,_time2posix
)
28 __weak_alias(timegm
,_timegm
)
29 __weak_alias(timelocal
,_timelocal
)
30 __weak_alias(timeoff
,_timeoff
)
31 __weak_alias(tzset
,_tzset
)
32 __weak_alias(tzsetwall
,_tzsetwall
)
35 __warn_references(ctime_r
,
36 "warning: reference to compatibility ctime_r();"
37 " include <time.h> for correct reference")
38 __warn_references(ctime_rz
,
39 "warning: reference to compatibility ctime_rz();"
40 " include <time.h> for correct reference")
41 __warn_references(gmtime_r
,
42 "warning: reference to compatibility gmtime_r();"
43 " include <time.h> for correct reference")
44 __warn_references(localtime_r
,
45 "warning: reference to compatibility localtime_r();"
46 " include <time.h> for correct reference")
47 __warn_references(localtime_rz
,
48 "warning: reference to compatibility localtime_rz();"
49 " include <time.h> for correct reference")
50 __warn_references(mktime_z
,
51 "warning: reference to compatibility mktime_z();"
52 " include <time.h> for correct reference")
53 __warn_references(offtime
,
54 "warning: reference to compatibility offtime();"
55 " include <time.h> for correct reference")
56 __warn_references(posix2time
,
57 "warning: reference to compatibility posix2time();"
58 " include <time.h> for correct reference")
59 __warn_references(posix2time_z
,
60 "warning: reference to compatibility posix2time_z();"
61 " include <time.h> for correct reference")
62 __warn_references(time2posix
,
63 "warning: reference to compatibility time2posix();"
64 " include <time.h> for correct reference")
65 __warn_references(timegm
,
66 "warning: reference to compatibility timegm();"
67 " include <time.h> for correct reference")
68 __warn_references(timelocal
,
69 "warning: reference to compatibility timelocal();"
70 " include <time.h> for correct reference")
71 __warn_references(timeoff
,
72 "warning: reference to compatibility timeoff();"
73 " include <time.h> for correct reference")
74 __warn_references(tzset
,
75 "warning: reference to compatibility tzset();"
76 " include <time.h> for correct reference")
77 __warn_references(tzsetwall
,
78 "warning: reference to compatibility tzsetwall();"
79 " include <time.h> for correct reference")
81 #define timeval timeval50
82 #define timespec timespec50
83 #define time_t int32_t
85 #include "time/localtime.c"