File tree Expand file tree Collapse file tree 1 file changed +12
-13
lines changed
Source/Tools/LinuxEmulation/LinuxSyscalls/Syscalls Expand file tree Collapse file tree 1 file changed +12
-13
lines changed Original file line number Diff line number Diff line change @@ -6,32 +6,31 @@ tags: LinuxSyscalls|syscalls-shared
66*/
77
88#include " LinuxSyscalls/Syscalls.h"
9- #include " LinuxSyscalls/Types.h"
109#include " LinuxSyscalls/x64/Syscalls.h"
1110#include " LinuxSyscalls/x32/Syscalls.h"
1211
1312#include < FEXCore/IR/IR.h>
1413
1514#include < stddef.h>
1615#include < stdint.h>
17- #include < signal.h>
1816#include < sys/time.h>
19- #include < time.h>
2017#include < sys/syscall.h>
2118#include < unistd.h>
2219
2320namespace FEX ::HLE {
24- void RegisterTimer (FEX::HLE::SyscallHandler* Handler) {
25- using namespace FEXCore ::IR;
21+ auto alarm (FEXCore::Core::CpuStateFrame* Frame, unsigned int seconds) -> uint64_t {
22+ uint64_t Result = ::alarm (seconds);
23+ SYSCALL_ERRNO ();
24+ }
2625
27- REGISTER_SYSCALL_IMPL (alarm, []( FEXCore::Core::CpuStateFrame* Frame, unsigned int seconds ) -> uint64_t {
28- uint64_t Result = ::alarm (seconds );
29- SYSCALL_ERRNO ();
30- });
26+ auto pause ( FEXCore::Core::CpuStateFrame* Frame) -> uint64_t {
27+ uint64_t Result = ::pause ( );
28+ SYSCALL_ERRNO ();
29+ }
3130
32- REGISTER_SYSCALL_IMPL (pause, [](FEXCore::Core::CpuStateFrame* Frame) -> uint64_t {
33- uint64_t Result = :: pause () ;
34- SYSCALL_ERRNO ( );
35- } );
31+ void RegisterTimer (FEX::HLE::SyscallHandler* Handler) {
32+ using namespace FEXCore ::IR ;
33+ REGISTER_SYSCALL_IMPL (alarm, alarm );
34+ REGISTER_SYSCALL_IMPL (pause, pause );
3635}
3736} // namespace FEX::HLE
You can’t perform that action at this time.
0 commit comments