Packages

object wait

POSIX wait.h for Scala

The Open Group Base Specifications Issue 7, 2018 edition.

A method with an XSI comment indicates it is defined in extended POSIX X/Open System Interfaces, not base POSIX.

Note well: It is neither expect nor obvious from the declaration that the wait() method of this class can conflict with Object.wait(Long). This makes declaration and usage more difficult.

The simplest approach is to avoid "wait(Ptr[CInt])" and use the directly equivalent idiom: // import scala.scalanative.posix.sys.wait.waitpid // or sys.wait._ // Replace Ptr[CInt] with your variable. val status = waitpid(-1, Ptr[CInt], 0)

If that approach is not available, one can try the following idiom: // import scalanative.posix.sys.{wait => Wait} // import scalanative.posix.sys.wait._ // for WIFEXITED etc. // Replace Ptr[CInt] with your variable. val status = Wait.wait(Ptr[CInt])

Annotations
@extern() @define("__SCALANATIVE_POSIX_SYS_WAIT")
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. wait
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type id_t = UInt
  2. type idtype_t = Int
  3. type pid_t = Int
  4. type siginfo_t = CStruct9[CInt, CInt, CInt, signal.pid_t, signal.uid_t, CVoidPtr, CInt, CLong, Ptr[signal.sigval]]
  5. type sigval = CArray[Byte, _8]

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 P_ALL: CInt
    Annotations
    @name("scalanative_c_p_all")
  5. def P_PGID: CInt
    Annotations
    @name("scalanative_c_p_pgid")
  6. def P_PID: CInt
    Annotations
    @name("scalanative_c_p_pid")
  7. def WCONTINUED: CInt

    XSI

    XSI

    Annotations
    @name("scalanative_c_wcontinued")
  8. def WEXITED: CInt
    Annotations
    @name("scalanative_c_wexited")
  9. def WEXITSTATUS(wstatus: CInt): CInt
    Annotations
    @name("scalanative_c_wexitstatus")
  10. def WIFCONTINUED(wstatus: CInt): CInt

    XSI

    XSI

    Annotations
    @name("scalanative_c_wifcontinued")
  11. def WIFEXITED(wstatus: CInt): Boolean
    Annotations
    @name("scalanative_c_wifexited")
  12. def WIFSIGNALED(wstatus: CInt): Boolean
    Annotations
    @name("scalanative_c_wifsignaled")
  13. def WIFSTOPPED(wstatus: CInt): Boolean
    Annotations
    @name("scalanative_c_wifstopped")
  14. def WNOHANG: CInt
    Annotations
    @name("scalanative_c_wnohang")
  15. def WNOWAIT: CInt
    Annotations
    @name("scalanative_c_wnowait")
  16. def WSTOPPED: CInt
    Annotations
    @name("scalanative_c_wstopped")
  17. def WSTOPSIG(wstatus: CInt): Boolean
    Annotations
    @name("scalanative_c_wstopsig")
  18. def WTERMSIG(wstatus: CInt): CInt
    Annotations
    @name("scalanative_c_wtermsig")
  19. def WUNTRACED: CInt
    Annotations
    @name("scalanative_c_wuntraced")
  20. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  21. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  22. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  25. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  26. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  27. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  29. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  30. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  32. def toString(): String
    Definition Classes
    AnyRef → Any
  33. def wait(status: Ptr[CInt]): pid_t

    See declaration & usage note in class description.

    See declaration & usage note in class description.

    Annotations
    @blocking()
  34. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  35. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  36. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  37. def waitid(idtype: idtype_t, id: id_t, status: Ptr[CInt], options: CInt): CInt
    Annotations
    @blocking()
  38. def waitpid(pid: pid_t, status: Ptr[CInt], options: CInt): pid_t
    Annotations
    @blocking()

Inherited from AnyRef

Inherited from Any

Ungrouped