mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 13:51:28 +00:00
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).
9 lines
198 B
C
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;
|
|
}
|