Page MenuHomeFreeBSD

libprocstat: improve conditional for 32-bit compat
ClosedPublic

Authored by brooks on Oct 13 2023, 6:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 12, 7:15 PM
Unknown Object (File)
Thu, Dec 11, 10:17 AM
Unknown Object (File)
Wed, Dec 10, 11:30 PM
Unknown Object (File)
Wed, Dec 10, 12:40 PM
Unknown Object (File)
Tue, Dec 2, 7:45 AM
Unknown Object (File)
Nov 25 2025, 4:21 AM
Unknown Object (File)
Nov 13 2025, 2:22 PM
Unknown Object (File)
Nov 5 2025, 8:46 AM
Subscribers

Details

Summary

Include support for translating 32-bit auxv vectors on non-64-bit
platforms that aren't riscv (which has no 32-bit ABI support).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I don't see a problem, but why bother hard-coding the platforms that lack 32-bit compat support?

I don't see a problem, but why bother hard-coding the platforms that lack 32-bit compat support?

In this case it's not a lack of 32-bit compat support so much as there will never be 32-bit support. Why compile code gated by an always false, dynamic check? I guess we might end up with an x32 interface if someone really needed the smaller pointer size, but I suspect that would have a different sv_name and this ifdef would be the least of a developer implementing x32's concerns.

This revision is now accepted and ready to land.Oct 13 2023, 7:22 PM