|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Minios-devel] [UNIKRAFT PATCH 0/3] lib/syscall_shim: Improvements towards musl integration
This patch series introduces 3 improvements/fixes to the way how
system calls can be implemented and registered to the system call
shim library:
1) Introduces low-level variants of UK_SYSCALL_DEFINE and
UK_SYSCALL_R_DEFINE that allow to implement own libc-style wrappers:
UK_LLSYSCALL_DEFINE, UK_LLSYSCALL_R_DEFINE. These variants are
needed whenever the signutare of libc-style wrappers does not match
with the underlying Linux system call signature.
2) Introduces an option to disable generating libc-style wrappers.
This is needed whenever a libC library is providing own wrappers
and bases its implementations to lib/syscall_shim (e.g., musl).
3) UK_SYSCALL_R_DEFINE and UK_LLSYSCALL_R_DEFINE do no longer set the
return type just to long. They use the user-given return type instead.
This is done for convenience reasons because it reduces
typecasting of return values on raw system call implementations.
Simon Kuenzer (3):
lib/syscall_shim: UK_LLSYSCALL_(R_)_DEFINE variants
lib/syscall_shim: Option to disable libc-style wrapper functions
lib/syscall_shim: `UK_(LL)SYSCALL_R_DEFINE()`: Use given return type
doc/guides/developers-app.rst | 55 +++++++++--
lib/syscall_shim/Config.uk | 6 ++
lib/syscall_shim/include/uk/syscall.h | 137 +++++++++++++++++++++-----
3 files changed, 163 insertions(+), 35 deletions(-)
--
2.20.1
_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |