aboutsummaryrefslogtreecommitdiff
path: root/src/unistd/truncate.c
blob: 8b7c6ffd2964c95acc2cde036e6318e733eb25f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <unistd.h>
#include "syscall.h"

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


#ifdef TEST
int
main(void) {
	return 0;
}
#endif