You can add github resolver by add this line to build.sbt
:
resolvers += "Jian Zhou Release" at "https://raw.githubusercontent.com/janzhou/mvn-repo/release"
Add the library by using the following line:
libraryDependencies += "org.janzhou" %% "native" % "version"
Replace the version number with a proper tag name in the repository
Libc library is The GNU C Library which defines the ``system calls'' and other basic facilities. You can use the libc interface in scala:
import org.janzhou.native._
val fd = libc.run.open("filename", libc.O_RDWR)
val mem = libc.run().malloc(8)
libc.run.ioctl(fd, COMMAND, mem)
libc.run().free(mem)
libc.run().close(fd)
- NVM Library (Only if you use pmem library).