Repository navigation
Conversation
The __sendmsg64 EINTR wrapper was guarded on __USE_TIME_BITS64, which glibc 2.40 also defines on 64-bit targets, where libc has no __sendmsg64. Guard it on the condition glibc uses for its sendmsg redirect instead.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Up to standards ✅🟢 Issues
|
Problem
test_udsno longer links on 64-bit glibc 2.40 and later (and 2.39 builds with the stable-branch backport):undefined reference to '__sendmsg64'.The
__sendmsg64EINTR wrapper in the test fixture was guarded on__USE_TIME_BITS64, which glibc now also defines on 64-bit targets, where libc has no__sendmsg64.Since the Linux CI runners moved to Ubuntu 26.04, this fails the Runtime Safety, CodeQL (C/C++ POSIX) and Codacy Coverage jobs on
main; the same failure blocks #19.Change
defined(__GLIBC__) && defined(__USE_TIME_BITS64) && __TIMESIZE == 32, the condition glibc itself uses to redirectsendmsgto__sendmsg64; it also works with headers older than glibc's__USE_TIME64_REDIRECTSmacro.Compatibility
__sendmsg64.time_talready omitted it and are unchanged.time_tbuilt with_TIME_BITS=64still compile it and still intercept the redirected call.Testing
test_udsfailed to link before; it links and passes after, and CTest passes 32/32._FILE_OFFSET_BITS=64 _TIME_BITS=64: the library references__sendmsg64, the wrapper intercepts it, the EINTR injection checks pass, and CTest passes 14/14.time_t: CTest passes 14/14.Summary by cubic
Fixes the
test_udslink failure on 64-bit glibc 2.40+, where the__sendmsg64EINTR wrapper was built even though libc exports no such symbol.__USE_TIME_BITS64, which glibc 2.40+ also sets on 64-bit targets; the guard now matches glibc's own redirect condition (__TIMESIZE == 32)._TIME_BITS=64builds still intercept the redirected call.Written for commit bfd4f66. Summary will update on new commits.
Summary by CodeRabbit