commit | fdeee3a6cdadee0e32dcec9783b1aaa5e231bdf6 | [log] [tgz] |
---|---|---|
author | Thomas Heller <theller@ctypes.org> | Thu Jul 12 11:21:36 2007 +0000 |
committer | Thomas Heller <theller@ctypes.org> | Thu Jul 12 11:21:36 2007 +0000 |
tree | 21d39a6c3faf3c285cf9f80cc7afe4c29a1bebe6 | |
parent | af2be262af836eb1d8cb1a555d1640d5e0bfef86 [diff] |
Second part of sf# 1752225: On windows, emulate ftruncate with Win32 api functions. Code from fileobject.c, patch by Amaury Forgeot d'Arc. This patch also changes: The return value of the native ftruncate function is checked for '!= 0' instead of '< 0' as before. fileio_seekable returns bool now instead of an int.