From 306336bcdaf886c10df9c1b46886d5f0cddcaa69 Mon Sep 17 00:00:00 2001 From: Georg Brandl Date: Sun, 24 Jun 2012 12:55:33 +0200 Subject: Closes #15161: add support for giving path as a fd for truncate() and pathconf(). --- Lib/os.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Lib/os.py') diff --git a/Lib/os.py b/Lib/os.py index 4a40cfed6b..f990627267 100644 --- a/Lib/os.py +++ b/Lib/os.py @@ -172,8 +172,10 @@ if _exists("_have_functions"): _add("HAVE_FDOPENDIR", "listdir") _add("HAVE_FEXECVE", "execve") _set.add(stat) # fstat always works + _add("HAVE_FTRUNCATE", "truncate") _add("HAVE_FUTIMENS", "utime") _add("HAVE_FUTIMES", "utime") + _add("HAVE_FPATHCONF", "pathconf") if _exists("statvfs") and _exists("fstatvfs"): # mac os x10.3 _add("HAVE_FSTATVFS", "statvfs") supports_fd = _set -- cgit v1.2.1