freebsd-src/usr.sbin/kbdcontrol
Stefan Eßer 1412836cbd kbdcontrol.c: make pre-Unicode compatibility conditional
Support for the full range of Unicode character codes has been added
to the main keymap back in 2009, with compatibility shims added in
2011 (to support an older kbdcontrol command on a new kernel during
an upgrade from FreeBSD-8 to FreeBSD-9).

Unicode support for accented characters that are reached via dead key
combinations has been added just recently, again with compatibility
shims to allow all combinations of old/new kernel and old/new
kbdcontrol command to load and display the keymaps including the dead
key table. (But full Unicode in the dead key table requires both a new
kernel and kbdcontrol command.)

This commit makes the compatibility shims depend on the respective
compatibility ioctls (OGIO_KEYMAP, OPIO_KEYMAP, OGIO_DEADKEYMAP, and
OPIO_DEADKEYMAP) being defined in sys/kbio.h. This is true for all of
them in 13-STABLE, none in 12-STABLE (as of now), and will become
optional due to a follow-up commit to sys/kbio.h in -CURRENT.

This commit is the only part of review D38465 that should be merged
back to 12-STABLE and 13-STABLE.

(cherry picked from commit b4eab621f2)
2023-04-10 23:31:24 +02:00
..
kbdcontrol.1
kbdcontrol.c kbdcontrol.c: make pre-Unicode compatibility conditional 2023-04-10 23:31:24 +02:00
kbdmap.5
lex.h various: general adoption of SPDX licensing ID tags. 2017-11-27 15:37:16 +00:00
lex.l Stop linking to libl by specifying we do not need yywrap 2019-09-10 07:26:38 +00:00
Makefile Stop linking to libl by specifying we do not need yywrap 2019-09-10 07:26:38 +00:00
Makefile.depend DIRDEPS_BUILD: Update dependencies. 2017-10-31 00:07:04 +00:00
path.h