input: use ro_anonymous_file to minimize duplication of keymap files
authorSebastian Wick <sebastian@sebastianwick.net>
Fri, 1 Nov 2019 01:38:45 +0000 (02:38 +0100)
committerSebastian Wick <sebastian@sebastianwick.net>
Mon, 4 Nov 2019 14:10:05 +0000 (15:10 +0100)
commitabec512883a03d4b9e7136fd7db1127c7d6317c9
treef63f222d8f54693e31707a3f23090403813e1ece
parentac1b92dfeae8b7e613fcd7486644a392498a639c
input: use ro_anonymous_file to minimize duplication of keymap files

Since version 7 clients must use MAP_PRIVATE to map the keymap fd so we
can use memfd_create in os_ro_anonymous_file_get_ref using
RO_ANONYMOUS_FILE_MAPMODE_PRIVATE, for older version we use
RO_ANONYMOUS_FILE_MAPMODE_SHARED to be compatibile with MAP_SHARED.

Signed-off-by: Sebastian Wick <sebastian@sebastianwick.net>
include/libweston/libweston.h
libweston/input.c