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
F156546267: D1086.id2234.diff
Thu, May 14, 2:11 PM
F156521182: D1086.id5643.diff
Thu, May 14, 9:19 AM
Unknown Object (File)
Fri, May 8, 4:21 AM
Unknown Object (File)
Wed, May 6, 2:38 PM
Unknown Object (File)
Sun, May 3, 4:24 PM
Unknown Object (File)
Tue, Apr 28, 4:43 AM
Unknown Object (File)
Tue, Apr 28, 4:33 AM
Unknown Object (File)
Tue, Apr 21, 1:59 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.