Page MenuHomeFreeBSD

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

Authored by obiwac on Sep 9 2025, 12:09 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Aug 28, 1:34 PM
Unknown Object (File)
Aug 8 2026, 2:01 PM
Unknown Object (File)
Aug 6 2026, 11:57 PM
Unknown Object (File)
Aug 5 2026, 4:54 AM
Unknown Object (File)
Aug 4 2026, 2:19 AM
Unknown Object (File)
Jul 30 2026, 1:55 PM
Unknown Object (File)
Jul 26 2026, 4:57 PM
Unknown Object (File)
Jul 23 2026, 4:54 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.