jnr.posix.MacOSPOSIX Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jnr-unixsocket-nodep Show documentation
Show all versions of jnr-unixsocket-nodep Show documentation
com.github.jnr:jnr-unixsocket with orh.objectweb.asm shaded
The newest version!
package jnr.posix;
import jnr.constants.platform.Sysconf;
import jnr.ffi.*;
import jnr.ffi.mapper.FromNativeContext;
final class MacOSPOSIX extends BaseNativePOSIX {
MacOSPOSIX(LibCProvider libcProvider, POSIXHandler handler) {
super(libcProvider, handler);
}
public FileStat allocateStat() {
return new MacOSFileStat(this);
}
public long sysconf(Sysconf name) {
return libc().sysconf(name);
}
public Times times() {
return NativeTimes.times(this);
}
public static final PointerConverter PASSWD = new PointerConverter() {
public Object fromNative(Object arg, FromNativeContext ctx) {
return arg != null ? new MacOSPasswd((Pointer) arg) : null;
}
};
}