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()
Linear Supertypes
libc.signal, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. signal
  2. signal
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type mcontext_t = Ptr[_]
  2. type pid_t = Int
  3. type pthread_attr_t = ULong
  4. type pthread_t = USize
  5. type sig_atomic_t = Int
  6. type sigaction = CStruct4[CFuncPtr1[CInt, Unit], sigset_t, CInt, CFuncPtr3[CInt, Ptr[siginfo_t], CVoidPtr, Unit]]
  7. type sigevent = CStruct5[CInt, CInt, Ptr[sigval], CFuncPtr1[Ptr[sigval], Unit], Ptr[pthread_attr_t]]
  8. type siginfo_t = CStruct9[CInt, CInt, CInt, pid_t, uid_t, CVoidPtr, CInt, CLong, Ptr[sigval]]
  9. type sigset_t = Ptr[_]
  10. type sigval = CArray[Byte, _8]
  11. type size_t = USize
  12. type stack_t = CStruct3[CVoidPtr, size_t, CInt]
  13. type timespec = CStruct2[time.time_t, CLong]
  14. type ucontext_t = CStruct4[CVoidPtr, sigset_t, Ptr[stack_t], mcontext_t]
  15. type uid_t = UInt

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. def BUS_ADRALN: CInt
    Annotations
    @name("scalanative_bus_adraln")
  5. def BUS_ADRERR: CInt
    Annotations
    @name("scalanative_bus_adrerr")
  6. def BUS_OBJERR: CInt
    Annotations
    @name("scalanative_bus_objerr")
  7. def CLD_CONTINUED: CInt
    Annotations
    @name("scalanative_cld_continued")
  8. def CLD_DUMPED: CInt
    Annotations
    @name("scalanative_cld_dumped")
  9. def CLD_EXITED: CInt
    Annotations
    @name("scalanative_cld_exited")
  10. def CLD_KILLED: CInt
    Annotations
    @name("scalanative_cld_killed")
  11. def CLD_STOPPED: CInt
    Annotations
    @name("scalanative_cld_stopped")
  12. def CLD_TRAPPED: CInt
    Annotations
    @name("scalanative_cld_trapped")
  13. def FPE_FLTDIV: CInt
    Annotations
    @name("scalanative_fpe_fltdiv")
  14. def FPE_FLTINV: CInt
    Annotations
    @name("scalanative_fpe_fltinv")
  15. def FPE_FLTOVF: CInt
    Annotations
    @name("scalanative_fpe_fltovf")
  16. def FPE_FLTRES: CInt
    Annotations
    @name("scalanative_fpe_fltres")
  17. def FPE_FLTSUB: CInt
    Annotations
    @name("scalanative_fpe_fltsub")
  18. def FPE_FLTUND: CInt
    Annotations
    @name("scalanative_fpe_fltund")
  19. def FPE_INTDIV: CInt
    Annotations
    @name("scalanative_fpe_intdiv")
  20. def FPE_INTOVF: CInt
    Annotations
    @name("scalanative_fpe_intovf")
  21. def ILL_BADSTK: CInt
    Annotations
    @name("scalanative_ill_badstk")
  22. def ILL_COPROC: CInt
    Annotations
    @name("scalanative_ill_coproc")
  23. def ILL_ILLADR: CInt
    Annotations
    @name("scalanative_ill_illadr")
  24. def ILL_ILLOPC: CInt
    Annotations
    @name("scalanative_ill_illopc")
  25. def ILL_ILLOPN: CInt
    Annotations
    @name("scalanative_ill_illopn")
  26. def ILL_ILLTRP: CInt
    Annotations
    @name("scalanative_ill_illtrp")
  27. def ILL_PRVOPC: CInt
    Annotations
    @name("scalanative_ill_prvopc")
  28. def ILL_PRVREG: CInt
    Annotations
    @name("scalanative_ill_prvreg")
  29. def MINSIGSTKSZ: CInt
    Annotations
    @name("scalanative_minsigstksz")
  30. def POLL_ERR: CInt
    Annotations
    @name("scalanative_poll_err")
  31. def POLL_HUP: CInt
    Annotations
    @name("scalanative_poll_hup")
  32. def POLL_IN: CInt
    Annotations
    @name("scalanative_poll_in")
  33. def POLL_MSG: CInt
    Annotations
    @name("scalanative_poll_msg")
  34. def POLL_OUT: CInt
    Annotations
    @name("scalanative_poll_out")
  35. def POLL_PRI: CInt
    Annotations
    @name("scalanative_poll_pri")
  36. def SA_NOCLDSTOP: CInt
    Annotations
    @name("scalanative_sa_nocldstop")
  37. def SA_NOCLDWAIT: CInt
    Annotations
    @name("scalanative_sa_nocldwait")
  38. def SA_NODEFER: CInt
    Annotations
    @name("scalanative_sa_nodefer")
  39. def SA_ONSTACK: CInt
    Annotations
    @name("scalanative_sa_onstack")
  40. def SA_RESETHAND: CInt
    Annotations
    @name("scalanative_sa_resethand")
  41. def SA_RESTART: CInt
    Annotations
    @name("scalanative_sa_restart")
  42. def SA_SIGINFO: CInt
    Annotations
    @name("scalanative_sa_siginfo")
  43. def SEGV_ACCERR: CInt
    Annotations
    @name("scalanative_segv_accerr")
  44. def SEGV_MAPERR: CInt
    Annotations
    @name("scalanative_segv_maperr")
  45. def SIGABRT: CInt
    Definition Classes
    signal
    Annotations
    @name("scalanative_sigabrt")
  46. def SIGALRM: CInt
    Annotations
    @name("scalanative_sigalrm")
  47. def SIGBUS: CInt
    Annotations
    @name("scalanative_sigbus")
  48. def SIGCHLD: CInt

    POSIX - "Child process terminated, stopped".

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

    Annotations
    @name("scalanative_sigchld")
  49. def SIGCONT: CInt
    Annotations
    @name("scalanative_sigcont")
  50. def SIGEV_NONE: CInt
    Annotations
    @name("scalanative_sigev_none")
  51. def SIGEV_SIGNAL: CInt
    Annotations
    @name("scalanative_sigev_signal")
  52. def SIGEV_THREAD: CInt
    Annotations
    @name("scalanative_sigev_thread")
  53. def SIGFPE: CInt
    Definition Classes
    signal
    Annotations
    @name("scalanative_sigfpe")
  54. def SIGHUP: CInt
    Annotations
    @name("scalanative_sighup")
  55. def SIGILL: CInt
    Definition Classes
    signal
    Annotations
    @name("scalanative_sigill")
  56. def SIGINT: CInt
    Definition Classes
    signal
    Annotations
    @name("scalanative_sigint")
  57. def SIGKILL: CInt
    Annotations
    @name("scalanative_sigkill")
  58. def SIGPIPE: CInt
    Annotations
    @name("scalanative_sigpipe")
  59. def SIGPROF: CInt

    Obsolete XSR

    Obsolete XSR

    Annotations
    @name("scalanative_sigprof")
  60. def SIGQUIT: CInt
    Annotations
    @name("scalanative_sigquit")
  61. def SIGSEGV: CInt
    Definition Classes
    signal
    Annotations
    @name("scalanative_sigsegv")
  62. def SIGSTKSZ: CInt
    Annotations
    @name("scalanative_sigstksz")
  63. def SIGSTOP: CInt
    Annotations
    @name("scalanative_sigstop")
  64. def SIGSYS: CInt

    XSI

    XSI

    Annotations
    @name("scalanative_sigsys")
  65. def SIGTERM: CInt
    Definition Classes
    signal
    Annotations
    @name("scalanative_sigterm")
  66. def SIGTRAP: CInt
    Annotations
    @name("scalanative_sigtrap")
  67. def SIGTSTP: CInt
    Annotations
    @name("scalanative_sigtstp")
  68. def SIGTTIN: CInt
    Annotations
    @name("scalanative_sigttin")
  69. def SIGTTOU: CInt
    Annotations
    @name("scalanative_sigttou")
  70. def SIGURG: CInt
    Annotations
    @name("scalanative_sigurg")
  71. def SIGUSR1: CInt
    Annotations
    @name("scalanative_sigusr1")
  72. def SIGUSR2: CInt
    Annotations
    @name("scalanative_sigusr2")
  73. def SIGVTALRM: CInt

    XSI

    XSI

    Annotations
    @name("scalanative_sigtalrm")
  74. def SIGXCPU: CInt
    Annotations
    @name("scalanative_sigxcpu")
  75. def SIGXFSZ: CInt
    Annotations
    @name("scalanative_sigxfsz")
  76. def SIG_BLOCK: CInt
    Annotations
    @name("scalanative_sig_block")
  77. def SIG_DFL: CFuncPtr1[CInt, Unit]
    Definition Classes
    signal
    Annotations
    @name("scalanative_sig_dfl")
  78. def SIG_ERR: CFuncPtr1[CInt, Unit]
    Definition Classes
    signal
    Annotations
    @name("scalanative_sig_err")
  79. def SIG_IGN: CFuncPtr1[CInt, Unit]
    Definition Classes
    signal
    Annotations
    @name("scalanative_sig_ign")
  80. def SIG_SETMASK: CInt
    Annotations
    @name("scalanative_sig_setmask")
  81. def SIG_UNBLOCK: CInt
    Annotations
    @name("scalanative_sig_unblock")
  82. def SI_ASYNCIO: CInt
    Annotations
    @name("scalanative_si_asyncio")
  83. def SI_MESGQ: CInt
    Annotations
    @name("scalanative_si_mesgq")
  84. def SI_QUEUE: CInt
    Annotations
    @name("scalanative_si_queue")
  85. def SI_TIMER: CInt
    Annotations
    @name("scalanative_si_timer")
  86. def SI_USER: CInt
    Annotations
    @name("scalanative_si_user")
  87. def SS_DISABLE: CInt
    Annotations
    @name("scalanative_ss_disable")
  88. def SS_ONSTACK: CInt
    Annotations
    @name("scalanative_ss_onstack")
  89. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  90. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  91. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  92. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  93. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  94. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  95. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  96. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  97. def kill(pid: pid_t, sig: CInt): CInt
  98. def killpg(pgrp: pid_t, sig: CInt): CInt
  99. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  100. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  101. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  102. def psiginfo(info: Ptr[siginfo_t], msg: CString): Unit
  103. def psignal(sig: CInt, msg: CString): Unit
  104. def pthread_kill(thread: pthread_t, sig: CInt): CInt
  105. def pthread_sigmask(how: CInt, set: Ptr[sigset_t], oset: Ptr[sigset_t]): CInt
  106. def raise(sig: CInt): CInt
    Definition Classes
    signal
  107. def sigaction(sig: CInt, act: Ptr[sigaction], oact: Ptr[sigaction]): CInt
  108. def sigaddset(set: Ptr[sigset_t], signo: CInt): CInt
  109. def sigaltstack(ss: Ptr[stack_t], oss: Ptr[stack_t]): CInt
  110. def sigdelset(set: Ptr[sigset_t], signo: CInt): CInt
  111. def sigemptyset(set: Ptr[sigset_t]): CInt
  112. def sigfillset(set: Ptr[sigset_t]): CInt
  113. def sighold(sig: CInt): CInt
  114. def sigignore(sig: CInt): CInt
  115. def siginterrupt(sig: CInt, flag: CInt): CInt
  116. def sigismember(set: Ptr[sigset_t], signo: CInt): CInt
  117. def signal(sig: CInt, handler: CFuncPtr1[CInt, Unit]): CFuncPtr1[CInt, Unit]
    Definition Classes
    signal
  118. def sigpause(sig: CInt): CInt
    Annotations
    @blocking()
  119. def sigpending(set: Ptr[sigset_t]): CInt
  120. def sigprocmask(how: CInt, set: Ptr[sigset_t], oset: Ptr[sigset_t]): CInt
  121. def sigqueue(pid: pid_t, signo: CInt, value: Ptr[sigval]): CInt
  122. def sigrelse(sig: CInt): CInt
  123. def sigset(sig: CInt, disp: CFuncPtr1[CInt, Unit]): CFuncPtr1[CInt, Unit]
  124. def sigsuspend(sigmask: Ptr[sigset_t]): CInt
    Annotations
    @blocking()
  125. def sigtimedwait(set: Ptr[sigset_t], info: Ptr[siginfo_t], timeout: Ptr[timespec]): CInt
    Annotations
    @blocking()
  126. def sigwait(set: Ptr[sigset_t], sig: Ptr[CInt]): CInt
    Annotations
    @blocking()
  127. def sigwaitinfo(set: Ptr[sigset_t], info: Ptr[siginfo_t]): CInt
    Annotations
    @blocking()
  128. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  129. def toString(): String
    Definition Classes
    AnyRef → Any
  130. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  131. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  132. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from libc.signal

Inherited from AnyRef

Inherited from Any

Ungrouped