about summary refs log tree commit diff
path: root/compat/ftruncate.c
blob: e825e504521dcfe3ae2d34a8dea5b90a07caab3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Public domain
 *
 * Kinichiro Inoguchi <inoguchi@openbsd.org>
 */

#ifdef _WIN32

#include <unistd.h>

int
ftruncate(int fd, off_t length)
{
	return _chsize(fd, length);
}

#endif