1 /* ftruncate emulations for native Windows.
2 This file is in the public domain. */
14 # if HAVE_MSVC_INVALID_PARAMETER_HANDLER
15 # include "msvc-inval.h"
17 chsize_nothrow (int fd, long length)
23 result = chsize (fd, length);
34 # define chsize chsize_nothrow
38 ftruncate (int fd, off_t length)
40 return chsize (fd, length);