]> xenbits.xensource.com Git - unikraft/libs/newlib.git/commitdiff
sys/syscalls.h: Provide SYS_<syscallname> macros
authorSimon Kuenzer <simon.kuenzer@neclab.eu>
Thu, 5 Mar 2020 14:00:26 +0000 (15:00 +0100)
committerFelipe Huici <felipe.huici@neclab.eu>
Mon, 9 Mar 2020 07:56:26 +0000 (08:56 +0100)
Besides having __NR_<syscallname> as names for system call number
definitions, we also provide SYS_<syscallname> variants.

Signed-off-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
Reviewed-by: Felipe Huici <felipe.huici@neclab.eu>
include/sys/syscall.h

index 18edd7e2d0167f10ab603ec8d023bb69c554ec71..3d3b17e72245312d7cde206984191cc5454c5df9 100644 (file)
@@ -38,7 +38,8 @@
 long syscall(long num, ...);
 
 #if CONFIG_LIBSYSCALL_SHIM
-/* Provide __NR_syscallname variants */
+/* Provide SYS_syscallname and __NR_syscallname variants */
+#include <uk/bits/syscall_nrs.h>
 #include <uk/bits/syscall_nrs2.h>
 #endif /* CONFIG_LIBSYSCALL_SHIM */