musl/src/unistd/truncate.c

11 lines
192 B
C
Raw Normal View History

2011-02-12 00:22:29 -05:00
#include <unistd.h>
#include "syscall.h"
#include "libc.h"
int truncate(const char *path, off_t length)
{
return syscall3(__NR_truncate, (long)path, SYSCALL_LL(length));
2011-02-12 00:22:29 -05:00
}
LFS64(truncate);