truncate.c - vx32 - Local 9vx git repository for patches.
(HTM) git clone git://r-36.net/vx32
(DIR) Log
(DIR) Files
(DIR) Refs
---
truncate.c (145B)
---
1 #include <unistd.h>
2 #include "syscall.h"
3
4 int truncate(char *path, off_t length)
5 {
6 return syscall(VXSYSTRUNCATE, (int)path, length, 0, 0, 0);
7 }