Page MenuHomeFreeBSD

sys/sysctl.h: Make self-contained
Changes PlannedPublic

Authored by obiwac on Sep 9 2025, 12:09 PM.
Tags
None
Referenced Files
F162716418: D52443.id161780.diff
Thu, Jul 16, 2:39 AM
Unknown Object (File)
Tue, Jul 7, 6:38 PM
Unknown Object (File)
Sun, Jul 5, 5:39 AM
Unknown Object (File)
Thu, Jul 2, 1:52 AM
Unknown Object (File)
Fri, Jun 19, 10:31 PM
Unknown Object (File)
May 30 2026, 6:05 AM
Unknown Object (File)
May 29 2026, 3:30 PM
Unknown Object (File)
May 26 2026, 11:05 PM
Subscribers

Details

Reviewers
markj

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 66918
Build 63801: arc lint + arc unit

Event Timeline

Actually this would need sys/types.h to be included because sysctl.h makes use of u_int and intmax_t. Is it okay to include this?

Actually this would need sys/types.h to be included because sysctl.h makes use of u_int and intmax_t. Is it okay to include this?

Ah, yeah. I think that's ok. Let's include types.h in the _KERNEL block and leave the !_KERNEL block alone then.

sys/sys/sysctl.h
44

why do wer need this?

sys/sys/sysctl.h
44

Presumably we don't, it's only needed in the !_KERNEL case for __BEGIN_DECLS.