aboutsummaryrefslogtreecommitdiff
path: root/tls/compat/ftruncate.c
diff options
context:
space:
mode:
Diffstat (limited to 'tls/compat/ftruncate.c')
-rw-r--r--tls/compat/ftruncate.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tls/compat/ftruncate.c b/tls/compat/ftruncate.c
new file mode 100644
index 0000000..e68e6d0
--- /dev/null
+++ b/tls/compat/ftruncate.c
@@ -0,0 +1,13 @@
1/*
2 * Public domain
3 *
4 * Kinichiro Inoguchi <inoguchi@openbsd.org>
5 */
6
7#include <unistd.h>
8
9int
10ftruncate(int fd, off_t length)
11{
12 return _chsize(fd, length);
13}