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

scala.scalanative.posix.grp.scala Maven / Gradle / Ivy

The newest version!
package scala.scalanative
package posix

import scalanative.unsafe._
import scalanative.posix.sys.types.gid_t

@extern
@define("__SCALANATIVE_POSIX_GRP")
object grp {
  type group = CStruct3[
    CString, // gr_name
    gid_t, // gr_gid
    Ptr[CString] // gr_mem
  ]

  @name("scalanative_getgrgid")
  def getgrgid(gid: gid_t, buf: Ptr[group]): CInt = extern

  @name("scalanative_getgrnam")
  def getgrnam(name: CString, buf: Ptr[group]): CInt = extern
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy