]> git.saurik.com Git - apple/xnu.git/blobdiff - libsyscall/custom/__lseek.s
xnu-4903.270.47.tar.gz
[apple/xnu.git] / libsyscall / custom / __lseek.s
index 909443b1711a7e4fdefde946c4ef7fe40d6136fb..7c7f41eb273434e66fb6cc67f5b08fdbae51fb1b 100644 (file)
 
 #include "SYS.h"
 
-#if defined(__ppc__) || defined(__ppc64__) || defined(__x86_64__)
+#if defined(__x86_64__)
 
-__SYSCALL(__lseek, lseek, 3)
+__SYSCALL(___lseek, lseek, 3)
 
 #elif defined(__i386__)
 
-__SYSCALL_INT(__lseek, lseek, 3)
+__SYSCALL_INT(___lseek, lseek, 3)
+
+#elif defined(__arm__)
+
+__SYSCALL(___lseek, lseek, 4)
+
+#elif defined(__arm64__)
+
+__SYSCALL(___lseek, lseek, 3)
 
 #else
 #error Unsupported architecture