Files
graphene/LibOS/shim/test/regression/syscall.c
Isaku Yamahata bdb8b9c36b [LibOS/regression] Add test for syscall instruction redirection
Add LibOS regression test which contains a raw syscall instruction to test
SIGILL handler hook logic (if SIGILL'ed instruction is a syscall, it is
redirected inside LibOS as if syscalldb() was called).
2019-06-18 16:41:41 -07:00

9 lines
198 B
C

#include <sys/syscall.h>
#include <sysdep-x86_64.h>
int main(int argc, char** argv) {
const char buf[] = "Hello world\n";
INLINE_SYSCALL(write, 3, 1, buf, sizeof(buf) - 1);
return 0;
}