summaryrefslogtreecommitdiffstats
path: root/newlib/libc/sys/sh/ftruncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/sys/sh/ftruncate.c')
-rw-r--r--newlib/libc/sys/sh/ftruncate.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/newlib/libc/sys/sh/ftruncate.c b/newlib/libc/sys/sh/ftruncate.c
new file mode 100644
index 000000000..660377bf3
--- /dev/null
+++ b/newlib/libc/sys/sh/ftruncate.c
@@ -0,0 +1,9 @@
+#include <_ansi.h>
+#include <sys/types.h>
+#include "sys/syscall.h"
+
+int
+ftruncate (int file, off_t length)
+{
+ return __trap34 (SYS_ftruncate, file, length, 0);
+}