]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commit
Provide `syscall()` symbol
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Fri, 7 Feb 2020 13:26:38 +0000 (14:26 +0100)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Fri, 7 Feb 2020 15:33:25 +0000 (16:33 +0100)
commit672cc1187e2771b5e015d1ccf40c3f5305378f1a
tree25feeef47e5f6a4d0c72f42b7ac90c25e19730fa
parent793728f8d3bbdeadda1cf7cfe89b9974cf4fe100
Provide `syscall()` symbol

Provides the `syscall()` function symbol (some language runtimes  link
to the symbol directly). The function is calling `uk_syscall()` when
lib/syscall_shim is enabled. Otherwise, `syscall()` returns always
`-1` and sets `errno` to `ENOSYS`.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
Config.uk
Makefile.uk
include/sys/syscall.h
syscall.c [new file with mode: 0644]