Page MenuHomeFreeBSD

kern_sig.c: Move SIG_FOREACH into signalvar.h
AcceptedPublic

Authored by jfree on Jun 28 2023, 7:42 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 31, 12:25 AM
Unknown Object (File)
Sun, Dec 28, 7:10 PM
Unknown Object (File)
Dec 19 2025, 8:59 PM
Unknown Object (File)
Nov 30 2025, 1:19 PM
Unknown Object (File)
Nov 27 2025, 9:35 PM
Unknown Object (File)
Nov 10 2025, 6:46 AM
Unknown Object (File)
Nov 5 2025, 3:43 PM
Unknown Object (File)
Nov 5 2025, 2:56 PM
Subscribers

Details

Reviewers
markj
Summary
Make the SIG_FOREACH macro accessible outside of kern_sig.c by moving
it into signalvar.h next to the other sigset_t macros.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

jfree requested review of this revision.Jun 28 2023, 7:42 PM
sys/sys/signalvar.h
154

Presumably you intend to use this elsewhere in the kernel, and not in userspace? If so, these definitions should go into the #ifdef _KERNEL block below: we don't want to inadvertently put new stuff in the userland-visible namespace.

sys/sys/signalvar.h
154

Hm. I was under the impression that everything in this file was stricly for the kernel because it includes the ksiginfo declaration and macros.

I'll move this one into an ifdef _KERNEL, though. Thanks for pointing that out.

jfree marked an inline comment as done.

Move SIG_FOREACH() into an #ifdef _KERNEL.

This revision is now accepted and ready to land.Jun 29 2023, 2:46 PM