amiga-tz/library/lib_map.c

85 lines
4.5 KiB
C

#include "lib_map.h"
#include "lib_macros.h"
#include "time_header.h"
void lib_tzset(void) { tzset(); }
timezone_t ASM lib_tzalloc(REG(a0, char const *name)) { return tzalloc(name); }
void ASM lib_tzfree(REG(a0,timezone_t tz)) { tzfree(tz); }
time_t ASM lib_time(REG(a0, time_t *tloc)) { return time(tloc); }
time_t ASM lib_mktime(REG(a0, struct tm *tmp)) { return mktime(tmp); }
time_t ASM lib_mktime_z(REG(a1, const timezone_t tz), REG(a0, struct tm *tmp)) { return mktime_z(tz, tmp); }
struct tm* ASM lib_localtime(REG(a0, const time_t *const timep)) { return localtime(timep); }
struct tm* ASM lib_localtime_r(REG(a0, const time_t *const timep), REG(a1, struct tm *tmp)) { return localtime_r(timep, tmp); }
struct tm* ASM lib_localtime_rz(
REG(a2, timezone_t tz),
REG(a0, const time_t *const timep),
REG(a1, struct tm *tmp)
) { return localtime_rz(tz, timep, tmp); }
struct tm* ASM lib_gmtime(REG(a0, const time_t *timep)) { return gmtime(timep); }
struct tm* ASM lib_gmtime_r(REG(a0, const time_t *timep), REG(a1, struct tm *tmp)) { return gmtime_r(timep, tmp); }
time_t ASM lib_timegm(REG(a0, struct tm *const tmp)) { return timegm(tmp); }
time_t ASM lib_timelocal(REG(a0, struct tm *const tmp)) { return timelocal(tmp); }
time_t ASM lib_timelocal_z(REG(a1, const timezone_t tz), REG(a0, struct tm *const tmp)) { return timelocal_z(tz, tmp); }
double ASM lib_difftime(REG(d1, const time_t time1), REG(d0, const time_t time0)) { return difftime(time1, time0); }
struct tm* ASM lib_offtime(REG(a0, const time_t *const timep), REG(d0, long offset)) { return offtime(timep, offset); }
struct tm* ASM lib_offtime_r(
REG(a0, const time_t *timep),
REG(d0, long offset),
REG(a1, struct tm *tmp)
) { return offtime_r(timep, offset, tmp); }
time_t ASM lib_timeoff(
REG(a0, struct tm *const tmp),
REG(d0, long offset)
) { return timeoff(tmp, offset); }
char* ASM lib_ctime(REG(a0, const time_t *const timep)) { return ctime(timep); }
char* ASM lib_ctime_r(REG(a0, const time_t *const timep), REG(a1, char *buf)) { return ctime_r(timep, buf); }
char* ASM lib_ctime_rz(
REG(a2, const timezone_t tz),
REG(a0, const time_t *const timep),
REG(a1, char *buf)
) { return ctime_rz(tz, timep, buf); }
char* ASM lib_asctime(REG(a0, const struct tm *timeptr)) { return asctime(timeptr); }
char* ASM lib_asctime_r(REG(a0,const struct tm *timeptr), REG(a1,char *buf)) { return asctime_r(timeptr, buf); }
size_t ASM lib_strftime(
REG(a0, char * const s),
REG(d0, size_t maxsize),
REG(a1, const char *const format),
REG(a2, const struct tm *const t)
) { return strftime(s, maxsize, format, t); }
size_t ASM lib_strftime_l(
REG(a0, char *s),
REG(d0, size_t maxsize),
REG(a1, char const *format),
REG(a2, const struct tm *const t),
REG(a3, locale_t locale)
) { return strftime_l(s, maxsize, format, t, locale); }
char* ASM lib_strptime(
REG(a0, const char *buf),
REG(a1, const char *fmt),
REG(a2, struct tm *tm)
) { return strptime(buf, fmt, tm); }
char* ASM lib_strptime_l(
REG(a0, const char *buf),
REG(a1, const char *fmt),
REG(a2, struct tm *tm),
REG(a3, locale_t locale)
) { return strptime_l(buf, fmt, tm, locale); }
time_t ASM lib_time2posix(REG(d0, time_t t)) { return time2posix(t); }
time_t ASM lib_time2posix_z(REG(a0, timezone_t tz), REG(d0, time_t t)) { return time2posix_z(tz, t); }
time_t ASM lib_posix2time(REG(d0, time_t t)) { return posix2time(t); }
time_t ASM lib_posix2time_z(REG(a0, timezone_t tz), REG(d0, time_t t)) { return posix2time_z(tz, t); }
int ASM lib_daylight_c(void) { return daylight_c(); }
long ASM lib_timezone_c(void) { return timezone_c(); }
long ASM lib_altzone_c(void) { return altzone_c(); }
char** ASM lib_tzname_c(void) { return tzname_c(); }
int ASM lib_getsystime(REG(a0, struct timeval *tv)) { return getsystime(tv); }
int ASM lib_setsystime(REG(a0, struct timeval *tv)) { return setsystime(tv); }
int ASM lib_gettimeofday(REG(a0, struct timeval *tv), REG(a1, const timezone_t tz)) { return gettimeofday(tv, tz); }
int ASM lib_settimeofday(REG(a0, const struct timeval *tv), REG(a1, const timezone_t tz)) { return settimeofday(tv, tz); }
int ASM lib_gmtoffset(REG(d0, time_t locale_time)) { return gmtoffset(locale_time); }
void lib_tzsetwall(void) { tzsetwall(); }
const char* ASM lib_tzgetlocation(void) { return tzgetlocation(); }
const char* ASM lib_tzgetname(REG(a0, const timezone_t tz), REG(d0, int isdst)) { return tzgetname(tz, isdst); }
void ASM lib_stou(REG(a0, char *s)) { return stou(s); }
void ASM lib_utos(REG(a0, char *s)) { return utos(s); }