Class LazyPOSIX
java.lang.Object
jnr.posix.LazyPOSIX
- All Implemented Interfaces:
POSIX
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintaccess(CharSequence path, int amode) intintintintclose(int fd) intconfstr(jnr.constants.platform.Confstr name, ByteBuffer buf, int len) byte[]crypt(byte[] key, byte[] salt) Call the crypt function with the given key and salt as raw null-terminated byte (C char) strings.crypt(CharSequence key, CharSequence salt) intdaemon(int nochdir, int noclose) intdup(int fd) intdup2(int oldFd, int newFd) intendgrent()intendpwent()jnr.ffi.Pointerenviron()interrno()voiderrno(int value) intShell expanding and escaping version of exec which handles all the preparation of a command line or command list.intShell expanding and escaping version of exec which handles all the preparation of a command line or command list.intintintfchmod(int fd, int mode) intfchown(int fd, int user, int group) intfcntl(int fd, jnr.constants.platform.Fcntl fcntlConst) intfcntl(int fd, jnr.constants.platform.Fcntl fcntlConst, int arg) intfcntl(int fd, jnr.constants.platform.Fcntl fcntlConst, int... arg) Deprecated.intfcntlInt(int fd, jnr.constants.platform.Fcntl fcntlConst, int arg) intfdatasync(int fd) intflock(int fd, int mode) intfork()intfpathconf(int fd, jnr.constants.platform.Pathconf name) fstat(int fd) intfstat(FileDescriptor descriptor) intfstat(FileDescriptor descriptor, FileStat stat) intfsync(int fd) intftruncate(int fd, long offset) intfutimens(int fd, long[] atimespec, long[] mtimespec) intfutimens(int fd, jnr.ffi.Pointer times) intfutimes(int fd, long[] atimeval, long[] mtimeval) getcwd()intintgetegid()intgeteuid()intgetgid()getgrent()getgrgid(int which) long[]intgetgroups(int size, int[] groups) getlogin()intgetpgid()intgetpgid(int pid) intgetpgrp()intgetpid()intgetppid()intgetpriority(int which, int who) getpwent()getpwuid(int which) getrlimit(int resource) intgetrlimit(int resource, jnr.ffi.Pointer rlim) intintgettimeofday(Timeval tv) intgetuid()intisatty(int descriptor) booleanisatty(FileDescriptor descriptor) booleanisNative()intkill(int pid, int signal) intkill(long pid, int signal) intintlibc()Returns null if isNative returns false.intprivate final POSIXintlseek(int fd, long offset, int whence) longlseekLong(int fd, long offset, int whence) intintintintnewProcessMaker(String... command) nl_langinfo(int item) intopen(CharSequence path, int flags, int perm) intpipe(int[] fds) private final POSIXposix()longposix_spawnp(String path, Collection<? extends SpawnFileAction> fileActions, Collection<? extends CharSequence> argv, Collection<? extends CharSequence> envp) longposix_spawnp(String path, Collection<? extends SpawnFileAction> fileActions, Collection<? extends SpawnAttribute> spawnAttributes, Collection<? extends CharSequence> argv, Collection<? extends CharSequence> envp) intpread(int fd, byte[] buf, int n, int offset) longpread(int fd, byte[] buf, long n, long offset) intpread(int fd, ByteBuffer buf, int n, int offset) longpread(int fd, ByteBuffer buf, long n, long offset) intpwrite(int fd, byte[] buf, int n, int offset) longpwrite(int fd, byte[] buf, long n, long offset) intpwrite(int fd, ByteBuffer buf, int n, int offset) longpwrite(int fd, ByteBuffer buf, long n, long offset) intraise(int sig) intread(int fd, byte[] buf, int n) longread(int fd, byte[] buf, long n) intread(int fd, ByteBuffer buf, int n) longread(int fd, ByteBuffer buf, long n) intreadlink(CharSequence path, byte[] buf, int bufsize) intreadlink(CharSequence path, ByteBuffer buf, int bufsize) intreadlink(CharSequence path, jnr.ffi.Pointer bufPtr, int bufsize) intintrename(CharSequence oldName, CharSequence newName) intintintsetegid(int egid) intintseteuid(int euid) intsetgid(int gid) intsetgrent()intsetpgid(int pid, int pgid) intsetpgrp(int pid, int pgrp) intsetpriority(int which, int who, int prio) intsetpwent()intsetrlimit(int resource, long rlimCur, long rlimMax) intsetrlimit(int resource, jnr.ffi.Pointer rlim) intintsetsid()intsetuid(int uid) signal(jnr.constants.platform.Signal sig, SignalHandler handler) intsocketpair(int domain, int type, int protocol, int[] fds) intstrerror(int code) intlongsysconf(jnr.constants.platform.Sysconf name) times()inttruncate(CharSequence path, long length) intumask(int mask) intunlink(CharSequence path) intintintintintintwait(int[] status) intwaitpid(int pid, int[] status, int flags) intwaitpid(long pid, int[] status, int flags) intwrite(int fd, byte[] buf, int n) longwrite(int fd, byte[] buf, long n) intwrite(int fd, ByteBuffer buf, int n) longwrite(int fd, ByteBuffer buf, long n)
-
Field Details
-
handler
-
useNativePosix
private final boolean useNativePosix -
posix
-
-
Constructor Details
-
LazyPOSIX
LazyPOSIX(POSIXHandler handler, boolean useNativePosix)
-
-
Method Details
-
posix
-
loadPOSIX
-
newProcessMaker
- Specified by:
newProcessMakerin interfacePOSIX
-
newProcessMaker
- Specified by:
newProcessMakerin interfacePOSIX
-
allocateStat
- Specified by:
allocateStatin interfacePOSIX
-
allocateMsgHdr
- Specified by:
allocateMsgHdrin interfacePOSIX
-
chdir
-
chmod
-
fchmod
-
chown
-
crypt
-
crypt
public byte[] crypt(byte[] key, byte[] salt) Description copied from interface:POSIXCall the crypt function with the given key and salt as raw null-terminated byte (C char) strings. -
fchown
-
endgrent
-
endpwent
-
errno
-
errno
-
exec
Description copied from interface:POSIXShell expanding and escaping version of exec which handles all the preparation of a command line or command list. -
exec
Description copied from interface:POSIXShell expanding and escaping version of exec which handles all the preparation of a command line or command list. -
execv
-
execve
-
fork
-
fstat
-
fstat
-
fstat
-
fstat
-
getegid
-
geteuid
-
getgid
-
getdtablesize
public int getdtablesize()- Specified by:
getdtablesizein interfacePOSIX
-
getgrent
-
getgrgid
-
getgrnam
-
getlogin
-
getpgid
-
getpgid
-
getpgrp
-
getpid
-
getppid
-
getpriority
public int getpriority(int which, int who) - Specified by:
getpriorityin interfacePOSIX
-
getpwent
-
getpwnam
-
getpwuid
-
getuid
-
getrlimit
-
getrlimit
-
getrlimit
-
setrlimit
-
setrlimit
-
setrlimit
-
isatty
-
isatty
-
kill
-
kill
-
signal
-
raise
-
lchmod
-
lchown
-
link
-
lstat
-
lstat
-
mkdir
-
readlink
- Specified by:
readlinkin interfacePOSIX- Throws:
IOException
-
readlink
-
readlink
-
readlink
-
rmdir
-
setegid
-
seteuid
-
setgid
-
setgrent
-
setpgid
-
setpgrp
-
setpriority
public int setpriority(int which, int who, int prio) - Specified by:
setpriorityin interfacePOSIX
-
setpwent
-
setsid
-
setuid
-
stat
-
stat
-
symlink
-
umask
-
utimes
-
utimes
-
futimes
-
lutimes
-
utimensat
-
utimensat
-
futimens
-
futimens
-
wait
-
waitpid
-
waitpid
-
isNative
-
libc
-
environ
-
getenv
-
setenv
-
unsetenv
-
posix_spawnp
public long posix_spawnp(String path, Collection<? extends SpawnFileAction> fileActions, Collection<? extends CharSequence> argv, Collection<? extends CharSequence> envp) - Specified by:
posix_spawnpin interfacePOSIX
-
posix_spawnp
public long posix_spawnp(String path, Collection<? extends SpawnFileAction> fileActions, Collection<? extends SpawnAttribute> spawnAttributes, Collection<? extends CharSequence> argv, Collection<? extends CharSequence> envp) - Specified by:
posix_spawnpin interfacePOSIX
-
sysconf
-
confstr
-
fpathconf
-
times
-
flock
-
dup
-
dup2
-
fcntlInt
-
fcntl
-
fcntl
-
fcntl
-
access
-
close
-
unlink
-
open
-
read
-
write
-
read
-
write
-
pread
-
pwrite
-
pread
-
pwrite
-
read
-
write
-
read
-
write
-
pread
-
pwrite
-
pread
-
pwrite
-
lseek
-
lseekLong
-
pipe
-
socketpair
public int socketpair(int domain, int type, int protocol, int[] fds) - Specified by:
socketpairin interfacePOSIX
-
sendmsg
-
recvmsg
-
truncate
-
ftruncate
-
rename
-
getcwd
-
fsync
-
fdatasync
-
mkfifo
-
gethostname
- Specified by:
gethostnamein interfacePOSIX
-
daemon
-
getgroups
-
getgroups
-
nl_langinfo
- Specified by:
nl_langinfoin interfacePOSIX
-
setlocale
-
strerror
-
allocateTimeval
- Specified by:
allocateTimevalin interfacePOSIX
-
gettimeofday
- Specified by:
gettimeofdayin interfacePOSIX
-