All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.scalanative.posix.sys.statvfs.scala Maven / Gradle / Ivy

There is a newer version: 0.5.5
Show newest version
package scala.scalanative
package posix
package sys

import scalanative.unsafe._

@extern
@define("__SCALANATIVE_POSIX_STATVFS")
object statvfs {

  type fsblkcnt_t = CUnsignedLong
  type fsfilcnt_t = CUnsignedLong
  type statvfs = CStruct11[
    CUnsignedLong, // f_bsize
    CUnsignedLong, // f_frsize
    fsblkcnt_t, // f_blocks
    fsblkcnt_t, // f_bfree
    fsblkcnt_t, // f_bavail
    fsfilcnt_t, // f_files
    fsfilcnt_t, // f_ffree
    fsfilcnt_t, // f_favail
    CUnsignedLong, // f_fsid
    CUnsignedLong, // f_flag
    CUnsignedLong // f_namemax
  ]

  @name("scalanative_statvfs")
  def statvfs(path: CString, buf: Ptr[statvfs]): CInt = extern

  @name("scalanative_fstatvfs")
  def fstatvfs(fd: CInt, buf: Ptr[statvfs]): CInt = extern

  @name("scalanative_st_rdonly")
  def ST_RDONLY: CUnsignedLong = extern

  @name("scalanative_st_nosuid")
  def ST_NOSUID: CUnsignedLong = extern
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy