Page MenuHomeFreeBSD

kern: syscall_thread_enter() cannot fail
ClosedPublic

Authored by kevans on Thu, Jun 25, 4:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Jul 15, 1:09 PM
Unknown Object (File)
Wed, Jul 15, 7:27 AM
Unknown Object (File)
Wed, Jul 15, 7:27 AM
Unknown Object (File)
Wed, Jul 15, 5:43 AM
Unknown Object (File)
Fri, Jul 10, 12:58 AM
Unknown Object (File)
Tue, Jul 7, 5:52 PM
Unknown Object (File)
Tue, Jul 7, 7:50 AM
Unknown Object (File)
Mon, Jul 6, 11:58 PM
Subscribers

Details

Summary

Attempting to handle the error gracefully can easily result in missing
SIGSYS, so this was made to always succeed in
39024a89146 ("syscalls: fix missing SIGSYS for several ENOSYS errors")
and returns the nosys entry on failure.

Drop the pretense of returning an error and clean up a few dead error
paths.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 74259
Build 71142: arc lint + arc unit

Event Timeline

sys/kern/kern_sig.c
2743

I prefer the place for the saved errno to be called nerror still. It is even useful that error would disappear.

kevans marked an inline comment as done.

error back to nerror

This revision is now accepted and ready to land.Thu, Jun 25, 4:43 PM
This revision was automatically updated to reflect the committed changes.