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)
Thu, Oct 9, 2:07 PM
Unknown Object (File)
Thu, Sep 18, 9:40 AM
Unknown Object (File)
Mon, Sep 15, 6:41 AM
Unknown Object (File)
Fri, Sep 12, 8:43 AM
Unknown Object (File)
Sep 1 2025, 9:25 AM
Unknown Object (File)
Sep 1 2025, 12:23 AM
Unknown Object (File)
Aug 18 2025, 6:20 AM
Unknown Object (File)
Aug 12 2025, 6:54 PM
Subscribers

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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 โ†—(On Diff #2316)

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 โ†—(On Diff #2316)

in this context sig is always valid

This revision was automatically updated to reflect the committed changes.