Page MenuHomeFreeBSD

getpagesizes(3): drop support for kernels before 9.0
ClosedPublic

Authored by brooks on Nov 22 2023, 1:08 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Feb 3, 6:32 PM
Unknown Object (File)
Sat, Jan 25, 10:08 AM
Unknown Object (File)
Jan 5 2025, 10:51 PM
Unknown Object (File)
Jan 2 2025, 2:30 AM
Unknown Object (File)
Nov 28 2024, 10:38 PM
Unknown Object (File)
Nov 18 2024, 5:56 PM
Unknown Object (File)
Nov 18 2024, 5:52 PM
Unknown Object (File)
Nov 18 2024, 4:22 PM
Subscribers
None

Details

Summary

AT_PAGESIZES and elf_aux_info where added prior to FreeBSD 9.0 in commit
ee235befcb8253fab9beea27b916f1bc46b33147. It's safe to say that a
FreeBSD 15 libc won't work on a 8.x kernel so drop sysctl fallback.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 54555
Build 51444: arc lint + arc unit

Event Timeline

brooks created this revision.
emaste added inline comments.
lib/libc/gen/getpagesizes.c
60–61

LGTM, but maybe drop error altogether and just if (_elf_aux_info(AT_PAGESIZES, ps, sizeof(ps) != 0)?

This revision is now accepted and ready to land.Nov 22 2023, 1:21 AM
  • Remove error variable
  • On error, fall back to PAGE_SIZE
This revision now requires review to proceed.Nov 22 2023, 8:31 PM
This revision is now accepted and ready to land.Nov 22 2023, 10:15 PM