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
F102876387: D42707.id.diff
Mon, Nov 18, 8:00 AM
Unknown Object (File)
Wed, Nov 13, 1:25 PM
Unknown Object (File)
Oct 2 2024, 6:19 PM
Unknown Object (File)
Sep 30 2024, 4:13 PM
Unknown Object (File)
Sep 30 2024, 1:25 AM
Unknown Object (File)
Sep 22 2024, 1:21 AM
Unknown Object (File)
Sep 13 2024, 1:40 AM
Unknown Object (File)
Sep 13 2024, 1:40 AM
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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

brooks created this revision.
emaste added inline comments.
lib/libc/gen/getpagesizes.c
59–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