Top Inners Fields Constructors Methods
org.jruby.ext.etc

public Class RubyEtc

extends Object
Class Inheritance
Annotations
@JRubyModule
name:Etc
Imports
java.net.InetAddress, .UnknownHostException, java.util.concurrent.atomic.AtomicBoolean, jnr.constants.Constant, .ConstantSet, jnr.constants.platform.Errno, .Sysconf, .Confstr, .Pathconf, org.jruby.RubyArray, .RubyBasicObject, .RubyClass, .RubyHash, .Ruby, .RubyFixnum, .RubyIO, .RubyModule, .RubyNumeric, .RubyString, .RubyStruct, org.jruby.anno.JRubyMethod, .JRubyModule, org.jruby.exceptions.RaiseException, jnr.posix.Passwd, .Group, .POSIX, jnr.posix.util.Platform, org.jruby.ext.rbconfig.RbConfigLibrary, org.jruby.runtime.Arity, .Block, .ThreadContext, org.jruby.runtime.builtin.IRubyObject, org.jruby.util.ByteList, .SafePropertyAccessor, org.jruby.util.io.OpenFile, java.nio.ByteBuffer

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private static final AtomicBoolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static synchronized IRubyObject
public static RubyModule
private static void
private static void
public static synchronized IRubyObject
endgrent(IRubyObject recv)
Deprecated since 10.0.

public static synchronized IRubyObject
public static synchronized IRubyObject
endpwent(IRubyObject recv)
Deprecated since 10.0.

public static synchronized IRubyObject
public static synchronized IRubyObject
getgrent(IRubyObject recv)
Deprecated since 10.0.

public static synchronized IRubyObject
public static synchronized IRubyObject
getgrgid(IRubyObject recv, IRubyObject[] args)
Deprecated

public static synchronized IRubyObject
public static synchronized IRubyObject
getgrnam(IRubyObject recv, IRubyObject name)
Deprecated since 10.0.

public static synchronized IRubyObject
public static synchronized IRubyObject
getlogin(IRubyObject recv)
Deprecated since 10.0.

public static synchronized IRubyObject
public static synchronized IRubyObject
getpwent(IRubyObject recv)
Deprecated since 10.0.

public static synchronized IRubyObject
public static synchronized IRubyObject
getpwnam(IRubyObject recv, IRubyObject name)
Deprecated since 10.0.

public static synchronized IRubyObject
public static synchronized IRubyObject
getpwuid(IRubyObject recv, IRubyObject[] args)
Deprecated

public static synchronized IRubyObject
public static synchronized IRubyObject
group(IRubyObject recv, Block block)
Deprecated since 10.0.

public static synchronized IRubyObject
group(ThreadContext context, IRubyObject recv, Block block)

private static IRubyObject
intoStringArray(ThreadContext context, String[] members)

public static synchronized IRubyObject
public static synchronized IRubyObject
passwd(IRubyObject recv, Block block)
Deprecated since 10.0.

public static synchronized IRubyObject
passwd(ThreadContext context, IRubyObject recv, Block block)

public static synchronized IRubyObject
setgrent(IRubyObject recv)
Deprecated since 10.0.

public static synchronized IRubyObject
public static synchronized IRubyObject
setpwent(IRubyObject recv)
Deprecated since 10.0.

public static synchronized IRubyObject
private static IRubyObject
setupGroup(ThreadContext context, Group group)

private static IRubyObject
setupPasswd(ThreadContext context, Passwd passwd)

public static synchronized IRubyObject
public static synchronized IRubyObject
public static synchronized IRubyObject
public static synchronized IRubyObject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

iteratingPasswdback to summary
private static final AtomicBoolean iteratingPasswd

Constructor Detail

RubyEtcback to summary
public RubyEtc()

Method Detail

confstrback to summary
public static synchronized IRubyObject confstr(ThreadContext context, IRubyObject recv, IRubyObject arg)
Annotations
@JRubyMethod
module:true
createEtcModuleback to summary
public static RubyModule createEtcModule(ThreadContext context)
defineGroupStructback to summary
private static void defineGroupStruct(ThreadContext context, RubyModule Etc)
definePasswdStructback to summary
private static void definePasswdStruct(ThreadContext context, RubyModule Etc)
endgrentback to summary
public static synchronized IRubyObject endgrent(IRubyObject recv)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
endgrentback to summary
public static synchronized IRubyObject endgrent(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
endpwentback to summary
public static synchronized IRubyObject endpwent(IRubyObject recv)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
endpwentback to summary
public static synchronized IRubyObject endpwent(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
getgrentback to summary
public static synchronized IRubyObject getgrent(IRubyObject recv)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
getgrentback to summary
public static synchronized IRubyObject getgrent(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
getgrgidback to summary
public static synchronized IRubyObject getgrgid(IRubyObject recv, IRubyObject[] args)

Deprecated

Annotations
@Deprecated
getgrgidback to summary
public static synchronized IRubyObject getgrgid(ThreadContext context, IRubyObject recv, IRubyObject[] args)
Annotations
@JRubyMethod
optional:1
checkArity:false
module:true
getgrnamback to summary
public static synchronized IRubyObject getgrnam(IRubyObject recv, IRubyObject name)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
getgrnamback to summary
public static synchronized IRubyObject getgrnam(ThreadContext context, IRubyObject recv, IRubyObject name)
Annotations
@JRubyMethod
module:true
getloginback to summary
public static synchronized IRubyObject getlogin(IRubyObject recv)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
getloginback to summary
public static synchronized IRubyObject getlogin(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
getpwentback to summary
public static synchronized IRubyObject getpwent(IRubyObject recv)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
getpwentback to summary
public static synchronized IRubyObject getpwent(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
getpwnamback to summary
public static synchronized IRubyObject getpwnam(IRubyObject recv, IRubyObject name)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
getpwnamback to summary
public static synchronized IRubyObject getpwnam(ThreadContext context, IRubyObject recv, IRubyObject name)
Annotations
@JRubyMethod
module:true
getpwuidback to summary
public static synchronized IRubyObject getpwuid(IRubyObject recv, IRubyObject[] args)

Deprecated

Annotations
@Deprecated
getpwuidback to summary
public static synchronized IRubyObject getpwuid(ThreadContext context, IRubyObject recv, IRubyObject[] args)
Annotations
@JRubyMethod
optional:1
checkArity:false
module:true
groupback to summary
public static synchronized IRubyObject group(IRubyObject recv, Block block)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
groupback to summary
public static synchronized IRubyObject group(ThreadContext context, IRubyObject recv, Block block)
Annotations
@JRubyMethod
module:true
intoStringArrayback to summary
private static IRubyObject intoStringArray(ThreadContext context, String[] members)
nprocessorsback to summary
public static synchronized IRubyObject nprocessors(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
passwdback to summary
public static synchronized IRubyObject passwd(IRubyObject recv, Block block)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
passwdback to summary
public static synchronized IRubyObject passwd(ThreadContext context, IRubyObject recv, Block block)
Annotations
@JRubyMethod
module:true
setgrentback to summary
public static synchronized IRubyObject setgrent(IRubyObject recv)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
setgrentback to summary
public static synchronized IRubyObject setgrent(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
setpwentback to summary
public static synchronized IRubyObject setpwent(IRubyObject recv)

Deprecated

since 10.0.

Annotations
@Deprecated
since:10.0
setpwentback to summary
public static synchronized IRubyObject setpwent(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
setupGroupback to summary
private static IRubyObject setupGroup(ThreadContext context, Group group)
setupPasswdback to summary
private static IRubyObject setupPasswd(ThreadContext context, Passwd passwd)
sysconfback to summary
public static synchronized IRubyObject sysconf(ThreadContext context, IRubyObject recv, IRubyObject arg)
Annotations
@JRubyMethod
module:true
sysconfdirback to summary
public static synchronized IRubyObject sysconfdir(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
systmpdirback to summary
public static synchronized IRubyObject systmpdir(ThreadContext context, IRubyObject recv)
Annotations
@JRubyMethod
module:true
unameback to summary
public static synchronized IRubyObject uname(ThreadContext context, IRubyObject self)
Annotations
@JRubyMethod
module:true
org.jruby.ext.etc back to summary

public Class RubyEtc.IOExt

extends Object
Class Inheritance

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static synchronized IRubyObject
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

IOExtback to summary
public IOExt()

Method Detail

pathconfback to summary
public static synchronized IRubyObject pathconf(ThreadContext context, IRubyObject recv, IRubyObject arg)
Annotations
@JRubyMethod