summaryrefslogtreecommitdiff
path: root/lib/libc/unistd/truncate.c
blob: e318fd4c1f4e80f70815411527e738c1a2809cd6 (plain)
1
2
3
4
5
6
7
8
9
10



#include <syscall.h> // for __syscall_2, syscall
#include <unistd.h>  // for off_t, truncate

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