mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Add POSIX_SPAWN_CLOSEFROM for 3.13 linux (#12386)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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(
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user