Add POSIX_SPAWN_CLOSEFROM for 3.13 linux (#12386)

This commit is contained in:
Max Muoto
2024-07-20 22:59:46 -05:00
committed by GitHub
parent 63100c17fe
commit 5eaa400f2b
3 changed files with 2 additions and 2 deletions

View File

@@ -2,8 +2,6 @@
_stat.SF_SUPPORTED
_stat.SF_SYNTHETIC
mmap.MAP_NORESERVE
os.POSIX_SPAWN_CLOSEFROM
posix.POSIX_SPAWN_CLOSEFROM
posixpath.splitroot
readline.backend
stat.SF_SUPPORTED

View File

@@ -1168,6 +1168,7 @@ if sys.version_info >= (3, 13) and sys.platform == "linux":
TFD_TIMER_CANCEL_ON_SET: Final = 2
TFD_NONBLOCK: Final[int]
TFD_CLOEXEC: Final[int]
POSIX_SPAWN_CLOSEFROM: Final[int]
def timerfd_create(clockid: int, /, *, flags: int = 0) -> int: ...
def timerfd_settime(

View File

@@ -241,6 +241,7 @@ if sys.platform != "win32":
if sys.version_info >= (3, 13) and sys.platform == "linux":
from os import (
POSIX_SPAWN_CLOSEFROM as POSIX_SPAWN_CLOSEFROM,
TFD_CLOEXEC as TFD_CLOEXEC,
TFD_NONBLOCK as TFD_NONBLOCK,
TFD_TIMER_ABSTIME as TFD_TIMER_ABSTIME,