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()
- Alphabetic
- By Inheritance
- wait
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
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( ... ) @native()
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- 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.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
- def waitid(idtype: idtype_t, id: id_t, status: Ptr[CInt], options: CInt): CInt
- def waitpid(pid: pid_t, status: Ptr[CInt], options: CInt): pid_t