ARC: LIB: MWDT: add stdout hooks, timespec header

ARC MWDT toolchain misses stdout hooks implementation and
itimerspec structure in timespec header. Let's add them in
arcmwdt compatibility layer.

The implementation was inspired by libc-hooks.c for NEWLIB.

Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
Evgeniy Paltsev 2021-06-04 00:03:23 +03:00 committed by Kumar Gala
commit a5788ff12d
5 changed files with 80 additions and 2 deletions

View file

@ -16,7 +16,7 @@
* that need to call into the kernel as system calls
*/
#ifdef CONFIG_NEWLIB_LIBC
#if defined(CONFIG_NEWLIB_LIBC) || defined(CONFIG_ARCMWDT_LIBC)
/* syscall generation ignores preprocessor, ensure this is defined to ensure
* we don't have compile errors