Package jnr.posix
Class JavaLibCHelper
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.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
private static class
private static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final ThreadLocal<Integer>
private final POSIXHandler
(package private) ThreadLocal<Integer>
static final int
static final int
static final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int
int
int
static byte[]
crypt
(byte[] original, byte[] salt) static CharSequence
crypt
(CharSequence original, CharSequence salt) int
endpwent()
(package private) static int
errno()
(package private) static void
errno
(int errno) (package private) static void
errno
(jnr.constants.platform.Errno errno) static FileDescriptor
getDescriptorFromChannel
(Channel channel) getEnv()
int
getfd
(FileDescriptor descriptor) static int
getfdFromDescriptor
(FileDescriptor descriptor) static HANDLE
gethandle
(long descriptor) static HANDLE
gethandle
(FileDescriptor descriptor) getlogin()
int
getpid()
getpwent()
getpwuid
(int which) int
isatty
(int fd) int
int
int
int
readlink
(String oldpath, ByteBuffer buffer, int length) int
int
setpwent()
int
int
static FileDescriptor
toFileDescriptor
(int fileDescriptor) static FileDescriptor
toFileDescriptor
(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:
-
errno
-
handler
-
env
-
pwIndex
ThreadLocal<Integer> pwIndex
-
-
Constructor Details
-
JavaLibCHelper
-
-
Method Details
-
getDescriptorFromChannel
-
errno
static int errno() -
errno
static void errno(int errno) -
errno
static void errno(jnr.constants.platform.Errno errno) -
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
-