mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
95 lines
2.3 KiB
Python
95 lines
2.3 KiB
Python
"""Stub file for the 'signal' module."""
|
|
# This is an autogenerated file. It serves as a starting point
|
|
# for a more precise manual annotation of this module.
|
|
# Feel free to edit the source below, but remove this header when you do.
|
|
|
|
from typing import Any, List, Tuple, Dict, GenericType
|
|
|
|
ITIMER_PROF = ... # type: long
|
|
ITIMER_REAL = ... # type: long
|
|
ITIMER_VIRTUAL = ... # type: long
|
|
ItimerError = ... # type: object
|
|
NSIG = ... # type: long
|
|
SIGABRT = ... # type: long
|
|
SIGALRM = ... # type: long
|
|
SIGBUS = ... # type: long
|
|
SIGCHLD = ... # type: long
|
|
SIGCLD = ... # type: long
|
|
SIGCONT = ... # type: long
|
|
SIGFPE = ... # type: long
|
|
SIGHUP = ... # type: long
|
|
SIGILL = ... # type: long
|
|
SIGINT = ... # type: long
|
|
SIGIO = ... # type: long
|
|
SIGIOT = ... # type: long
|
|
SIGKILL = ... # type: long
|
|
SIGPIPE = ... # type: long
|
|
SIGPOLL = ... # type: long
|
|
SIGPROF = ... # type: long
|
|
SIGPWR = ... # type: long
|
|
SIGQUIT = ... # type: long
|
|
SIGRTMAX = ... # type: long
|
|
SIGRTMIN = ... # type: long
|
|
SIGSEGV = ... # type: long
|
|
SIGSTOP = ... # type: long
|
|
SIGSYS = ... # type: long
|
|
SIGTERM = ... # type: long
|
|
SIGTRAP = ... # type: long
|
|
SIGTSTP = ... # type: long
|
|
SIGTTIN = ... # type: long
|
|
SIGTTOU = ... # type: long
|
|
SIGURG = ... # type: long
|
|
SIGUSR1 = ... # type: long
|
|
SIGUSR2 = ... # type: long
|
|
SIGVTALRM = ... # type: long
|
|
SIGWINCH = ... # type: long
|
|
SIGXCPU = ... # type: long
|
|
SIGXFSZ = ... # type: long
|
|
SIG_DFL = ... # type: long
|
|
SIG_IGN = ... # type: long
|
|
|
|
def alarm(a: int) -> long: ...
|
|
|
|
def default_int_handler(*args, **kwargs) -> Any:
|
|
raise KeyboardInterrupt()
|
|
|
|
def getitimer(a: int) -> tuple: ...
|
|
|
|
def getsignal(a: int) -> None:
|
|
raise ValueError()
|
|
|
|
def pause() -> None: ...
|
|
|
|
def pthread_kill(a: int, b: int) -> None:
|
|
raise OSError()
|
|
|
|
def pthread_sigmask(a: int, b) -> Any:
|
|
raise OSError()
|
|
|
|
def set_wakeup_fd(a: int) -> long:
|
|
raise ValueError()
|
|
|
|
def setitimer(a: int, b: float, *args, **kwargs) -> tuple: ...
|
|
|
|
def siginterrupt(a: int, b: int) -> None:
|
|
raise OSError()
|
|
raise ValueError()
|
|
|
|
def signal(a: int, b) -> None:
|
|
raise OSError()
|
|
raise TypeError()
|
|
raise ValueError()
|
|
|
|
def sigpending() -> Any:
|
|
raise OSError()
|
|
|
|
def sigtimedwait(a, b) -> Any:
|
|
raise OSError()
|
|
raise ValueError()
|
|
|
|
def sigwait(a) -> long:
|
|
raise OSError()
|
|
|
|
def sigwaitinfo(a) -> tuple:
|
|
raise OSError()
|