Use internal libraries

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Moved old code into a separate directory

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Fix error message

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Use lkfile_t as base file structure

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
findfile: Do not use pathname[] inside

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
findfile: optimize maybe_pipe_open()

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
findfile: Use lkfile_t inside

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
findfile: Add pathname buffer to lkfile_t

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
Use lkfile_t in all utilities

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
findfile: do not use the functions that prints messages

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Do not output messages from the parser

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Remove error-free functions

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Reformat code for better readability

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Add lkverbose function

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Use lkerror() to output error messages

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Use the output stream as an argument

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Use lkerror only inside parser

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Do not call exit() the parser

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Use the local buffer for function key string entry

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>
loadkeys: Remove unused global variable private_error_ct

Signed-off-by: Alexey Gladkov <gladkov.alexey@gmail.com>