usr.sbin/kbdcontrol.c: Add backwards compatibility functions
authorStefan Eßer <se@FreeBSD.org>
Mon, 6 Feb 2023 22:56:44 +0000 (23:56 +0100)
committerStefan Eßer <se@FreeBSD.org>
Mon, 6 Feb 2023 22:56:44 +0000 (23:56 +0100)
commitb92f8e5c0dccd52ea194cabe835b7af0b5e91f09
tree44132e40d30e2456644d86cbc251b690987d4c78
parent4972fb9276389fb87a790b415b1161cff395884c
usr.sbin/kbdcontrol.c: Add backwards compatibility functions

This commit allows a kbdcontrol binary built with a version of kbio.h
that supports Unicode characters in dead key maps to load and display
keymaps including the dead key tables on a kernel built with a
previous version of kbio.h (that only supported 8 bit characters in
the dead key map).

This commit is meant as a temporary compatibility shim that will be
reverted when it can be assumed that all relevant systems have been
upgraded to a kernel that uses the updated kbio.h.

MFC after: 3 days
Differential Revision: https://reviews.freebsd.org/D38388
sys/sys/kbio.h
usr.sbin/kbdcontrol/kbdcontrol.c