diff options
Diffstat (limited to 'src/unistd/truncate.c')
-rw-r--r-- | src/unistd/truncate.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/unistd/truncate.c b/src/unistd/truncate.c new file mode 100644 index 0000000..077351e --- /dev/null +++ b/src/unistd/truncate.c @@ -0,0 +1,7 @@ +#include <unistd.h> +#include "syscall.h" + +int truncate(const char *path, off_t length) +{ + return syscall(SYS_truncate, path, __SYSCALL_LL_O(length)); +} |