Page MenuHomeFreeBSD

Use the BSD_TO_LINUX_SIGNAL() wherever there is no need to check the ABI as it is known.
ClosedPublic

Authored by dchagin on Nov 3 2014, 7:03 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Jan 7, 12:55 PM
Unknown Object (File)
Mon, Jan 6, 7:58 AM
Unknown Object (File)
Wed, Dec 18, 4:09 AM
Unknown Object (File)
Wed, Dec 18, 3:23 AM
Unknown Object (File)
Thu, Dec 12, 9:01 PM
Unknown Object (File)
Nov 14 2024, 3:53 AM
Unknown Object (File)
Nov 13 2024, 8:05 AM
Unknown Object (File)
Nov 11 2024, 5:52 PM
Subscribers

Diff Detail

Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

dchagin retitled this revision from to Use the BSD_TO_LINUX_SIGNAL() wherever there is no need to check the ABI as it is known..

More BSD_TO_LINUX..

Updating D1086: Use the BSD_TO_LINUX_SIGNAL() wherever there is no need

to check the ABI as it is known.

Where is BSD_TO_LINUX_SIGNAL() defined?

In D1086#5, @trasz wrote:

Where is BSD_TO_LINUX_SIGNAL() defined?

/compat/linux/linux_signal.h

sys/amd64/linux32/linux32_sysvec.c
347

Doesn't this macro miss check for sig > 0? If sig == 0, we end up dereferencing bsd_to_linux_signal[-1], right?

sys/amd64/linux32/linux32_sysvec.c
347

in this context sig is always valid

This revision was automatically updated to reflect the committed changes.