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")
- Alphabetic
- By Inheritance
- wait
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- type id_t = UInt
- type idtype_t = Int
- type pid_t = Int
- type siginfo_t = CStruct9[CInt, CInt, CInt, signal.pid_t, signal.uid_t, CVoidPtr, CInt, CLong, Ptr[signal.sigval]]
- type sigval = CArray[Byte, _8]
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 P_ALL: CInt
- Annotations
- @name("scalanative_c_p_all")
- def P_PGID: CInt
- Annotations
- @name("scalanative_c_p_pgid")
- def P_PID: CInt
- Annotations
- @name("scalanative_c_p_pid")
- def WCONTINUED: CInt
XSI
XSI
- Annotations
- @name("scalanative_c_wcontinued")
- def WEXITED: CInt
- Annotations
- @name("scalanative_c_wexited")
- def WEXITSTATUS(wstatus: CInt): CInt
- Annotations
- @name("scalanative_c_wexitstatus")
- def WIFCONTINUED(wstatus: CInt): CInt
XSI
XSI
- Annotations
- @name("scalanative_c_wifcontinued")
- def WIFEXITED(wstatus: CInt): Boolean
- Annotations
- @name("scalanative_c_wifexited")
- def WIFSIGNALED(wstatus: CInt): Boolean
- Annotations
- @name("scalanative_c_wifsignaled")
- def WIFSTOPPED(wstatus: CInt): Boolean
- Annotations
- @name("scalanative_c_wifstopped")
- def WNOHANG: CInt
- Annotations
- @name("scalanative_c_wnohang")
- def WNOWAIT: CInt
- Annotations
- @name("scalanative_c_wnowait")
- def WSTOPPED: CInt
- Annotations
- @name("scalanative_c_wstopped")
- def WSTOPSIG(wstatus: CInt): Boolean
- Annotations
- @name("scalanative_c_wstopsig")
- def WTERMSIG(wstatus: CInt): CInt
- Annotations
- @name("scalanative_c_wtermsig")
- def WUNTRACED: CInt
- Annotations
- @name("scalanative_c_wuntraced")
- 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
- 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()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- def wait(status: Ptr[CInt]): pid_t
See declaration & usage note in class description.
See declaration & usage note in class description.
- Annotations
- @blocking()
- 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()
- def waitid(idtype: idtype_t, id: id_t, status: Ptr[CInt], options: CInt): CInt
- Annotations
- @blocking()
- def waitpid(pid: pid_t, status: Ptr[CInt], options: CInt): pid_t
- Annotations
- @blocking()