projects
/
gnulib.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ftruncate: Un-deprecate, concentrate on Win32 support.
[gnulib.git]
/
lib
/
ftruncate.c
1
/* ftruncate emulations for native Windows.
2
This file is in the public domain. */
3
4
#include <config.h>
5
6
/* Specification. */
7
#include <unistd.h>
8
9
#if HAVE_CHSIZE
10
11
# include <io.h>
12
13
int
14
ftruncate (int fd, off_t length)
15
{
16
return chsize (fd, length);
17
}
18
19
#endif