summaryrefslogtreecommitdiff
path: root/src/unistd/truncate.c
blob: 3edacd12dd922f6c43ade722a7ed1e842ad787f6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#include <unistd.h>
#include "syscall.h"
#include "libc.h"

int truncate(const char *path, off_t length)
{
	return syscall(__NR_truncate, path, __SYSCALL_LL(length));
}

LFS64(truncate);