Page MenuHomeFreeBSD

syscallsubr.h: Header inclusions: Explicit <sys/types.h>, sort
ClosedPublic

Authored by olce on Dec 3 2024, 4:57 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 3, 8:05 AM
Unknown Object (File)
Sat, Dec 28, 8:59 AM
Unknown Object (File)
Fri, Dec 27, 11:03 AM
Unknown Object (File)
Thu, Dec 26, 11:54 AM
Unknown Object (File)
Mon, Dec 16, 7:55 PM
Unknown Object (File)
Dec 12 2024, 7:07 PM
Unknown Object (File)
Dec 5 2024, 11:41 PM
Subscribers

Details

Summary

<sys/types.h> is currently brought in by other headers but some of its
type definition are directly used in this header, so it should appear
explicitly. It is necessary as lots of prototypes in there use types it
defines (<sys/_types.h> wouldn't be enough).

Sort header inclusions as per style(9).

No functional change (intended).

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

olce requested review of this revision.Dec 3 2024, 4:57 PM

So if sys/_types.h won't suffice, I'd call out why in the commit message (this file makes no pretense of being namespace clean I think would be the reason.)

In D47881#1091936, @imp wrote:

So if sys/_types.h won't suffice, I'd call out why in the commit message (this file makes no pretense of being namespace clean I think would be the reason.)

Commit message amended.

This revision was not accepted when it landed; it landed in state Needs Review.Mon, Dec 16, 2:46 PM
This revision was automatically updated to reflect the committed changes.