trait signal extends libc.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.
- Annotations
- @extern()
- Alphabetic
- By Inheritance
- signal
- signal
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type mcontext_t = Ptr[_]
- type pid_t = Int
- type pthread_attr_t = ULong
- type pthread_t = USize
- type sig_atomic_t = Int
- type sigaction = CStruct4[CFuncPtr1[CInt, Unit], sigset_t, CInt, CFuncPtr3[CInt, Ptr[siginfo_t], CVoidPtr, 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, CVoidPtr, CInt, CLong, Ptr[sigval]]
- type sigset_t = Ptr[_]
- type sigval = CArray[Byte, _8]
- type size_t = USize
- type stack_t = CStruct3[CVoidPtr, size_t, CInt]
- type timespec = CStruct2[time.time_t, CLong]
- type ucontext_t = CStruct4[CVoidPtr, sigset_t, Ptr[stack_t], mcontext_t]
- type uid_t = UInt
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def BUS_ADRALN: CInt
- Annotations
- @name("scalanative_bus_adraln")
- def BUS_ADRERR: CInt
- Annotations
- @name("scalanative_bus_adrerr")
- def BUS_OBJERR: CInt
- Annotations
- @name("scalanative_bus_objerr")
- def CLD_CONTINUED: CInt
- Annotations
- @name("scalanative_cld_continued")
- def CLD_DUMPED: CInt
- Annotations
- @name("scalanative_cld_dumped")
- def CLD_EXITED: CInt
- Annotations
- @name("scalanative_cld_exited")
- def CLD_KILLED: CInt
- Annotations
- @name("scalanative_cld_killed")
- def CLD_STOPPED: CInt
- Annotations
- @name("scalanative_cld_stopped")
- def CLD_TRAPPED: CInt
- Annotations
- @name("scalanative_cld_trapped")
- def FPE_FLTDIV: CInt
- Annotations
- @name("scalanative_fpe_fltdiv")
- def FPE_FLTINV: CInt
- Annotations
- @name("scalanative_fpe_fltinv")
- def FPE_FLTOVF: CInt
- Annotations
- @name("scalanative_fpe_fltovf")
- def FPE_FLTRES: CInt
- Annotations
- @name("scalanative_fpe_fltres")
- def FPE_FLTSUB: CInt
- Annotations
- @name("scalanative_fpe_fltsub")
- def FPE_FLTUND: CInt
- Annotations
- @name("scalanative_fpe_fltund")
- def FPE_INTDIV: CInt
- Annotations
- @name("scalanative_fpe_intdiv")
- def FPE_INTOVF: CInt
- Annotations
- @name("scalanative_fpe_intovf")
- def ILL_BADSTK: CInt
- Annotations
- @name("scalanative_ill_badstk")
- def ILL_COPROC: CInt
- Annotations
- @name("scalanative_ill_coproc")
- def ILL_ILLADR: CInt
- Annotations
- @name("scalanative_ill_illadr")
- def ILL_ILLOPC: CInt
- Annotations
- @name("scalanative_ill_illopc")
- def ILL_ILLOPN: CInt
- Annotations
- @name("scalanative_ill_illopn")
- def ILL_ILLTRP: CInt
- Annotations
- @name("scalanative_ill_illtrp")
- def ILL_PRVOPC: CInt
- Annotations
- @name("scalanative_ill_prvopc")
- def ILL_PRVREG: CInt
- Annotations
- @name("scalanative_ill_prvreg")
- def MINSIGSTKSZ: CInt
- Annotations
- @name("scalanative_minsigstksz")
- def POLL_ERR: CInt
- Annotations
- @name("scalanative_poll_err")
- def POLL_HUP: CInt
- Annotations
- @name("scalanative_poll_hup")
- def POLL_IN: CInt
- Annotations
- @name("scalanative_poll_in")
- def POLL_MSG: CInt
- Annotations
- @name("scalanative_poll_msg")
- def POLL_OUT: CInt
- Annotations
- @name("scalanative_poll_out")
- def POLL_PRI: CInt
- Annotations
- @name("scalanative_poll_pri")
- def SA_NOCLDSTOP: CInt
- Annotations
- @name("scalanative_sa_nocldstop")
- def SA_NOCLDWAIT: CInt
- Annotations
- @name("scalanative_sa_nocldwait")
- def SA_NODEFER: CInt
- Annotations
- @name("scalanative_sa_nodefer")
- def SA_ONSTACK: CInt
- Annotations
- @name("scalanative_sa_onstack")
- def SA_RESETHAND: CInt
- Annotations
- @name("scalanative_sa_resethand")
- def SA_RESTART: CInt
- Annotations
- @name("scalanative_sa_restart")
- def SA_SIGINFO: CInt
- Annotations
- @name("scalanative_sa_siginfo")
- def SEGV_ACCERR: CInt
- Annotations
- @name("scalanative_segv_accerr")
- def SEGV_MAPERR: CInt
- Annotations
- @name("scalanative_segv_maperr")
- def SIGABRT: CInt
- Definition Classes
- signal
- Annotations
- @name("scalanative_sigabrt")
- def SIGALRM: CInt
- Annotations
- @name("scalanative_sigalrm")
- def SIGBUS: CInt
- Annotations
- @name("scalanative_sigbus")
- def SIGCHLD: CInt
POSIX - "Child process terminated, stopped".
POSIX - "Child process terminated, stopped". XSI adds ""or continued."
- Annotations
- @name("scalanative_sigchld")
- def SIGCONT: CInt
- Annotations
- @name("scalanative_sigcont")
- def SIGEV_NONE: CInt
- Annotations
- @name("scalanative_sigev_none")
- def SIGEV_SIGNAL: CInt
- Annotations
- @name("scalanative_sigev_signal")
- def SIGEV_THREAD: CInt
- Annotations
- @name("scalanative_sigev_thread")
- def SIGFPE: CInt
- Definition Classes
- signal
- Annotations
- @name("scalanative_sigfpe")
- def SIGHUP: CInt
- Annotations
- @name("scalanative_sighup")
- def SIGILL: CInt
- Definition Classes
- signal
- Annotations
- @name("scalanative_sigill")
- def SIGINT: CInt
- Definition Classes
- signal
- Annotations
- @name("scalanative_sigint")
- def SIGKILL: CInt
- Annotations
- @name("scalanative_sigkill")
- def SIGPIPE: CInt
- Annotations
- @name("scalanative_sigpipe")
- def SIGPROF: CInt
Obsolete XSR
Obsolete XSR
- Annotations
- @name("scalanative_sigprof")
- def SIGQUIT: CInt
- Annotations
- @name("scalanative_sigquit")
- def SIGSEGV: CInt
- Definition Classes
- signal
- Annotations
- @name("scalanative_sigsegv")
- def SIGSTKSZ: CInt
- Annotations
- @name("scalanative_sigstksz")
- def SIGSTOP: CInt
- Annotations
- @name("scalanative_sigstop")
- def SIGSYS: CInt
XSI
XSI
- Annotations
- @name("scalanative_sigsys")
- def SIGTERM: CInt
- Definition Classes
- signal
- Annotations
- @name("scalanative_sigterm")
- def SIGTRAP: CInt
- Annotations
- @name("scalanative_sigtrap")
- def SIGTSTP: CInt
- Annotations
- @name("scalanative_sigtstp")
- def SIGTTIN: CInt
- Annotations
- @name("scalanative_sigttin")
- def SIGTTOU: CInt
- Annotations
- @name("scalanative_sigttou")
- def SIGURG: CInt
- Annotations
- @name("scalanative_sigurg")
- def SIGUSR1: CInt
- Annotations
- @name("scalanative_sigusr1")
- def SIGUSR2: CInt
- Annotations
- @name("scalanative_sigusr2")
- def SIGVTALRM: CInt
XSI
XSI
- Annotations
- @name("scalanative_sigtalrm")
- def SIGXCPU: CInt
- Annotations
- @name("scalanative_sigxcpu")
- def SIGXFSZ: CInt
- Annotations
- @name("scalanative_sigxfsz")
- def SIG_BLOCK: CInt
- Annotations
- @name("scalanative_sig_block")
- def SIG_DFL: CFuncPtr1[CInt, Unit]
- Definition Classes
- signal
- Annotations
- @name("scalanative_sig_dfl")
- def SIG_ERR: CFuncPtr1[CInt, Unit]
- Definition Classes
- signal
- Annotations
- @name("scalanative_sig_err")
- def SIG_IGN: CFuncPtr1[CInt, Unit]
- Definition Classes
- signal
- Annotations
- @name("scalanative_sig_ign")
- def SIG_SETMASK: CInt
- Annotations
- @name("scalanative_sig_setmask")
- def SIG_UNBLOCK: CInt
- Annotations
- @name("scalanative_sig_unblock")
- def SI_ASYNCIO: CInt
- Annotations
- @name("scalanative_si_asyncio")
- def SI_MESGQ: CInt
- Annotations
- @name("scalanative_si_mesgq")
- def SI_QUEUE: CInt
- Annotations
- @name("scalanative_si_queue")
- def SI_TIMER: CInt
- Annotations
- @name("scalanative_si_timer")
- def SI_USER: CInt
- Annotations
- @name("scalanative_si_user")
- def SS_DISABLE: CInt
- Annotations
- @name("scalanative_ss_disable")
- def SS_ONSTACK: CInt
- Annotations
- @name("scalanative_ss_onstack")
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def kill(pid: pid_t, sig: CInt): CInt
- def killpg(pgrp: pid_t, sig: CInt): CInt
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- 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 raise(sig: CInt): CInt
- Definition Classes
- signal
- 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 signal(sig: CInt, handler: CFuncPtr1[CInt, Unit]): CFuncPtr1[CInt, Unit]
- Definition Classes
- signal
- def sigpause(sig: CInt): CInt
- Annotations
- @blocking()
- 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
- Annotations
- @blocking()
- def sigtimedwait(set: Ptr[sigset_t], info: Ptr[siginfo_t], timeout: Ptr[timespec]): CInt
- Annotations
- @blocking()
- def sigwait(set: Ptr[sigset_t], sig: Ptr[CInt]): CInt
- Annotations
- @blocking()
- def sigwaitinfo(set: Ptr[sigset_t], info: Ptr[siginfo_t]): CInt
- Annotations
- @blocking()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()