]> git.ipfire.org Git - thirdparty/libbsd.git/commit
Add explicit time32 and time64 support
authorGuillem Jover <guillem@hadrons.org>
Fri, 9 Feb 2024 03:32:12 +0000 (04:32 +0100)
committerGuillem Jover <guillem@hadrons.org>
Tue, 27 Feb 2024 04:47:50 +0000 (05:47 +0100)
commit32d18dcf47a8ac9f0e21b787bc154f8ca72dbdd8
treef24f71d47d25fd298f88cd57bdb78021951d9b0b
parent605614d6423083863c7c71bf53786bfec77bbf6a
Add explicit time32 and time64 support

Handle the three potential system scenarios:

 - system time_t is time64
 - system time_t is time32 and supports time64
 - system time_t is time32 and does not support time64

Add the explicit time32 and time64 functions when necessary and map
them accordingly for each of these cases.
configure.ac
include/Makefile.am
include/bsd/sys/cdefs.h
include/bsd/timeconv.h
m4/libbsd-large.m4 [new file with mode: 0644]
src/libbsd.map.in
src/timeconv.c
test/.gitignore
test/Makefile.am
test/timeconv32.c [new file with mode: 0644]
test/timeconv64.c [new file with mode: 0644]