nice: return EPERM instead of EACCES
[musl] / src / unistd / ftruncate.c
index f57ea12..b41be0f 100644 (file)
@@ -1,10 +1,9 @@
 #include <unistd.h>
 #include "syscall.h"
-#include "libc.h"
 
 int ftruncate(int fd, off_t length)
 {
-       return syscall(__NR_ftruncate, fd, __SYSCALL_LL(length));
+       return syscall(SYS_ftruncate, fd, __SYSCALL_LL_O(length));
 }
 
-LFS64(ftruncate);
+weak_alias(ftruncate, ftruncate64);