blob: 972f3717808cc41230ecd7351449ec5b2864ba0a (
plain)
1
2
3
4
5
6
7
8
9
|
#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);
}
|