java.lang.Object
jnr.posix.JavaLibCHelper
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
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intintintstatic byte[]crypt(byte[] original, byte[] salt) static CharSequencecrypt(CharSequence original, CharSequence salt) intendpwent()static FileDescriptorgetDescriptorFromChannel(Channel channel) getEnv()intgetfd(FileDescriptor descriptor) static intgetfdFromDescriptor(FileDescriptor descriptor) static HANDLEgethandle(long descriptor) static HANDLEgethandle(FileDescriptor descriptor) getlogin()intgetpid()getpwent()getpwuid(int which) intisatty(int fd) intintintintreadlink(String oldpath, ByteBuffer buffer, int length) intintsetpwent()intintstatic FileDescriptortoFileDescriptor(int fileDescriptor) static FileDescriptortoFileDescriptor(HANDLE fileDescriptor)
-
Field Details
-
STDIN
public static final int STDIN- See Also:
-
STDOUT
public static final int STDOUT- See Also:
-
STDERR
public static final int STDERR- See Also:
-
-
Constructor Details
-
JavaLibCHelper
-
-
Method Details
-
getDescriptorFromChannel
-
chmod
-
chown
-
crypt
-
crypt
public static byte[] crypt(byte[] original, byte[] salt) -
getfd
-
getfdFromDescriptor
-
gethandle
-
gethandle
-
getlogin
-
gethostname
-
getpid
public int getpid() -
getpwent
-
setpwent
public int setpwent() -
endpwent
public int endpwent() -
getpwuid
-
isatty
public int isatty(int fd) -
link
-
lstat
-
mkdir
-
rmdir
-
chdir
-
stat
-
symlink
-
readlink
- Throws:
IOException
-
getEnv
-
toFileDescriptor
-
toFileDescriptor
-