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

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 EXIT_FAILURE: CInt
    Definition Classes
    stdlib
    Annotations
    @name("scalanative_exit_failure")
  5. def EXIT_SUCCESS: CInt
    Definition Classes
    stdlib
    Annotations
    @name("scalanative_exit_success")
  6. def RAND_MAX: CInt
    Definition Classes
    stdlib
    Annotations
    @name("scalanative_rand_max")
  7. def _Exit(exitCode: CInt): Unit
    Definition Classes
    stdlib
  8. def a64l(str64: CString): CLong

    XSI

    XSI

    Definition Classes
    stdlib
  9. def abort(): Unit
    Definition Classes
    stdlib
  10. def aligned_alloc(alignment: Long, size: Long): Unit
    Definition Classes
    stdlib
  11. def aligned_alloc(alignment: Int, size: Int): Unit
    Definition Classes
    stdlib
  12. def aligned_alloc(alignment: CSize, size: CSize): Unit
    Definition Classes
    stdlib
  13. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  14. def at_quick_exit(func: CFuncPtr0[Unit]): CInt
    Definition Classes
    stdlib
  15. def atexit(func: CFuncPtr0[Unit]): CInt
    Definition Classes
    stdlib
  16. def atof(str: CString): CDouble
    Definition Classes
    stdlib
  17. def atoi(str: CString): CInt
    Definition Classes
    stdlib
  18. def atol(str: CString): CLong
    Definition Classes
    stdlib
  19. def atoll(str: CString): CLongLong
    Definition Classes
    stdlib
  20. def bsearch(key: CVoidPtr, data: CVoidPtr, num: Int, size: Int, comparator: CFuncPtr2[CVoidPtr, CVoidPtr, CInt]): Unit
    Definition Classes
    stdlib
  21. def bsearch(key: CVoidPtr, data: CVoidPtr, num: CSize, size: CSize, comparator: CFuncPtr2[CVoidPtr, CVoidPtr, CInt]): Unit
    Definition Classes
    stdlib
  22. def calloc(num: Long, size: Long): Ptr[Byte]
    Definition Classes
    stdlib
  23. def calloc(num: Int, size: Int): Ptr[Byte]
    Definition Classes
    stdlib
  24. def calloc(num: CSize, size: CSize): Ptr[Byte]
    Definition Classes
    stdlib
  25. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  26. def drand48(): Double

    XSI

    XSI

    Definition Classes
    stdlib
  27. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  28. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  29. def erand48(xsubi: Ptr[CUnsignedShort]): Double

    XSI

    XSI

    Definition Classes
    stdlib
  30. def exit(exitCode: CInt): Unit
    Definition Classes
    stdlib
  31. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  32. def free(ptr: CVoidPtr): Unit
    Definition Classes
    stdlib
  33. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  34. def getenv(name: CString): CString
    Definition Classes
    stdlib
  35. def getsubopt(optionp: Ptr[CString], tokens: Ptr[CString], valuep: Ptr[CString]): CInt
    Definition Classes
    stdlib
  36. def grantpt(fd: CInt): CInt

    XSI

    XSI

    Definition Classes
    stdlib
  37. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  38. def initstate(seed: CUnsignedInt, state: Ptr[CChar], size: size_t): Ptr[CChar]

    XSI

    XSI

    Definition Classes
    stdlib
  39. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  40. def jrand48(xsubi: Ptr[CUnsignedShort]): CLong

    XSI

    XSI

    Definition Classes
    stdlib
  41. def l64a(value: CLong): CString

    XSI

    XSI

    Definition Classes
    stdlib
  42. def lcong48(param: Ptr[CUnsignedShort]): Unit

    XSI

    XSI

    Definition Classes
    stdlib
  43. def lrand48(): CLong

    XSI

    XSI

    Definition Classes
    stdlib
  44. def malloc(size: Long): Ptr[Byte]
    Definition Classes
    stdlib
  45. def malloc(size: Int): Ptr[Byte]
    Definition Classes
    stdlib
  46. def malloc(size: CSize): Ptr[Byte]
    Definition Classes
    stdlib
  47. def mkdtemp(template: CString): CString
    Definition Classes
    stdlib
  48. def mkstemp(template: CString): CInt
    Definition Classes
    stdlib
  49. def mrand48(): CLong

    XSI

    XSI

    Definition Classes
    stdlib
  50. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  51. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  52. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  53. def nrand48(xsubi: Ptr[CUnsignedShort]): CLong

    XSI

    XSI

    Definition Classes
    stdlib
  54. def posix_memalign(memptr: Ptr[CVoidPtr], alignment: size_t, size: size_t): CInt

    ADV

    ADV

    Definition Classes
    stdlib
  55. def posix_openpt(flags: CInt): CInt

    XSI

    XSI

    Definition Classes
    stdlib
  56. def ptsname(fd: CInt): CString

    XSI

    XSI

    Definition Classes
    stdlib
  57. def putenv(string: CString): CInt

    XSI

    XSI

    Definition Classes
    stdlib
  58. def qsort[T](data: Ptr[T], num: Int, size: Int, comparator: CFuncPtr2[CVoidPtr, CVoidPtr, CInt]): Unit
    Definition Classes
    stdlib
  59. def qsort[T](data: Ptr[T], num: CSize, size: CSize, comparator: CFuncPtr2[CVoidPtr, CVoidPtr, CInt]): Unit
    Definition Classes
    stdlib
  60. def quick_exit(exitCode: CInt): Unit
    Definition Classes
    stdlib
  61. def rand(): CInt
    Definition Classes
    stdlib
  62. def random(): CLong

    XSI

    XSI

    Definition Classes
    stdlib
  63. def realloc[T](ptr: Ptr[T], newSize: Long): Ptr[T]
    Definition Classes
    stdlib
  64. def realloc[T](ptr: Ptr[T], newSize: Int): Ptr[T]
    Definition Classes
    stdlib
  65. def realloc[T](ptr: Ptr[T], newSize: CSize): Ptr[T]
    Definition Classes
    stdlib
  66. def realpath(path: CString, resolved_path: CString): CString

    XSI

    XSI

    Definition Classes
    stdlib
  67. def seed48(seed16v: Ptr[CUnsignedShort]): Ptr[CUnsignedShort]

    XSI

    XSI

    Definition Classes
    stdlib
  68. def setenv(name: CString, value: CString, overwrite: CInt): CInt
    Definition Classes
    stdlib
  69. def setkey(key: CString): Unit

    XSI

    XSI

    Definition Classes
    stdlib
  70. def setstate(state: Ptr[CChar]): Ptr[CChar]

    XSI

    XSI

    Definition Classes
    stdlib
  71. def srand(seed: Int): Unit
    Definition Classes
    stdlib
  72. def srand(seed: CUnsignedInt): Unit
    Definition Classes
    stdlib
  73. def srand48(seedval: CLong): Unit

    XSI

    XSI

    Definition Classes
    stdlib
  74. def srandom(seed: CUnsignedInt): Unit

    XSI

    XSI

    Definition Classes
    stdlib
  75. def strtod(str: CString, str_end: Ptr[CString]): CDouble
    Definition Classes
    stdlib
  76. def strtof(str: CString, str_end: Ptr[CString]): CFloat
    Definition Classes
    stdlib
  77. def strtol(str: CString, str_end: Ptr[CString], base: CInt): CLong
    Definition Classes
    stdlib
  78. def strtoll(str: CString, str_end: Ptr[CString], base: CInt): CLongLong
    Definition Classes
    stdlib
  79. def strtoul(str: CString, str_end: Ptr[CString], base: CInt): CUnsignedLong
    Definition Classes
    stdlib
  80. def strtoull(str: CString, str_end: Ptr[CString], base: CInt): CUnsignedLongLong
    Definition Classes
    stdlib
  81. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  82. def system(command: CString): CInt
    Definition Classes
    stdlib
  83. def toString(): String
    Definition Classes
    AnyRef → Any
  84. def unlockpt(fd: CInt): CInt

    XSI

    XSI

    Definition Classes
    stdlib
  85. def unsetenv(name: CString): CInt
    Definition Classes
    stdlib
  86. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  87. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  88. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from stdlib

Inherited from libc.stdlib

Inherited from AnyRef

Inherited from Any

Ungrouped