Thread (32 messages) flat view 32 messages, 7 authors, 2016-06-15

Re: [PATCH 14/17] Add ftruncate implementation for MSVC

From: Alex Riesen <hidden>
Date: 2016-06-15 22:47:24

On Mon, Sep 14, 2009 at 15:11, Marius Storm-Olsen [off-list ref] wrote:
+int ftruncate(int fd, __int64 length)
+{
+       HANDLE fh = (HANDLE)_get_osfhandle(fd);
+       if (!fh || _lseeki64(fd, length, SEEK_SET))
According to MSDN, error is manifested by returning INVALID_HANDLE_VALUE (–1):

http://msdn.microsoft.com/en-us/library/ks2530z6.aspx
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help