musl/compat/time32
Rich Felker 246f1c8114 remove LFS64 symbol aliases; replace with dynamic linker remapping
originally the namespace-infringing "large file support" interfaces
were included as part of glibc-ABI-compat, with the intent that they
not be used for linking, since our off_t is and always has been
unconditionally 64-bit and since we usually do not aim to support
nonstandard interfaces when there is an equivalent standard interface.

unfortunately, having the symbols present and available for linking
caused configure scripts to detect them and attempt to use them
without declarations, producing all the expected ill effects that
entails.

as a result, commit 2dd8d5e1b8 was made
to prevent this, using macros to redirect the LFS64 names to the
standard names, conditional on _GNU_SOURCE or _LARGEFILE64_SOURCE.
however, this has turned out to be a source of further problems,
especially since g++ defines _GNU_SOURCE by default. in particular,
the presence of these names as macros breaks a lot of valid code.

this commit removes all the LFS64 symbols and replaces them with a
mechanism in the dynamic linker symbol lookup failure path to retry
with the spurious "64" removed from the symbol name. in the future,
if/when the rest of glibc-ABI-compat is moved out of libc, this can be
removed.
2022-10-19 14:01:31 -04:00
..
__xstat.c remove LFS64 symbol aliases; replace with dynamic linker remapping 2022-10-19 14:01:31 -04:00
adjtime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
adjtimex_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
aio_suspend_time32.c remove LFS64 symbol aliases; replace with dynamic linker remapping 2022-10-19 14:01:31 -04:00
clock_adjtime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
clock_getres_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
clock_gettime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
clock_nanosleep_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
clock_settime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
cnd_timedwait_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
ctime32_r.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
ctime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
difftime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
fstat_time32.c remove LFS64 symbol aliases; replace with dynamic linker remapping 2022-10-19 14:01:31 -04:00
fstatat_time32.c remove LFS64 symbol aliases; replace with dynamic linker remapping 2022-10-19 14:01:31 -04:00
ftime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
futimens_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
futimes_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
futimesat_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
getitimer_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
getrusage_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
gettimeofday_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
gmtime32_r.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
gmtime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
localtime32_r.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
localtime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
lstat_time32.c remove LFS64 symbol aliases; replace with dynamic linker remapping 2022-10-19 14:01:31 -04:00
lutimes_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
mktime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
mq_timedreceive_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
mq_timedsend_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
mtx_timedlock_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
nanosleep_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
ppoll_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
pselect_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
pthread_cond_timedwait_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
pthread_mutex_timedlock_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
pthread_rwlock_timedrdlock_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
pthread_rwlock_timedwrlock_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
pthread_timedjoin_np_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
recvmmsg_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
sched_rr_get_interval_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
select_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
sem_timedwait_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
semtimedop_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
setitimer_time32.c fix null pointer dereference in setitimer time32 compat shim 2019-12-08 10:35:04 -05:00
settimeofday_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
sigtimedwait_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
stat_time32.c remove LFS64 symbol aliases; replace with dynamic linker remapping 2022-10-19 14:01:31 -04:00
stime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
thrd_sleep_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
time32.h add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
time32gm.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
timer_gettime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
timer_settime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
timerfd_gettime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
timerfd_settime32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
timespec_get_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
utime_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
utimensat_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
utimes_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
wait3_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00
wait4_time32.c add time32 ABI compat shims, compat source tree 2019-11-02 18:30:56 -04:00