Object

scala.scalanative.posix.sys

wait

Related Doc: package sys

Permalink

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

Type Members

  1. type id_t = UInt

    Permalink
  2. type idtype_t = Int

    Permalink
  3. type pid_t = Int

    Permalink
  4. type siginfo_t = CStruct9[CInt, CInt, CInt, signal.pid_t, uid_t, Ptr[Byte], CInt, CLong, Ptr[signal.sigval]]

    Permalink
  5. type sigval = CArray[Byte, _8]

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. def P_ALL: CInt

    Permalink
    Annotations
    @name( "scalanative_c_p_all" )
  5. def P_PGID: CInt

    Permalink
    Annotations
    @name( "scalanative_c_p_pgid" )
  6. def P_PID: CInt

    Permalink
    Annotations
    @name( "scalanative_c_p_pid" )
  7. def WCONTINUED: CInt

    Permalink

    XSI

    XSI

    Annotations
    @name( "scalanative_c_wcontinued" )
  8. def WEXITED: CInt

    Permalink
    Annotations
    @name( "scalanative_c_wexited" )
  9. def WEXITSTATUS(wstatus: CInt): CInt

    Permalink
    Annotations
    @name( "scalanative_c_wexitstatus" )
  10. def WIFCONTINUED(wstatus: CInt): CInt

    Permalink

    XSI

    XSI

    Annotations
    @name( "scalanative_c_wifcontinued" )
  11. def WIFEXITED(wstatus: CInt): Boolean

    Permalink
    Annotations
    @name( "scalanative_c_wifexited" )
  12. def WIFSIGNALED(wstatus: CInt): Boolean

    Permalink
    Annotations
    @name( "scalanative_c_wifsignaled" )
  13. def WIFSTOPPED(wstatus: CInt): Boolean

    Permalink
    Annotations
    @name( "scalanative_c_wifstopped" )
  14. def WNOHANG: CInt

    Permalink
    Annotations
    @name( "scalanative_c_wnohang" )
  15. def WNOWAIT: CInt

    Permalink
    Annotations
    @name( "scalanative_c_wnowait" )
  16. def WSTOPPED: CInt

    Permalink
    Annotations
    @name( "scalanative_c_wstopped" )
  17. def WSTOPSIG(wstatus: CInt): Boolean

    Permalink
    Annotations
    @name( "scalanative_c_wstopsig" )
  18. def WTERMSIG(wstatus: CInt): CInt

    Permalink
    Annotations
    @name( "scalanative_c_wtermsig" )
  19. def WUNTRACED: CInt

    Permalink
    Annotations
    @name( "scalanative_c_wuntraced" )
  20. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  21. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  22. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  23. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  24. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  25. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  26. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  29. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  30. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  32. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  33. def wait(status: Ptr[CInt]): pid_t

    Permalink

    See declaration & usage note in class description.

  34. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. def waitid(idtype: idtype_t, id: id_t, status: Ptr[CInt], options: CInt): CInt

    Permalink
  38. def waitpid(pid: pid_t, status: Ptr[CInt], options: CInt): pid_t

    Permalink

Inherited from AnyRef

Inherited from Any

Ungrouped