Page MenuHomeFreeBSD

Share a single bsd_to_linux_errno table across MD consumers
ClosedPublic

Authored by emaste on Mar 12 2018, 12:59 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Apr 3, 1:03 PM
Unknown Object (File)
Wed, Apr 3, 12:59 PM
Unknown Object (File)
Dec 22 2023, 10:53 PM
Unknown Object (File)
Aug 4 2023, 1:12 PM
Unknown Object (File)
Aug 4 2023, 1:11 PM
Unknown Object (File)
Aug 4 2023, 1:07 PM
Unknown Object (File)
Aug 4 2023, 12:59 PM
Unknown Object (File)
Jul 9 2023, 10:49 PM
Subscribers

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

Lint
Lint Skipped
Unit
Tests Skipped

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.