本文整理了Java中jnr.posix.POSIX.getgrent()
方法的一些代码示例,展示了POSIX.getgrent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。POSIX.getgrent()
方法的具体详情如下:
包路径:jnr.posix.POSIX
类名称:POSIX
方法名:getgrent
暂无
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public Group getgrent() {
return posix().getgrent();
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public Group getgrent() {
try { return posix.getgrent(); } catch (UnsatisfiedLinkError ule) { return unimplementedNull(); }
}
代码示例来源:origin: io.prestosql.cassandra/cassandra-driver
public Group getgrent() {
return posix().getgrent();
}
代码示例来源:origin: com.github.jnr/jnr-posix
public Group getgrent() {
return posix().getgrent();
}
代码示例来源:origin: com.github.jnr/jnr-posix
public Group getgrent() {
try { return posix.getgrent(); } catch (UnsatisfiedLinkError ule) { return unimplementedNull(); }
}
代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep
public Group getgrent() {
try { return posix.getgrent(); } catch (UnsatisfiedLinkError ule) { return unimplementedNull(); }
}
代码示例来源:origin: com.facebook.presto.cassandra/cassandra-driver
public Group getgrent() {
try { return posix.getgrent(); } catch (UnsatisfiedLinkError ule) { return unimplementedNull(); }
}
代码示例来源:origin: com.cloudbees.util/jnr-unixsocket-nodep
public Group getgrent() {
return posix().getgrent();
}
代码示例来源:origin: org.jruby/jruby-complete
posix.getgrent();
} catch (Exception e) {
if (runtime.getDebug().isTrue()) {
while((gr = posix.getgrent()) != null) {
block.yield(context, setupGroup(runtime, gr));
Group gr = posix.getgrent();
if (gr != null) {
return setupGroup(runtime, gr);
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
posix.getgrent();
} catch (Exception e) {
if (runtime.getDebug().isTrue()) {
while((gr = posix.getgrent()) != null) {
block.yield(context, setupGroup(runtime, gr));
Group gr = posix.getgrent();
if (gr != null) {
return setupGroup(runtime, gr);
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
posix.getgrent();
} catch (Exception e) {
if (runtime.getDebug().isTrue()) {
while((gr = posix.getgrent()) != null) {
block.yield(context, setupGroup(runtime, gr));
Group gr = posix.getgrent();
if (gr != null) {
return setupGroup(runtime, gr);
代码示例来源:origin: org.jruby/jruby-core
posix.getgrent();
} catch (Exception e) {
if (runtime.getDebug().isTrue()) {
while((gr = posix.getgrent()) != null) {
block.yield(context, setupGroup(runtime, gr));
Group gr = posix.getgrent();
if (gr != null) {
return setupGroup(runtime, gr);
代码示例来源:origin: com.ning.billing/killbill-osgi-bundles-jruby
@JRubyMethod(name = "getgrent", module = true)
public static IRubyObject getgrent(IRubyObject recv) {
Ruby runtime = recv.getRuntime();
try {
Group gr = runtime.getPosix().getgrent();
if (gr != null) {
return setupGroup(recv.getRuntime(), gr);
} else {
return runtime.getNil();
}
} catch (Exception e) {
if (runtime.getDebug().isTrue()) {
runtime.getWarnings().warn(ID.NOT_IMPLEMENTED, "Etc.getgrent is not supported by JRuby on this platform");
}
return runtime.getNil();
}
}
代码示例来源:origin: org.kill-bill.billing/killbill-osgi-bundles-jruby
@JRubyMethod(name = "getgrent", module = true)
public static IRubyObject getgrent(IRubyObject recv) {
Ruby runtime = recv.getRuntime();
try {
Group gr = runtime.getPosix().getgrent();
if (gr != null) {
return setupGroup(recv.getRuntime(), gr);
} else {
return runtime.getNil();
}
} catch (Exception e) {
if (runtime.getDebug().isTrue()) {
runtime.getWarnings().warn(ID.NOT_IMPLEMENTED, "Etc.getgrent is not supported by JRuby on this platform");
}
return runtime.getNil();
}
}
代码示例来源:origin: org.jruby/jruby-core
@JRubyMethod(module = true)
public static synchronized IRubyObject getgrent(IRubyObject recv) {
Ruby runtime = recv.getRuntime();
try {
Group gr;
// We synchronize on this class so at least all JRuby instances in this classloader are safe.
// See jruby/jruby#4057
synchronized (RubyEtc.class) {
gr = runtime.getPosix().getgrent();
}
if (gr != null) {
return setupGroup(recv.getRuntime(), gr);
} else {
return runtime.getNil();
}
} catch (Exception e) {
if (runtime.getDebug().isTrue()) {
runtime.getWarnings().warn(ID.NOT_IMPLEMENTED, "Etc.getgrent is not supported by JRuby on this platform");
}
return runtime.getNil();
}
}
代码示例来源:origin: org.jruby/jruby-complete
@JRubyMethod(module = true)
public static synchronized IRubyObject getgrent(IRubyObject recv) {
Ruby runtime = recv.getRuntime();
try {
Group gr;
// We synchronize on this class so at least all JRuby instances in this classloader are safe.
// See jruby/jruby#4057
synchronized (RubyEtc.class) {
gr = runtime.getPosix().getgrent();
}
if (gr != null) {
return setupGroup(recv.getRuntime(), gr);
} else {
return runtime.getNil();
}
} catch (Exception e) {
if (runtime.getDebug().isTrue()) {
runtime.getWarnings().warn(ID.NOT_IMPLEMENTED, "Etc.getgrent is not supported by JRuby on this platform");
}
return runtime.getNil();
}
}
内容来源于网络,如有侵权,请联系作者删除!