本文整理了Java中jnr.posix.POSIX.libc()
方法的一些代码示例,展示了POSIX.libc()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POSIX.libc()
方法的具体详情如下:
包路径:jnr.posix.POSIX
类名称:POSIX
方法名:libc
[英]Returns null if isNative returns false.
[中]如果isNative返回false,则返回null。
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public LibC libc() {
return posix.libc();
}
代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep
public LibC libc() {
return posix.libc();
}
代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep
final boolean act(POSIX posix, Pointer nativeFileActions) {
return ((UnixLibC) posix.libc()).posix_spawn_file_actions_adddup2(nativeFileActions, fd, newfd) == 0;
}
}
代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep
final boolean act(POSIX posix, Pointer nativeFileActions) {
return ((UnixLibC) posix.libc()).posix_spawn_file_actions_addopen(nativeFileActions, fd, path, flags, mode) == 0;
}
}
代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep
final boolean act(POSIX posix, Pointer nativeFileActions) {
return ((UnixLibC) posix.libc()).posix_spawn_file_actions_addclose(nativeFileActions, fd) == 0;
}
}
代码示例来源:origin: com.github.jnr/jnr-posix
final boolean set(POSIX posix, Pointer nativeSpawnAttr) {
return ((UnixLibC) posix.libc()).posix_spawnattr_setpgroup(nativeSpawnAttr, pgroup) == 0;
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
final boolean act(POSIX posix, Pointer nativeFileActions) {
return ((UnixLibC) posix.libc()).posix_spawn_file_actions_adddup2(nativeFileActions, fd, newfd) == 0;
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
final boolean act(POSIX posix, Pointer nativeFileActions) {
return ((UnixLibC) posix.libc()).posix_spawn_file_actions_addopen(nativeFileActions, fd, path, flags, mode) == 0;
}
代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep
public LibC libc() {
return posix().libc();
}
代码示例来源:origin: com.github.jnr/jnr-posix
final boolean act(POSIX posix, Pointer nativeFileActions) {
return ((UnixLibC) posix.libc()).posix_spawn_file_actions_adddup2(nativeFileActions, fd, newfd) == 0;
}
代码示例来源:origin: com.github.jnr/jnr-posix
final boolean act(POSIX posix, Pointer nativeFileActions) {
return ((UnixLibC) posix.libc()).posix_spawn_file_actions_addopen(nativeFileActions, fd, path, flags, mode) == 0;
}
代码示例来源:origin: com.github.jnr/jnr-posix
final boolean act(POSIX posix, Pointer nativeFileActions) {
return ((UnixLibC) posix.libc()).posix_spawn_file_actions_addclose(nativeFileActions, fd) == 0;
}
代码示例来源:origin: com.github.jnr/jnr-posix
public LibC libc() {
return posix().libc();
}
代码示例来源:origin: com.github.jnr/jnr-posix
final boolean set(POSIX posix, Pointer nativeSpawnAttr) {
return ((UnixLibC) posix.libc()).posix_spawnattr_setflags(nativeSpawnAttr, flags) == 0;
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
final boolean act(POSIX posix, Pointer nativeFileActions) {
return ((UnixLibC) posix.libc()).posix_spawn_file_actions_adddup2(nativeFileActions, fd, newfd) == 0;
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public LibC libc() {
return posix().libc();
}
代码示例来源:origin: org.jruby/jruby-complete
private static LibC libc(Ruby runtime) {
LibC libc = runtime.getPosix().libc();
if (libc == null) {
throw runtime.newNotImplementedError("native access not enabled");
}
return libc;
}
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
private static LibC libc(Ruby runtime) {
LibC libc = runtime.getPosix().libc();
if (libc == null) {
throw runtime.newNotImplementedError("native access not enabled");
}
return libc;
}
代码示例来源:origin: org.jruby/jruby-core
private static LibC libc(Ruby runtime) {
LibC libc = runtime.getPosix().libc();
if (libc == null) {
throw runtime.newNotImplementedError("native access not enabled");
}
return libc;
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
private static LibC libc(Ruby runtime) {
LibC libc = runtime.getPosix().libc();
if (libc == null) {
throw runtime.newNotImplementedError("native access not enabled");
}
return libc;
}
内容来源于网络,如有侵权,请联系作者删除!