object stdlib extends stdlib
POSIX stdlib.h for Scala
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.
Extension to the ISO C standard: The functionality described is an extension to the ISO C standard. Application developers may make use of an extension as it is supported on all POSIX.1-2017-conforming systems.
All the methods declared in this file and not libc.stdlib are Open Group extensions to the ISO/IEC C standard.
A method with an XSI comment indicates it is defined in extended POSIX X/Open System Interfaces, not base POSIX.
A method with an ADV comment indicates it Open Group 2018 "Advisory Information" meaning, from the specification: "The functionality described is optional. The functionality described is also an extension to the ISO C standard."
- Annotations
- @extern()
- Alphabetic
- By Inheritance
- stdlib
- stdlib
- stdlib
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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 EXIT_FAILURE: CInt
- Definition Classes
- stdlib
- Annotations
- @name("scalanative_exit_failure")
- def EXIT_SUCCESS: CInt
- Definition Classes
- stdlib
- Annotations
- @name("scalanative_exit_success")
- def RAND_MAX: CInt
- Definition Classes
- stdlib
- Annotations
- @name("scalanative_rand_max")
- def _Exit(exitCode: CInt): Unit
- Definition Classes
- stdlib
- def a64l(str64: CString): CLong
XSI
XSI
- Definition Classes
- stdlib
- def abort(): Unit
- Definition Classes
- stdlib
- def aligned_alloc(alignment: Long, size: Long): Unit
- Definition Classes
- stdlib
- def aligned_alloc(alignment: Int, size: Int): Unit
- Definition Classes
- stdlib
- def aligned_alloc(alignment: CSize, size: CSize): Unit
- Definition Classes
- stdlib
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def at_quick_exit(func: CFuncPtr0[Unit]): CInt
- Definition Classes
- stdlib
- def atexit(func: CFuncPtr0[Unit]): CInt
- Definition Classes
- stdlib
- def atof(str: CString): CDouble
- Definition Classes
- stdlib
- def atoi(str: CString): CInt
- Definition Classes
- stdlib
- def atol(str: CString): CLong
- Definition Classes
- stdlib
- def atoll(str: CString): CLongLong
- Definition Classes
- stdlib
- def bsearch(key: CVoidPtr, data: CVoidPtr, num: Int, size: Int, comparator: CFuncPtr2[CVoidPtr, CVoidPtr, CInt]): Unit
- Definition Classes
- stdlib
- def bsearch(key: CVoidPtr, data: CVoidPtr, num: CSize, size: CSize, comparator: CFuncPtr2[CVoidPtr, CVoidPtr, CInt]): Unit
- Definition Classes
- stdlib
- def calloc(num: Long, size: Long): Ptr[Byte]
- Definition Classes
- stdlib
- def calloc(num: Int, size: Int): Ptr[Byte]
- Definition Classes
- stdlib
- def calloc(num: CSize, size: CSize): Ptr[Byte]
- Definition Classes
- stdlib
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def drand48(): Double
XSI
XSI
- Definition Classes
- stdlib
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def erand48(xsubi: Ptr[CUnsignedShort]): Double
XSI
XSI
- Definition Classes
- stdlib
- def exit(exitCode: CInt): Unit
- Definition Classes
- stdlib
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- def free(ptr: CVoidPtr): Unit
- Definition Classes
- stdlib
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getenv(name: CString): CString
- Definition Classes
- stdlib
- def getsubopt(optionp: Ptr[CString], tokens: Ptr[CString], valuep: Ptr[CString]): CInt
- Definition Classes
- stdlib
- def grantpt(fd: CInt): CInt
XSI
XSI
- Definition Classes
- stdlib
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def initstate(seed: CUnsignedInt, state: Ptr[CChar], size: size_t): Ptr[CChar]
XSI
XSI
- Definition Classes
- stdlib
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def jrand48(xsubi: Ptr[CUnsignedShort]): CLong
XSI
XSI
- Definition Classes
- stdlib
- def l64a(value: CLong): CString
XSI
XSI
- Definition Classes
- stdlib
- def lcong48(param: Ptr[CUnsignedShort]): Unit
XSI
XSI
- Definition Classes
- stdlib
- def lrand48(): CLong
XSI
XSI
- Definition Classes
- stdlib
- def malloc(size: Long): Ptr[Byte]
- Definition Classes
- stdlib
- def malloc(size: Int): Ptr[Byte]
- Definition Classes
- stdlib
- def malloc(size: CSize): Ptr[Byte]
- Definition Classes
- stdlib
- def mkdtemp(template: CString): CString
- Definition Classes
- stdlib
- def mkstemp(template: CString): CInt
- Definition Classes
- stdlib
- def mrand48(): CLong
XSI
XSI
- Definition Classes
- stdlib
- 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()
- def nrand48(xsubi: Ptr[CUnsignedShort]): CLong
XSI
XSI
- Definition Classes
- stdlib
- def posix_memalign(memptr: Ptr[CVoidPtr], alignment: size_t, size: size_t): CInt
ADV
ADV
- Definition Classes
- stdlib
- def posix_openpt(flags: CInt): CInt
XSI
XSI
- Definition Classes
- stdlib
- def ptsname(fd: CInt): CString
XSI
XSI
- Definition Classes
- stdlib
- def putenv(string: CString): CInt
XSI
XSI
- Definition Classes
- stdlib
- def qsort[T](data: Ptr[T], num: Int, size: Int, comparator: CFuncPtr2[CVoidPtr, CVoidPtr, CInt]): Unit
- Definition Classes
- stdlib
- def qsort[T](data: Ptr[T], num: CSize, size: CSize, comparator: CFuncPtr2[CVoidPtr, CVoidPtr, CInt]): Unit
- Definition Classes
- stdlib
- def quick_exit(exitCode: CInt): Unit
- Definition Classes
- stdlib
- def rand(): CInt
- Definition Classes
- stdlib
- def random(): CLong
XSI
XSI
- Definition Classes
- stdlib
- def realloc[T](ptr: Ptr[T], newSize: Long): Ptr[T]
- Definition Classes
- stdlib
- def realloc[T](ptr: Ptr[T], newSize: Int): Ptr[T]
- Definition Classes
- stdlib
- def realloc[T](ptr: Ptr[T], newSize: CSize): Ptr[T]
- Definition Classes
- stdlib
- def realpath(path: CString, resolved_path: CString): CString
XSI
XSI
- Definition Classes
- stdlib
- def seed48(seed16v: Ptr[CUnsignedShort]): Ptr[CUnsignedShort]
XSI
XSI
- Definition Classes
- stdlib
- def setenv(name: CString, value: CString, overwrite: CInt): CInt
- Definition Classes
- stdlib
- def setkey(key: CString): Unit
XSI
XSI
- Definition Classes
- stdlib
- def setstate(state: Ptr[CChar]): Ptr[CChar]
XSI
XSI
- Definition Classes
- stdlib
- def srand(seed: Int): Unit
- Definition Classes
- stdlib
- def srand(seed: CUnsignedInt): Unit
- Definition Classes
- stdlib
- def srand48(seedval: CLong): Unit
XSI
XSI
- Definition Classes
- stdlib
- def srandom(seed: CUnsignedInt): Unit
XSI
XSI
- Definition Classes
- stdlib
- def strtod(str: CString, str_end: Ptr[CString]): CDouble
- Definition Classes
- stdlib
- def strtof(str: CString, str_end: Ptr[CString]): CFloat
- Definition Classes
- stdlib
- def strtol(str: CString, str_end: Ptr[CString], base: CInt): CLong
- Definition Classes
- stdlib
- def strtoll(str: CString, str_end: Ptr[CString], base: CInt): CLongLong
- Definition Classes
- stdlib
- def strtoul(str: CString, str_end: Ptr[CString], base: CInt): CUnsignedLong
- Definition Classes
- stdlib
- def strtoull(str: CString, str_end: Ptr[CString], base: CInt): CUnsignedLongLong
- Definition Classes
- stdlib
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def system(command: CString): CInt
- Definition Classes
- stdlib
- def toString(): String
- Definition Classes
- AnyRef → Any
- def unlockpt(fd: CInt): CInt
XSI
XSI
- Definition Classes
- stdlib
- def unsetenv(name: CString): CInt
- Definition Classes
- stdlib
- 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()