org.jruby.ext.posix

Class JavaLibCHelper

public class JavaLibCHelper extends Object

This libc implementation is created one per runtime instance versus the others which are expected to be one static instance for whole JVM. Because of this it is no big deal to make reference to a POSIXHandler directly.
Field Summary
static intSTDERR
static intSTDIN
static intSTDOUT
Constructor Summary
JavaLibCHelper(POSIXHandler handler)
Method Summary
intchmod(String filename, int mode)
intchown(String filename, int user, int group)
intendpwent()
intgetfd(FileDescriptor descriptor)
longgethandle(FileDescriptor descriptor)
Stringgetlogin()
intgetpid()
Passwdgetpwent()
Passwdgetpwuid(int which)
intisatty(int fd)
intlink(String oldpath, String newpath)
intlstat(String path, FileStat stat)
intmkdir(String path, int mode)
intreadlink(String oldpath, ByteBuffer buffer, int length)
intsetpwent()
intstat(String path, FileStat stat)
intsymlink(String oldpath, String newpath)

Field Detail

STDERR

public static final int STDERR

STDIN

public static final int STDIN

STDOUT

public static final int STDOUT

Constructor Detail

JavaLibCHelper

public JavaLibCHelper(POSIXHandler handler)

Method Detail

chmod

public int chmod(String filename, int mode)

chown

public int chown(String filename, int user, int group)

endpwent

public int endpwent()

getfd

public int getfd(FileDescriptor descriptor)

gethandle

public long gethandle(FileDescriptor descriptor)

getlogin

public String getlogin()

getpid

public int getpid()

getpwent

public Passwd getpwent()

getpwuid

public Passwd getpwuid(int which)

isatty

public int isatty(int fd)

link

public int link(String oldpath, String newpath)

lstat

public int lstat(String path, FileStat stat)

mkdir

public int mkdir(String path, int mode)

readlink

public int readlink(String oldpath, ByteBuffer buffer, int length)

setpwent

public int setpwent()

stat

public int stat(String path, FileStat stat)

symlink

public int symlink(String oldpath, String newpath)