diff options
| author | Georg Brandl <georg@python.org> | 2012-06-24 12:55:33 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2012-06-24 12:55:33 +0200 |
| commit | 306336bcdaf886c10df9c1b46886d5f0cddcaa69 (patch) | |
| tree | 2f866c5adddc259acf2fb27fe8fc5d589f9d5d7a /Lib/os.py | |
| parent | 8ccadaafe637d265a1e286e0261e3231ebcc678d (diff) | |
| download | cpython-git-306336bcdaf886c10df9c1b46886d5f0cddcaa69.tar.gz | |
Closes #15161: add support for giving path as a fd for truncate() and pathconf().
Diffstat (limited to 'Lib/os.py')
| -rw-r--r-- | Lib/os.py | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |
