Re: [ovs-dev] [PATCH] ovsdb-server: Truncate file for Windows.

2014-03-11 Thread Ben Pfaff
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 This implementation of ftruncate() does not return anything if _chsize_s() succeeds. (I

[ovs-dev] [PATCH] ovsdb-server: Truncate file for Windows.

2014-03-10 Thread Gurucharan Shetty
There is no ftruncate() in visual studio. There is a _chsize_s() which has a similar functionality. Signed-off-by: Gurucharan Shetty --- include/windows/windefs.h |1 + lib/util.c| 10 ++ lib/util.h|1 + 3 files changed, 12 insertions(+) diff --