1 /* $NetBSD: compat_localtime.c,v 1.1.2.3 2008/11/10 02:22:33 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(gmtime_r
,_gmtime_r
)
20 __weak_alias(localtime_r
,_localtime_r
)
21 __weak_alias(offtime
,_offtime
)
22 __weak_alias(posix2time
,_posix2time
)
23 __weak_alias(time2posix
,_time2posix
)
24 __weak_alias(timegm
,_timegm
)
25 __weak_alias(timelocal
,_timelocal
)
26 __weak_alias(timeoff
,_timeoff
)
27 __weak_alias(tzset
,_tzset
)
28 __weak_alias(tzsetwall
,_tzsetwall
)
31 __warn_references(ctime_r
,
32 "warning: reference to compatibility ctime_r();"
33 " include <time.h> for correct reference")
34 __warn_references(gmtime_r
,
35 "warning: reference to compatibility gmtime_r();"
36 " include <time.h> for correct reference")
37 __warn_references(localtime_r
,
38 "warning: reference to compatibility localtime_r();"
39 " include <time.h> for correct reference")
40 __warn_references(offtime
,
41 "warning: reference to compatibility offtime();"
42 " include <time.h> for correct reference")
43 __warn_references(posix2time
,
44 "warning: reference to compatibility posix2time();"
45 " include <time.h> for correct reference")
46 __warn_references(time2posix
,
47 "warning: reference to compatibility time2posix();"
48 " include <time.h> for correct reference")
49 __warn_references(timegm
,
50 "warning: reference to compatibility timegm();"
51 " include <time.h> for correct reference")
52 __warn_references(timelocal
,
53 "warning: reference to compatibility timelocal();"
54 " include <time.h> for correct reference")
55 __warn_references(timeoff
,
56 "warning: reference to compatibility timeoff();"
57 " include <time.h> for correct reference")
58 __warn_references(tzset
,
59 "warning: reference to compatibility tzset();"
60 " include <time.h> for correct reference")
61 __warn_references(tzsetwall
,
62 "warning: reference to compatibility tzsetwall();"
63 " include <time.h> for correct reference")
65 #define timeval timeval50
66 #define timespec timespec50
67 #define time_t int32_t
69 #include "time/localtime.c"