cmdline: add internal wrappers for character input
authorDmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Mon, 28 Sep 2020 21:50:48 +0000 (00:50 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 14 Oct 2020 22:39:10 +0000 (00:39 +0200)
commit9251cd97a6be9a7435a1c33cfbad10ab498fc884
tree9e6f7c6f2b7268b33cc49293796a2c7cb8c5e775
parent7b5f4e1d30eca55b0175a6d75e5edf0336379269
cmdline: add internal wrappers for character input

poll(3) is a purely Unix facility, so it cannot be directly used by
common code. read(2) is limited in device support outside of Unix.
Create wrapper functions and implement them for Unix.

Signed-off-by: Dmitry Kozlyuk <dmitry.kozliuk@gmail.com>
Acked-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_cmdline/cmdline.c
lib/librte_cmdline/cmdline_os_unix.c
lib/librte_cmdline/cmdline_private.h