Page MenuHomeFreeBSD

Share a single bsd_to_linux_errno table across MD consumers
ClosedPublic

Authored by emaste on Mar 12 2018, 12:59 PM.

Details

Summary

Three copies of the linuxulator linux_sysvec.c contained identical BSD to Linux errno translation tables, and future work to support other architectures will also use the same table. Move the table to a common file to be used by all. Make it 'const int' to place it in .rodata.

(Some existing Linux architectures use MD errno values, but x86 and Arm share the generic set.)

This change should introduce no functional change; a followup will add missing errno values.

Sponsored by: Turing Robotic Industries Inc.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

This revision was not accepted when it landed; it landed in state Needs Review.Mar 16 2018, 2:46 PM
This revision was automatically updated to reflect the committed changes.