org.jruby.ext.posix
Class DefaultNativeGroup

java.lang.Object
  extended by com.sun.jna.Structure
      extended by org.jruby.ext.posix.NativeGroup
          extended by org.jruby.ext.posix.DefaultNativeGroup
All Implemented Interfaces:
Group

public final class DefaultNativeGroup
extends NativeGroup
implements Group

The default native group layout.

This implementation should work on Solaris, Linux and MacOS.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.sun.jna.Structure
com.sun.jna.Structure.ByReference, com.sun.jna.Structure.ByValue
 
Field Summary
 int gr_gid
           
 com.sun.jna.Pointer gr_mem
           
 java.lang.String gr_name
           
 java.lang.String gr_passwd
           
 
Fields inherited from class com.sun.jna.Structure
ALIGN_DEFAULT, ALIGN_GNUC, ALIGN_MSVC, ALIGN_NONE, CALCULATE_SIZE
 
Method Summary
 long getGID()
           
 java.lang.String[] getMembers()
           
 java.lang.String getName()
           
 java.lang.String getPassword()
           
 
Methods inherited from class com.sun.jna.Structure
allocateMemory, allocateMemory, autoRead, autoRead, autoWrite, autoWrite, cacheTypeInfo, clear, ensureAllocated, equals, getAutoRead, getAutoWrite, getFieldOrder, getNativeAlignment, getPointer, getStructAlignment, hashCode, newInstance, read, readField, setAlignType, setAutoRead, setAutoSynch, setAutoWrite, setFieldOrder, setTypeMapper, size, sortFields, toArray, toArray, toString, useMemory, useMemory, write, writeField, writeField
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

gr_name

public java.lang.String gr_name

gr_passwd

public java.lang.String gr_passwd

gr_gid

public int gr_gid

gr_mem

public com.sun.jna.Pointer gr_mem
Method Detail

getName

public java.lang.String getName()
Specified by:
getName in interface Group

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface Group

getGID

public long getGID()
Specified by:
getGID in interface Group

getMembers

public java.lang.String[] getMembers()
Specified by:
getMembers in interface Group