On Mon, Mar 10, 2014 at 10:56:35AM -0700, Gurucharan Shetty wrote: > There is no ftruncate() in visual studio. There is a _chsize_s() > which has a similar functionality. > > Signed-off-by: Gurucharan Shetty <gshetty at nicira.com> This implementation of ftruncate() does not return anything if _chsize_s() succeeds. (It should return 0.)