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
F101319958: D1086.diff
Sun, Oct 27, 6:30 PM
Unknown Object (File)
Wed, Oct 23, 11:34 AM
Unknown Object (File)
Sep 22 2024, 10:56 AM
Unknown Object (File)
Sep 20 2024, 1:14 AM
Unknown Object (File)
Sep 19 2024, 11:47 AM
Unknown Object (File)
Sep 18 2024, 6:17 PM
Unknown Object (File)
Sep 14 2024, 8:29 PM
Unknown Object (File)
Sep 8 2024, 2:34 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
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.