#include "Tests/LinuxSyscalls/Syscalls.h" #include "Tests/LinuxSyscalls/x64/Syscalls.h" #include #include #include #include namespace FEX::HLE::x64 { void RegisterInfo() { REGISTER_SYSCALL_IMPL_X64(uname, [](FEXCore::Core::InternalThreadState *Thread, struct utsname *buf) -> uint64_t { strcpy(buf->sysname, "Linux"); strcpy(buf->nodename, "FEXCore"); strcpy(buf->release, "5.0.0"); strcpy(buf->version, "#" FEXCORE_VERSION); strcpy(buf->machine, "x86_64"); return 0; }); REGISTER_SYSCALL_IMPL_X64(sysinfo, [](FEXCore::Core::InternalThreadState *Thread, struct sysinfo *info) -> uint64_t { uint64_t Result = ::sysinfo(info); SYSCALL_ERRNO(); }); } }