mirror of
https://github.com/python/cpython.git
synced 2025-11-26 13:22:51 +00:00
Closes #15161: add support for giving path as a fd for truncate() and pathconf().
This commit is contained in:
parent
8ccadaafe6
commit
306336bcda
4 changed files with 76 additions and 22 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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue