aboutsummaryrefslogtreecommitdiff
path: root/src/unistd/truncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/truncate.c')
-rw-r--r--src/unistd/truncate.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/unistd/truncate.c b/src/unistd/truncate.c
index 077351e1..8b7c6ffd 100644
--- a/src/unistd/truncate.c
+++ b/src/unistd/truncate.c
@@ -5,3 +5,11 @@ 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