]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r331056:
authordchagin <dchagin@FreeBSD.org>
Sun, 28 Apr 2019 13:33:35 +0000 (13:33 +0000)
committerdchagin <dchagin@FreeBSD.org>
Sun, 28 Apr 2019 13:33:35 +0000 (13:33 +0000)
commit4e108b7a31ae23038d2e0a3cd77055c1e9db8291
tree74478546c15d0c5db4e0555139bb98a86df60b6b
parent11353b065774cd1256f9c48e9d2f087e44244604
MFC r331056:
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 r331057:
linux_errno.c: add newer errno values

Also introduce a static assert to ensure the list is kept up to date.

MFC r331060:
Chase r331057 in libsysdecode erno table
lib/libsysdecode/errno.c
sys/amd64/linux/linux_sysvec.c
sys/amd64/linux32/linux32_sysvec.c
sys/compat/linux/linux_emul.h
sys/compat/linux/linux_errno.c [new file with mode: 0644]
sys/conf/files.amd64
sys/conf/files.i386
sys/i386/linux/linux_sysvec.c
sys/modules/linux/Makefile
sys/modules/linux_common/Makefile