signal

@extern
object signal

Some of the functionality described on this reference page extends the ISO C standard. Applications shall define the appropriate feature test macro (see XSH The Compilation Environment) to enable the visibility of these symbols in this header.

Use clib macros and functions to get the full POSIX interface

Note 1: The functionality described may be removed in a future version of this volume of POSIX.1-2017 Note 2: The functionality is an option marked as XSI (X/Open System Interfaces)

Note 1 or 2 followed by Linux or macOS means that the feature is not available on that platform with default compile options so the code is commented out. The code is commented out so the next developer that comes along will not have to rediscover these limitations.

class Object
trait Matchable
class Any
signal.type

Type members

Types

type mcontext_t = Ptr[Byte]
type pid_t = pid_t
type sig_atomic_t = CInt
type sigaction = CStruct4[CFuncPtr1[CInt, Unit], sigset_t, CInt, CFuncPtr3[CInt, Ptr[siginfo_t], Ptr[Byte], Unit]]
type sigevent = CStruct5[CInt, CInt, Ptr[sigval], CFuncPtr1[Ptr[sigval], Unit], Ptr[pthread_attr_t]]
type siginfo_t = CStruct9[CInt, CInt, CInt, pid_t, uid_t, Ptr[Byte], CInt, CLong, Ptr[sigval]]
type sigset_t = Ptr[Byte]
type sigval = CArray[Byte, _8]
type size_t = size_t
type stack_t = CStruct3[Ptr[Byte], size_t, CInt]
type ucontext_t = CStruct4[Ptr[Byte], sigset_t, Ptr[stack_t], mcontext_t]
type uid_t = uid_t

Value members

Concrete methods

@name("scalanative_bus_adraln")
def BUS_ADRALN: CInt
@name("scalanative_bus_adrerr")
def BUS_ADRERR: CInt
@name("scalanative_bus_objerr")
def BUS_OBJERR: CInt
@name("scalanative_cld_continued")
def CLD_CONTINUED: CInt
@name("scalanative_cld_dumped")
def CLD_DUMPED: CInt
@name("scalanative_cld_exited")
def CLD_EXITED: CInt
@name("scalanative_cld_killed")
def CLD_KILLED: CInt
@name("scalanative_cld_stopped")
def CLD_STOPPED: CInt
@name("scalanative_cld_trapped")
def CLD_TRAPPED: CInt
@name("scalanative_fpe_fltdiv")
def FPE_FLTDIV: CInt
@name("scalanative_fpe_fltinv")
def FPE_FLTINV: CInt
@name("scalanative_fpe_fltovf")
def FPE_FLTOVF: CInt
@name("scalanative_fpe_fltres")
def FPE_FLTRES: CInt
@name("scalanative_fpe_fltsub")
def FPE_FLTSUB: CInt
@name("scalanative_fpe_fltund")
def FPE_FLTUND: CInt
@name("scalanative_fpe_intdiv")
def FPE_INTDIV: CInt
@name("scalanative_fpe_intovf")
def FPE_INTOVF: CInt
@name("scalanative_ill_badstk")
def ILL_BADSTK: CInt
@name("scalanative_ill_coproc")
def ILL_COPROC: CInt
@name("scalanative_ill_illadr")
def ILL_ILLADR: CInt
@name("scalanative_ill_illopc")
def ILL_ILLOPC: CInt
@name("scalanative_ill_illopn")
def ILL_ILLOPN: CInt
@name("scalanative_ill_illtrp")
def ILL_ILLTRP: CInt
@name("scalanative_ill_prvopc")
def ILL_PRVOPC: CInt
@name("scalanative_ill_prvreg")
def ILL_PRVREG: CInt
@name("scalanative_minsigstksz")
def MINSIGSTKSZ: CInt
@name("scalanative_poll_err")
def POLL_ERR: CInt
@name("scalanative_poll_hup")
def POLL_HUP: CInt
@name("scalanative_poll_in")
def POLL_IN: CInt
@name("scalanative_poll_msg")
def POLL_MSG: CInt
@name("scalanative_poll_out")
def POLL_OUT: CInt
@name("scalanative_poll_pri")
def POLL_PRI: CInt
@name("scalanative_sa_nocldstop")
def SA_NOCLDSTOP: CInt
@name("scalanative_sa_nocldwait")
def SA_NOCLDWAIT: CInt
@name("scalanative_sa_nodefer")
def SA_NODEFER: CInt
@name("scalanative_sa_onstack")
def SA_ONSTACK: CInt
@name("scalanative_sa_resethand")
def SA_RESETHAND: CInt
@name("scalanative_sa_restart")
def SA_RESTART: CInt
@name("scalanative_sa_siginfo")
def SA_SIGINFO: CInt
@name("scalanative_segv_accerr")
def SEGV_ACCERR: CInt
@name("scalanative_segv_maperr")
def SEGV_MAPERR: CInt
@name("scalanative_sigabrt")
def SIGABRT: CInt
@name("scalanative_sigalrm")
def SIGALRM: CInt
@name("scalanative_sigbus")
def SIGBUS: CInt
@name("scalanative_sigchld")
def SIGCHLD: CInt

POSIX - "Child process terminated, stopped". XSI adds ""or continued."

POSIX - "Child process terminated, stopped". XSI adds ""or continued."

@name("scalanative_sigcont")
def SIGCONT: CInt
@name("scalanative_sigev_none")
def SIGEV_NONE: CInt
@name("scalanative_sigev_signal")
def SIGEV_SIGNAL: CInt
@name("scalanative_sigev_thread")
def SIGEV_THREAD: CInt
@name("scalanative_sigfpe")
def SIGFPE: CInt
@name("scalanative_sighup")
def SIGHUP: CInt
@name("scalanative_sigill")
def SIGILL: CInt
@name("scalanative_sigint")
def SIGINT: CInt
@name("scalanative_sigkill")
def SIGKILL: CInt
@name("scalanative_sigpipe")
def SIGPIPE: CInt
@name("scalanative_sigprof")
def SIGPROF: CInt

Obsolete XSR

Obsolete XSR

@name("scalanative_sigquit")
def SIGQUIT: CInt
@name("scalanative_sigsegv")
def SIGSEGV: CInt
@name("scalanative_sigstksz")
def SIGSTKSZ: CInt
@name("scalanative_sigstop")
def SIGSTOP: CInt
@name("scalanative_sigsys")
def SIGSYS: CInt

XSI

XSI

@name("scalanative_sigterm")
def SIGTERM: CInt
@name("scalanative_sigtrap")
def SIGTRAP: CInt
@name("scalanative_sigtstp")
def SIGTSTP: CInt
@name("scalanative_sigttin")
def SIGTTIN: CInt
@name("scalanative_sigttou")
def SIGTTOU: CInt
@name("scalanative_sigurg")
def SIGURG: CInt
@name("scalanative_sigusr1")
def SIGUSR1: CInt
@name("scalanative_sigusr2")
def SIGUSR2: CInt
@name("scalanative_sigtalrm")
def SIGVTALRM: CInt

XSI

XSI

@name("scalanative_sigxcpu")
def SIGXCPU: CInt
@name("scalanative_sigxfsz")
def SIGXFSZ: CInt
@name("scalanative_sig_block")
def SIG_BLOCK: CInt
@name("scalanative_sig_setmask")
def SIG_SETMASK: CInt
@name("scalanative_sig_unblock")
def SIG_UNBLOCK: CInt
@name("scalanative_si_asyncio")
def SI_ASYNCIO: CInt
@name("scalanative_si_mesgq")
def SI_MESGQ: CInt
@name("scalanative_si_queue")
def SI_QUEUE: CInt
@name("scalanative_si_timer")
def SI_TIMER: CInt
@name("scalanative_si_user")
def SI_USER: CInt
@name("scalanative_ss_disable")
def SS_DISABLE: CInt
@name("scalanative_ss_onstack")
def SS_ONSTACK: CInt
def kill(pid: pid_t, sig: CInt): CInt
def killpg(pgrp: pid_t, sig: CInt): CInt
def psiginfo(info: Ptr[siginfo_t], msg: CString): Unit
def psignal(sig: CInt, msg: CString): Unit
def pthread_kill(thread: pthread_t, sig: CInt): CInt
def pthread_sigmask(how: CInt, set: Ptr[sigset_t], oset: Ptr[sigset_t]): CInt
def sigaction(sig: CInt, act: Ptr[sigaction], oact: Ptr[sigaction]): CInt
def sigaddset(set: Ptr[sigset_t], signo: CInt): CInt
def sigaltstack(ss: Ptr[stack_t], oss: Ptr[stack_t]): CInt
def sigdelset(set: Ptr[sigset_t], signo: CInt): CInt
def sigemptyset(set: Ptr[sigset_t]): CInt
def sigfillset(set: Ptr[sigset_t]): CInt
def sighold(sig: CInt): CInt
def sigignore(sig: CInt): CInt
def siginterrupt(sig: CInt, flag: CInt): CInt
def sigismember(set: Ptr[sigset_t], signo: CInt): CInt
def sigpause(sig: CInt): CInt
def sigpending(set: Ptr[sigset_t]): CInt
def sigprocmask(how: CInt, set: Ptr[sigset_t], oset: Ptr[sigset_t]): CInt
def sigqueue(pid: pid_t, signo: CInt, value: Ptr[sigval]): CInt
def sigrelse(sig: CInt): CInt
def sigset(sig: CInt, disp: CFuncPtr1[CInt, Unit]): CFuncPtr1[CInt, Unit]
def sigsuspend(sigmask: Ptr[sigset_t]): CInt
def sigtimedwait(set: Ptr[sigset_t], info: Ptr[siginfo_t], timeout: Ptr[timespec]): CInt
def sigwait(set: Ptr[sigset_t], sig: Ptr[CInt]): CInt
def sigwaitinfo(set: Ptr[sigset_t], info: Ptr[siginfo_t]): CInt