Package jnr.posix
Class LinuxPOSIX
- java.lang.Object
-
- jnr.posix.NativePOSIX
-
- jnr.posix.BaseNativePOSIX
-
- jnr.posix.LinuxPOSIX
-
final class LinuxPOSIX extends BaseNativePOSIX implements Linux
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
LinuxPOSIX.Syscall
-
Nested classes/interfaces inherited from class jnr.posix.BaseNativePOSIX
BaseNativePOSIX.PointerConverter
-
-
Field Summary
Fields Modifier and Type Field Description static BaseNativePOSIX.PointerConverter
PASSWD
private int
statVersion
private boolean
use_fxstat64
private boolean
use_lxstat64
private boolean
use_xstat64
-
Fields inherited from class jnr.posix.BaseNativePOSIX
ConstantConverter, FileStatConverter, GROUP, handler, helper, MsgHdrConverter, signalHandlers, TimesConverter
-
-
Constructor Summary
Constructors Constructor Description LinuxPOSIX(LibCProvider libcProvider, POSIXHandler handler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MsgHdr
allocateMsgHdr()
jnr.ffi.Pointer
allocatePosixSpawnattr()
jnr.ffi.Pointer
allocatePosixSpawnFileActions()
FileStat
allocateStat()
FileStat
fstat(int fd)
int
fstat(int fd, FileStat stat)
FileStat
fstat(java.io.FileDescriptor fileDescriptor)
int
fstat(java.io.FileDescriptor fileDescriptor, FileStat stat)
int
ioprio_get(int which, int who)
int
ioprio_set(int which, int who, int ioprio)
FileStat
lstat(java.lang.String path)
int
lstat(java.lang.String path, FileStat stat)
private int
old_fstat(int fd, FileStat stat)
private int
old_lstat(java.lang.String path, FileStat stat)
private int
old_stat(java.lang.String path, FileStat stat)
SocketMacros
socketMacros()
FileStat
stat(java.lang.String path)
int
stat(java.lang.String path, FileStat stat)
long
sysconf(jnr.constants.platform.Sysconf name)
Times
times()
-
Methods inherited from class jnr.posix.BaseNativePOSIX
access, allocateTimeval, chdir, chmod, chown, close, crypt, crypt, crypt, daemon, dup, dup2, endgrent, endpwent, environ, errno, errno, exec, exec, execv, execve, fchmod, fchown, fcntl, fcntl, fcntlInt, fdatasync, flock, fork, fsync, ftruncate, futimens, futimens, futimes, getcwd, getdtablesize, getegid, getenv, geteuid, getfd, getgid, getgrent, getgrgid, getgrnam, getgroups, getgroups, getlogin, getpgid, getpgid, getpgrp, getpid, getppid, getpriority, getpwent, getpwnam, getpwuid, getrlimit, getrlimit, getrlimit, gettimeofday, getuid, handler, isatty, isatty, isNative, kill, kill, lchmod, lchown, libc, link, lseek, lseekLong, lutimes, mkdir, mkfifo, newProcessMaker, newProcessMaker, nl_langinfo, open, pipe, posix_spawnp, posix_spawnp, posix_spawnp, posix_spawnp, pread, pread, pread, pread, pwrite, pwrite, pwrite, pwrite, raise, read, read, read, read, readlink, readlink, readlink, readlink, recvmsg, rename, rmdir, sendmsg, setegid, setenv, seteuid, setgid, setgrent, setlocale, setpgid, setpgrp, setpriority, setpwent, setrlimit, setrlimit, setrlimit, setsid, setuid, signal, socketpair, strerror, symlink, truncate, umask, unimplementedInt, unimplementedNull, unlink, unsetenv, utimensat, utimensat, utimes, utimes, wait, waitpid, waitpid, write, write, write, write
-
Methods inherited from class jnr.posix.NativePOSIX
getRuntime
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface jnr.posix.POSIX
access, allocateTimeval, chdir, chmod, chown, close, crypt, crypt, daemon, dup, dup2, endgrent, endpwent, environ, errno, errno, exec, exec, execv, execve, fchmod, fchown, fcntl, fcntl, fcntlInt, fdatasync, flock, fork, fsync, ftruncate, futimens, futimens, futimes, getcwd, getdtablesize, getegid, getenv, geteuid, getgid, getgrent, getgrgid, getgrnam, getgroups, getgroups, getlogin, getpgid, getpgid, getpgrp, getpid, getppid, getpriority, getpwent, getpwnam, getpwuid, getrlimit, getrlimit, getrlimit, gettimeofday, getuid, isatty, isatty, isNative, kill, kill, lchmod, lchown, libc, link, lseek, lseekLong, lutimes, mkdir, mkfifo, newProcessMaker, newProcessMaker, nl_langinfo, open, pipe, posix_spawnp, posix_spawnp, pread, pread, pread, pread, pwrite, pwrite, pwrite, pwrite, raise, read, read, read, read, readlink, readlink, readlink, readlink, recvmsg, rename, rmdir, sendmsg, setegid, setenv, seteuid, setgid, setgrent, setlocale, setpgid, setpgrp, setpriority, setpwent, setrlimit, setrlimit, setrlimit, setsid, setuid, signal, socketpair, strerror, symlink, truncate, umask, unlink, unsetenv, utimensat, utimensat, utimes, utimes, wait, waitpid, waitpid, write, write, write, write
-
-
-
-
Field Detail
-
use_fxstat64
private volatile boolean use_fxstat64
-
use_lxstat64
private volatile boolean use_lxstat64
-
use_xstat64
private volatile boolean use_xstat64
-
statVersion
private final int statVersion
-
PASSWD
public static final BaseNativePOSIX.PointerConverter PASSWD
-
-
Constructor Detail
-
LinuxPOSIX
LinuxPOSIX(LibCProvider libcProvider, POSIXHandler handler)
-
-
Method Detail
-
allocateStat
public FileStat allocateStat()
- Specified by:
allocateStat
in interfacePOSIX
- Specified by:
allocateStat
in classBaseNativePOSIX
-
allocateMsgHdr
public MsgHdr allocateMsgHdr()
- Specified by:
allocateMsgHdr
in interfacePOSIX
-
allocatePosixSpawnFileActions
public jnr.ffi.Pointer allocatePosixSpawnFileActions()
- Overrides:
allocatePosixSpawnFileActions
in classNativePOSIX
-
allocatePosixSpawnattr
public jnr.ffi.Pointer allocatePosixSpawnattr()
- Overrides:
allocatePosixSpawnattr
in classNativePOSIX
-
socketMacros
public SocketMacros socketMacros()
- Specified by:
socketMacros
in classNativePOSIX
-
old_fstat
private int old_fstat(int fd, FileStat stat)
-
fstat
public int fstat(int fd, FileStat stat)
- Specified by:
fstat
in interfacePOSIX
- Overrides:
fstat
in classBaseNativePOSIX
-
fstat
public FileStat fstat(int fd)
- Specified by:
fstat
in interfacePOSIX
- Overrides:
fstat
in classBaseNativePOSIX
-
fstat
public int fstat(java.io.FileDescriptor fileDescriptor, FileStat stat)
- Specified by:
fstat
in interfacePOSIX
- Overrides:
fstat
in classBaseNativePOSIX
-
fstat
public FileStat fstat(java.io.FileDescriptor fileDescriptor)
- Specified by:
fstat
in interfacePOSIX
- Overrides:
fstat
in classBaseNativePOSIX
-
old_lstat
private final int old_lstat(java.lang.String path, FileStat stat)
-
lstat
public int lstat(java.lang.String path, FileStat stat)
- Specified by:
lstat
in interfacePOSIX
- Overrides:
lstat
in classBaseNativePOSIX
-
lstat
public FileStat lstat(java.lang.String path)
- Specified by:
lstat
in interfacePOSIX
- Overrides:
lstat
in classBaseNativePOSIX
-
old_stat
private final int old_stat(java.lang.String path, FileStat stat)
-
stat
public int stat(java.lang.String path, FileStat stat)
- Specified by:
stat
in interfacePOSIX
- Overrides:
stat
in classBaseNativePOSIX
-
stat
public FileStat stat(java.lang.String path)
- Specified by:
stat
in interfacePOSIX
- Overrides:
stat
in classBaseNativePOSIX
-
sysconf
public long sysconf(jnr.constants.platform.Sysconf name)
- Specified by:
sysconf
in interfacePOSIX
- Overrides:
sysconf
in classBaseNativePOSIX
-
times
public Times times()
- Specified by:
times
in interfacePOSIX
- Overrides:
times
in classBaseNativePOSIX
-
ioprio_get
public int ioprio_get(int which, int who)
- Specified by:
ioprio_get
in interfaceLinux
-
ioprio_set
public int ioprio_set(int which, int who, int ioprio)
- Specified by:
ioprio_set
in interfaceLinux
-
-