projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
dup3: don't set FD_CLOEXEC on failure on kernels without dup3 syscall
[musl]
/
src
/
unistd
/
ftruncate.c
diff --git
a/src/unistd/ftruncate.c
b/src/unistd/ftruncate.c
index
db5da84
..
54ff34b
100644
(file)
--- a/
src/unistd/ftruncate.c
+++ b/
src/unistd/ftruncate.c
@@
-1,10
+1,7
@@
#include <unistd.h>
#include "syscall.h"
-#include "libc.h"
int ftruncate(int fd, off_t length)
{
- return syscall
3(__NR_ftruncate, fd, SYSCALL_LL
(length));
+ return syscall
(SYS_ftruncate, fd, __SYSCALL_LL_O
(length));
}
-
-LFS64(ftruncate);