]> granicus.if.org Git - python/commit
Second part of sf# 1752225: On windows, emulate ftruncate with Win32
authorThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 11:21:36 +0000 (11:21 +0000)
committerThomas Heller <theller@ctypes.org>
Thu, 12 Jul 2007 11:21:36 +0000 (11:21 +0000)
commitfdeee3a6cdadee0e32dcec9783b1aaa5e231bdf6
tree21d39a6c3faf3c285cf9f80cc7afe4c29a1bebe6
parentaf2be262af836eb1d8cb1a555d1640d5e0bfef86
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.
Modules/_fileio.c