org.jruby.ext.posix
Class JavaLibCHelper
java.lang.Object
org.jruby.ext.posix.JavaLibCHelper
public class JavaLibCHelper
- extends java.lang.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.
Method Summary |
int |
chmod(java.lang.String filename,
int mode)
|
int |
chown(java.lang.String filename,
int user,
int group)
|
int |
endpwent()
|
int |
getfd(java.io.FileDescriptor descriptor)
|
long |
gethandle(java.io.FileDescriptor descriptor)
|
java.lang.String |
getlogin()
|
int |
getpid()
|
Passwd |
getpwent()
|
int |
isatty(int fd)
|
int |
link(java.lang.String oldpath,
java.lang.String newpath)
|
int |
lstat(java.lang.String path,
FileStat stat)
|
int |
mkdir(java.lang.String path,
int mode)
|
int |
readlink(java.lang.String oldpath,
java.nio.ByteBuffer buffer,
int length)
|
int |
setpwent()
|
int |
stat(java.lang.String path,
FileStat stat)
|
int |
symlink(java.lang.String oldpath,
java.lang.String newpath)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
STDIN
public static final int STDIN
- See Also:
- Constant Field Values
STDOUT
public static final int STDOUT
- See Also:
- Constant Field Values
STDERR
public static final int STDERR
- See Also:
- Constant Field Values
JavaLibCHelper
public JavaLibCHelper(POSIXHandler handler)
chmod
public int chmod(java.lang.String filename,
int mode)
chown
public int chown(java.lang.String filename,
int user,
int group)
getfd
public int getfd(java.io.FileDescriptor descriptor)
gethandle
public long gethandle(java.io.FileDescriptor descriptor)
getlogin
public java.lang.String getlogin()
getpid
public int getpid()
getpwent
public Passwd getpwent()
setpwent
public int setpwent()
endpwent
public int endpwent()
isatty
public int isatty(int fd)
link
public int link(java.lang.String oldpath,
java.lang.String newpath)
lstat
public int lstat(java.lang.String path,
FileStat stat)
mkdir
public int mkdir(java.lang.String path,
int mode)
stat
public int stat(java.lang.String path,
FileStat stat)
symlink
public int symlink(java.lang.String oldpath,
java.lang.String newpath)
readlink
public int readlink(java.lang.String oldpath,
java.nio.ByteBuffer buffer,
int length)
throws java.io.IOException
- Throws:
java.io.IOException