Page MenuHomeFreeBSD

Expand #ifdefs in namei.
AbandonedPublic

Authored by trasz on Jul 8 2017, 8:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 1 2024, 12:43 AM
Unknown Object (File)
Oct 26 2023, 7:01 PM
Unknown Object (File)
Jul 14 2023, 1:48 AM
Unknown Object (File)
Jul 4 2023, 8:17 AM
Unknown Object (File)
Jan 2 2023, 1:56 PM
Subscribers

Details

Reviewers
kib
Summary

This patch moves more of the stuff in <sys/namei.h> under _KERNEL.
It's pretty trivial, but you never know what might depend on it,
so I'd better ask.

It (obviously) passes tinderbox. The reason for even touching this
is that in CheriBSD we have some __capability annotations there,
and it breaks the build for some non-capability-enabled userspace
thingies, namely vmstat(1).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 10401
Build 10812: arc lint + arc unit

Event Timeline

trasz edited the summary of this revision. (Show Details)
sys/sys/namei.h
212

This declaration seems to be useless (or harmful) for userspace as well.

That said, the change have high chance of breaking lsof, but I think that this is not important.