aboutsummaryrefslogtreecommitdiff
path: root/tls/compat
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2025-10-07 03:49:29 -0500
committerBrent Cook <busterb@gmail.com>2025-10-07 04:23:58 -0500
commit659e87fe1cf3348a4e9f1bacfe205316fefd8a51 (patch)
tree0bdf3c16aae53f30aceffc7848076f49ea84bdb4 /tls/compat
parent2f78b04fd75ae457f8a1297909dd3b6f612bd21f (diff)
downloadportable-659e87fe1cf3348a4e9f1bacfe205316fefd8a51.tar.gz
portable-659e87fe1cf3348a4e9f1bacfe205316fefd8a51.tar.bz2
portable-659e87fe1cf3348a4e9f1bacfe205316fefd8a51.zip
move ftruncate to common libcompat for tests
Diffstat (limited to 'tls/compat')
-rw-r--r--tls/compat/ftruncate.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/tls/compat/ftruncate.c b/tls/compat/ftruncate.c
deleted file mode 100644
index e825e50..0000000
--- a/tls/compat/ftruncate.c
+++ /dev/null
@@ -1,17 +0,0 @@
1/*
2 * Public domain
3 *
4 * Kinichiro Inoguchi <inoguchi@openbsd.org>
5 */
6
7#ifdef _WIN32
8
9#include <unistd.h>
10
11int
12ftruncate(int fd, off_t length)
13{
14 return _chsize(fd, length);
15}
16
17#endif