#include "Tests/LinuxSyscalls/Syscalls.h" #include "Tests/LinuxSyscalls/x64/Syscalls.h" #include "Tests/LinuxSyscalls/x32/Syscalls.h" #include #include #include #include #include #include #include #include namespace FEX::HLE { void RegisterTime() { REGISTER_SYSCALL_IMPL(pause, [](FEXCore::Core::InternalThreadState *Thread) -> uint64_t { uint64_t Result = ::pause(); SYSCALL_ERRNO(); }); REGISTER_SYSCALL_IMPL(time, [](FEXCore::Core::InternalThreadState *Thread, time_t *tloc) -> uint64_t { uint64_t Result = ::time(tloc); SYSCALL_ERRNO(); }); REGISTER_SYSCALL_IMPL(times, [](FEXCore::Core::InternalThreadState *Thread, struct tms *buf) -> uint64_t { uint64_t Result = ::times(buf); SYSCALL_ERRNO(); }); REGISTER_SYSCALL_IMPL(utime, [](FEXCore::Core::InternalThreadState *Thread, char* filename, const struct utimbuf* times) -> uint64_t { uint64_t Result = ::utime(filename, times); SYSCALL_ERRNO(); }); REGISTER_SYSCALL_IMPL(adjtimex, [](FEXCore::Core::InternalThreadState *Thread, struct timex *buf) -> uint64_t { uint64_t Result = ::adjtimex(buf); SYSCALL_ERRNO(); }); REGISTER_SYSCALL_IMPL(clock_adjtime, [](FEXCore::Core::InternalThreadState *Thread, clockid_t clk_id, struct timex *buf) -> uint64_t { uint64_t Result = ::clock_adjtime(clk_id, buf); SYSCALL_ERRNO(); }); } }