From d379d4ce487a00675ddd066f6f131e689655d19b Mon Sep 17 00:00:00 2001 From: Shantanu <12621235+hauntsaninja@users.noreply.github.com> Date: Sat, 31 Oct 2020 18:36:34 -0700 Subject: [PATCH] posix: fix WIF* definitions (#4737) Co-authored-by: hauntsaninja <> --- stdlib/3/posix.pyi | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/stdlib/3/posix.pyi b/stdlib/3/posix.pyi index aaf9b8da8..e57fb0c52 100644 --- a/stdlib/3/posix.pyi +++ b/stdlib/3/posix.pyi @@ -1,6 +1,6 @@ import sys from os import stat_result as stat_result -from typing import Any, Dict, List, NamedTuple, Optional, overload +from typing import Dict, List, NamedTuple, Optional, overload if sys.version_info >= (3, 6): from builtins import _PathLike # See comment in builtins @@ -135,15 +135,19 @@ ST_WRITE: int TMP_MAX: int WCONTINUED: int -WCOREDUMP: int -WEXITSTATUS: int -WIFCONTINUED: int -WIFEXITED: int -WIFSIGNALED: int -WIFSTOPPED: int + +def WCOREDUMP(__status: int) -> bool: ... +def WEXITSTATUS(status: int) -> int: ... +def WIFCONTINUED(status: int) -> bool: ... +def WIFEXITED(status: int) -> bool: ... +def WIFSIGNALED(status: int) -> bool: ... +def WIFSTOPPED(status: int) -> bool: ... + WNOHANG: int -WSTOPSIG: int -WTERMSIG: int + +def WSTOPSIG(status: int) -> int: ... +def WTERMSIG(status: int) -> int: ... + WUNTRACED: int XATTR_CREATE: int