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 classLinuxPOSIX.Syscall-
Nested classes/interfaces inherited from class jnr.posix.BaseNativePOSIX
BaseNativePOSIX.PointerConverter
-
-
Field Summary
Fields Modifier and Type Field Description static BaseNativePOSIX.PointerConverterPASSWDprivate intstatVersionprivate booleanuse_fxstat64private booleanuse_lxstat64private booleanuse_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 MsgHdrallocateMsgHdr()jnr.ffi.PointerallocatePosixSpawnattr()jnr.ffi.PointerallocatePosixSpawnFileActions()FileStatallocateStat()intconfstr(jnr.constants.platform.Confstr name, java.nio.ByteBuffer buf, int len)intfpathconf(int fd, jnr.constants.platform.Pathconf name)FileStatfstat(int fd)intfstat(int fd, FileStat stat)FileStatfstat(java.io.FileDescriptor fileDescriptor)intfstat(java.io.FileDescriptor fileDescriptor, FileStat stat)intioprio_get(int which, int who)intioprio_set(int which, int who, int ioprio)FileStatlstat(java.lang.String path)intlstat(java.lang.String path, FileStat stat)private intold_fstat(int fd, FileStat stat)private intold_lstat(java.lang.String path, FileStat stat)private intold_stat(java.lang.String path, FileStat stat)intposix_fadvise(int fd, long offset, long len, jnr.constants.platform.PosixFadvise advise)SocketMacrossocketMacros()FileStatstat(java.lang.String path)intstat(java.lang.String path, FileStat stat)longsysconf(jnr.constants.platform.Sysconf name)Timestimes()-
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, fcntl, fcntlInt, fdatasync, flock, fork, fsync, ftruncate, futimens, futimens, futimes, getcwd, getdtablesize, getegid, getenv, geteuid, getfd, getgid, getgrent, getgrgid, getgrnam, getgroups, getgroups, gethostname, 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, fcntl, fcntlInt, fdatasync, flock, fork, fsync, ftruncate, futimens, futimens, futimes, getcwd, getdtablesize, getegid, getenv, geteuid, getgid, getgrent, getgrgid, getgrnam, getgroups, getgroups, gethostname, 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:
allocateStatin interfacePOSIX- Specified by:
allocateStatin classBaseNativePOSIX
-
allocateMsgHdr
public MsgHdr allocateMsgHdr()
- Specified by:
allocateMsgHdrin interfacePOSIX
-
allocatePosixSpawnFileActions
public jnr.ffi.Pointer allocatePosixSpawnFileActions()
- Overrides:
allocatePosixSpawnFileActionsin classNativePOSIX
-
allocatePosixSpawnattr
public jnr.ffi.Pointer allocatePosixSpawnattr()
- Overrides:
allocatePosixSpawnattrin classNativePOSIX
-
socketMacros
public SocketMacros socketMacros()
- Specified by:
socketMacrosin classNativePOSIX
-
old_fstat
private int old_fstat(int fd, FileStat stat)
-
fstat
public int fstat(int fd, FileStat stat)- Specified by:
fstatin interfacePOSIX- Overrides:
fstatin classBaseNativePOSIX
-
fstat
public FileStat fstat(int fd)
- Specified by:
fstatin interfacePOSIX- Overrides:
fstatin classBaseNativePOSIX
-
fstat
public int fstat(java.io.FileDescriptor fileDescriptor, FileStat stat)- Specified by:
fstatin interfacePOSIX- Overrides:
fstatin classBaseNativePOSIX
-
fstat
public FileStat fstat(java.io.FileDescriptor fileDescriptor)
- Specified by:
fstatin interfacePOSIX- Overrides:
fstatin 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:
lstatin interfacePOSIX- Overrides:
lstatin classBaseNativePOSIX
-
lstat
public FileStat lstat(java.lang.String path)
- Specified by:
lstatin interfacePOSIX- Overrides:
lstatin 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:
statin interfacePOSIX- Overrides:
statin classBaseNativePOSIX
-
stat
public FileStat stat(java.lang.String path)
- Specified by:
statin interfacePOSIX- Overrides:
statin classBaseNativePOSIX
-
sysconf
public long sysconf(jnr.constants.platform.Sysconf name)
- Specified by:
sysconfin interfacePOSIX- Overrides:
sysconfin classBaseNativePOSIX
-
confstr
public int confstr(jnr.constants.platform.Confstr name, java.nio.ByteBuffer buf, int len)- Specified by:
confstrin interfacePOSIX- Overrides:
confstrin classBaseNativePOSIX
-
fpathconf
public int fpathconf(int fd, jnr.constants.platform.Pathconf name)- Specified by:
fpathconfin interfacePOSIX- Overrides:
fpathconfin classBaseNativePOSIX
-
times
public Times times()
- Specified by:
timesin interfacePOSIX- Overrides:
timesin classBaseNativePOSIX
-
ioprio_get
public int ioprio_get(int which, int who)- Specified by:
ioprio_getin interfaceLinux
-
ioprio_set
public int ioprio_set(int which, int who, int ioprio)- Specified by:
ioprio_setin interfaceLinux
-
posix_fadvise
public int posix_fadvise(int fd, long offset, long len, jnr.constants.platform.PosixFadvise advise)- Specified by:
posix_fadvisein interfaceLinux
-
-