jnr.posix.NativePOSIX Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cassandra-driver Show documentation
Show all versions of cassandra-driver Show documentation
Shaded version of DataStax Java Driver for Apache Cassandra
The newest version!
package jnr.posix;
import jnr.ffi.Memory;
import jnr.ffi.Pointer;
/**
*
*/
public abstract class NativePOSIX implements POSIX {
jnr.ffi.Runtime getRuntime() {
return jnr.ffi.Runtime.getRuntime(libc());
}
public abstract SocketMacros socketMacros();
public Pointer allocatePosixSpawnFileActions() {
return Memory.allocateDirect(getRuntime(), 128);
}
public Pointer allocatePosixSpawnattr() {
return Memory.allocateDirect(getRuntime(), 128);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy