30 lines
1.3 KiB
Diff
30 lines
1.3 KiB
Diff
--- a/Source/Tests/LinuxSyscalls/x64/FD.cpp
|
|
+++ b/Source/Tests/LinuxSyscalls/x64/FD.cpp
|
|
@@ -56,10 +56,12 @@
|
|
SYSCALL_ERRNO();
|
|
});
|
|
|
|
+#if !defined(__ANDROID__) || __ANDROID_API__ >= 26
|
|
REGISTER_SYSCALL_IMPL_X64_PASS(futimesat, [](FEXCore::Core::CpuStateFrame *Frame, int dirfd, const char *pathname, const struct timeval times[2]) -> uint64_t {
|
|
uint64_t Result = ::futimesat(dirfd, pathname, times);
|
|
SYSCALL_ERRNO();
|
|
});
|
|
+#endif
|
|
|
|
REGISTER_SYSCALL_IMPL_X64_PASS(utimensat, [](FEXCore::Core::CpuStateFrame *Frame, int dirfd, const char *pathname, const struct timespec times[2], int flags) -> uint64_t {
|
|
uint64_t Result = ::syscall(SYSCALL_DEF(utimensat), dirfd, pathname, times, flags);
|
|
@@ -241,11 +243,13 @@
|
|
SYSCALL_ERRNO();
|
|
});
|
|
|
|
+#if !defined(__ANDROID__) || __ANDROID_API__ >= 26
|
|
REGISTER_SYSCALL_IMPL_X64_PASS(sync_file_range, [](FEXCore::Core::CpuStateFrame *Frame, int fd, off64_t offset, off64_t nbytes, unsigned int flags) -> uint64_t {
|
|
// Flags don't need remapped
|
|
uint64_t Result = ::sync_file_range(fd, offset, nbytes, flags);
|
|
SYSCALL_ERRNO();
|
|
});
|
|
+#endif
|
|
|
|
REGISTER_SYSCALL_IMPL_X64_PASS(fallocate, [](FEXCore::Core::CpuStateFrame *Frame, int fd, int mode, off_t offset, off_t len) -> uint64_t {
|
|
uint64_t Result = ::fallocate(fd, mode, offset, len);
|