HomeFreeBSD

Share a single bsd-linux errno table across MD consumers

Description

Share a single bsd-linux errno table across MD consumers

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.

MFC after: 3 weeks
Sponsored by: Turing Robotic Industries Inc.
Differential Revision: https://reviews.freebsd.org/D14665

Details

Provenance
emasteAuthored on
Differential Revision
D14665: Share a single bsd_to_linux_errno table across MD consumers
Parents
rS331055: MFC r330681: Fix Bad file descriptor error.
Branches
Unknown
Tags
Unknown