Page MenuHomeFreeBSD

Get rid of sv_errtbl and SV_ABI_ERRNO()
ClosedPublic

Authored by trasz on Sep 10 2020, 10:35 AM.
Tags
None
Referenced Files
F166278512: D26388.id77063.diff
Wed, Aug 12, 4:20 PM
F166277221: D26388.id77058.diff
Wed, Aug 12, 4:12 PM
F166131394: D26388.diff
Tue, Aug 11, 10:58 PM
Unknown Object (File)
Tue, Aug 11, 7:00 PM
Unknown Object (File)
Tue, Aug 11, 6:06 PM
Unknown Object (File)
Mon, Aug 10, 5:49 AM
Unknown Object (File)
Mon, Aug 10, 5:42 AM
Unknown Object (File)
Sun, Aug 9, 4:52 PM

Details

Summary

Get rid of sv_errtbl and SV_ABI_ERRNO(). This builds
on https://reviews.freebsd.org/D26378.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 33576
Build 30828: arc lint + arc unit

Event Timeline

sys/compat/linux/linux_errno.c
23

This is ERESTART. I do not think it is reasonable return.

sys/sys/sysent.h
162

.. even if old code did that.

Be more strict on allowed values and don't return -1 (which would be ERESTART).

This revision is now accepted and ready to land.Sep 16 2020, 3:51 PM
This revision was automatically updated to reflect the committed changes.
arichardson added inline comments.
head/sys/compat/linux/linux_errno.c
14 ↗(On Diff #77126)

Isn't this name the wrong way around and should be linux_from_bsd_errno(int error) or freebsd_to_linux_errno?

trasz added inline comments.
head/sys/compat/linux/linux_errno.c
14 ↗(On Diff #77126)

Indeed - fixed in r367079.