projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add tcgetwinsize and tcsetwinsize functions, move struct winsize
[musl]
/
src
/
unistd
/
truncate.c
diff --git
a/src/unistd/truncate.c
b/src/unistd/truncate.c
index
3edacd1
..
9729680
100644
(file)
--- a/
src/unistd/truncate.c
+++ b/
src/unistd/truncate.c
@@
-1,10
+1,9
@@
#include <unistd.h>
#include "syscall.h"
#include <unistd.h>
#include "syscall.h"
-#include "libc.h"
int truncate(const char *path, off_t length)
{
int truncate(const char *path, off_t length)
{
- return syscall(
__NR_truncate, path, __SYSCALL_LL
(length));
+ return syscall(
SYS_truncate, path, __SYSCALL_LL_O
(length));
}
}
-
LFS64(truncate
);
+
weak_alias(truncate, truncate64
);