public interface POSIX
Modifier and Type | Method and Description |
---|---|
int |
access(CharSequence path,
int amode) |
MsgHdr |
allocateMsgHdr() |
FileStat |
allocateStat() |
int |
chdir(String path) |
int |
chmod(String filename,
int mode) |
int |
chown(String filename,
int user,
int group) |
int |
close(int fd) |
byte[] |
crypt(byte[] key,
byte[] salt)
Call the crypt function with the given key and salt as raw null-terminated byte (C char) strings.
|
CharSequence |
crypt(CharSequence key,
CharSequence salt) |
int |
dup(int fd) |
int |
dup2(int oldFd,
int newFd) |
int |
endgrent() |
int |
endpwent() |
int |
errno() |
void |
errno(int value) |
int |
exec(String path,
String... argv)
Shell expanding and escaping version of exec which handles all the
preparation of a command line or command list.
|
int |
exec(String path,
String[] argv,
String[] envp)
Shell expanding and escaping version of exec which handles all the
preparation of a command line or command list.
|
int |
execv(String path,
String[] argv) |
int |
execve(String path,
String[] argv,
String[] envp) |
int |
fchmod(int fd,
int mode) |
int |
fchown(int fd,
int user,
int group) |
int |
fcntl(int fd,
jnr.constants.platform.Fcntl fcntlConst) |
int |
fcntl(int fd,
jnr.constants.platform.Fcntl fcntlConst,
int... arg)
Deprecated.
This version does not pass args because jnr-ffi does not support variadic invocation.
|
int |
fcntlInt(int fd,
jnr.constants.platform.Fcntl fcntlConst,
int arg) |
int |
fdatasync(int fd) |
int |
flock(int fd,
int operation) |
int |
fork() |
FileStat |
fstat(FileDescriptor descriptor) |
int |
fstat(FileDescriptor descriptor,
FileStat stat) |
FileStat |
fstat(int descriptor) |
int |
fstat(int fd,
FileStat stat) |
int |
fsync(int fd) |
int |
ftruncate(int fd,
long offset) |
int |
futimes(int fd,
long[] atimeval,
long[] mtimeval) |
String |
getcwd() |
int |
getdtablesize() |
int |
getegid() |
String |
getenv(String envName) |
int |
geteuid() |
int |
getgid() |
Group |
getgrent() |
Group |
getgrgid(int which) |
Group |
getgrnam(String which) |
String |
getlogin() |
int |
getpgid() |
int |
getpgid(int pid) |
int |
getpgrp() |
int |
getpid() |
int |
getppid() |
int |
getpriority(int which,
int who) |
Passwd |
getpwent() |
Passwd |
getpwnam(String which) |
Passwd |
getpwuid(int which) |
RLimit |
getrlimit(int resource) |
int |
getrlimit(int resource,
jnr.ffi.Pointer rlim) |
int |
getrlimit(int resource,
RLimit rlim) |
int |
getuid() |
boolean |
isatty(FileDescriptor descriptor) |
boolean |
isNative() |
int |
kill(int pid,
int signal) |
int |
lchmod(String filename,
int mode) |
int |
lchown(String filename,
int user,
int group) |
LibC |
libc()
Returns null if isNative returns false.
|
int |
link(String oldpath,
String newpath) |
int |
lseek(int fd,
long offset,
int whence) |
FileStat |
lstat(String path) |
int |
lstat(String path,
FileStat stat) |
int |
mkdir(String path,
int mode) |
ProcessMaker |
newProcessMaker() |
ProcessMaker |
newProcessMaker(String... command) |
int |
open(CharSequence path,
int flags,
int perm) |
int |
pipe(int[] fds) |
long |
posix_spawnp(String path,
Collection<? extends SpawnFileAction> fileActions,
Collection<? extends CharSequence> argv,
Collection<? extends CharSequence> envp) |
long |
posix_spawnp(String path,
Collection<? extends SpawnFileAction> fileActions,
Collection<? extends SpawnAttribute> spawnAttributes,
Collection<? extends CharSequence> argv,
Collection<? extends CharSequence> envp) |
int |
pread(int fd,
byte[] buf,
int n,
int offset) |
int |
pread(int fd,
ByteBuffer buf,
int n,
int offset) |
int |
pwrite(int fd,
byte[] buf,
int n,
int offset) |
int |
pwrite(int fd,
ByteBuffer buf,
int n,
int offset) |
int |
read(int fd,
byte[] buf,
int n) |
int |
read(int fd,
ByteBuffer buf,
int n) |
int |
readlink(CharSequence path,
byte[] buf,
int bufsize) |
int |
readlink(CharSequence path,
ByteBuffer buf,
int bufsize) |
int |
readlink(CharSequence path,
jnr.ffi.Pointer bufPtr,
int bufsize) |
String |
readlink(String path) |
int |
recvmsg(int socket,
MsgHdr message,
int flags) |
int |
rename(CharSequence oldName,
CharSequence newName) |
int |
rmdir(String path) |
int |
sendmsg(int socket,
MsgHdr message,
int flags) |
int |
setegid(int egid) |
int |
setenv(String envName,
String envValue,
int overwrite) |
int |
seteuid(int euid) |
int |
setgid(int gid) |
int |
setgrent() |
int |
setpgid(int pid,
int pgid) |
int |
setpgrp(int pid,
int pgrp) |
int |
setpriority(int which,
int who,
int prio) |
int |
setpwent() |
int |
setrlimit(int resource,
long rlimCur,
long rlimMax) |
int |
setrlimit(int resource,
jnr.ffi.Pointer rlim) |
int |
setrlimit(int resource,
RLimit rlim) |
int |
setsid() |
int |
setuid(int uid) |
SignalHandler |
signal(jnr.constants.platform.Signal sig,
SignalHandler handler) |
int |
socketpair(int domain,
int type,
int protocol,
int[] fds) |
FileStat |
stat(String path) |
int |
stat(String path,
FileStat stat) |
int |
symlink(String oldpath,
String newpath) |
long |
sysconf(jnr.constants.platform.Sysconf name) |
Times |
times() |
int |
truncate(CharSequence path,
long length) |
int |
umask(int mask) |
int |
unlink(CharSequence path) |
int |
unsetenv(String envName) |
int |
utimes(String path,
long[] atimeval,
long[] mtimeval) |
int |
utimes(String path,
jnr.ffi.Pointer times) |
int |
wait(int[] status) |
int |
waitpid(int pid,
int[] status,
int flags) |
int |
waitpid(long pid,
int[] status,
int flags) |
int |
write(int fd,
byte[] buf,
int n) |
int |
write(int fd,
ByteBuffer buf,
int n) |
CharSequence crypt(CharSequence key, CharSequence salt)
byte[] crypt(byte[] key, byte[] salt)
key
- null-terminated key bytessalt
- null-terminated salt bytesFileStat allocateStat()
int chmod(String filename, int mode)
int fchmod(int fd, int mode)
int chown(String filename, int user, int group)
int fchown(int fd, int user, int group)
int exec(String path, String... argv)
int exec(String path, String[] argv, String[] envp)
int fork()
FileStat fstat(FileDescriptor descriptor)
FileStat fstat(int descriptor)
int fstat(FileDescriptor descriptor, FileStat stat)
int fstat(int fd, FileStat stat)
int getegid()
int geteuid()
int seteuid(int euid)
int getgid()
int getdtablesize()
String getlogin()
int getpgid()
int getpgid(int pid)
int getpgrp()
int getpid()
int getppid()
int getpriority(int which, int who)
Passwd getpwent()
Passwd getpwuid(int which)
Group getgrgid(int which)
Group getgrent()
int endgrent()
int setgrent()
int endpwent()
int setpwent()
int getuid()
int getrlimit(int resource, RLimit rlim)
int getrlimit(int resource, jnr.ffi.Pointer rlim)
RLimit getrlimit(int resource)
int setrlimit(int resource, RLimit rlim)
int setrlimit(int resource, jnr.ffi.Pointer rlim)
int setrlimit(int resource, long rlimCur, long rlimMax)
boolean isatty(FileDescriptor descriptor)
int kill(int pid, int signal)
SignalHandler signal(jnr.constants.platform.Signal sig, SignalHandler handler)
int lchmod(String filename, int mode)
int lchown(String filename, int user, int group)
int mkdir(String path, int mode)
String readlink(String path) throws IOException
IOException
int readlink(CharSequence path, byte[] buf, int bufsize)
int readlink(CharSequence path, ByteBuffer buf, int bufsize)
int readlink(CharSequence path, jnr.ffi.Pointer bufPtr, int bufsize)
int rmdir(String path)
int setsid()
int setgid(int gid)
int setegid(int egid)
int setpgid(int pid, int pgid)
int setpgrp(int pid, int pgrp)
int setpriority(int which, int who, int prio)
int setuid(int uid)
int umask(int mask)
int unsetenv(String envName)
int utimes(String path, long[] atimeval, long[] mtimeval)
int utimes(String path, jnr.ffi.Pointer times)
int futimes(int fd, long[] atimeval, long[] mtimeval)
int waitpid(int pid, int[] status, int flags)
int waitpid(long pid, int[] status, int flags)
int wait(int[] status)
int errno()
void errno(int value)
int chdir(String path)
boolean isNative()
LibC libc()
ProcessMaker newProcessMaker(String... command)
ProcessMaker newProcessMaker()
long sysconf(jnr.constants.platform.Sysconf name)
Times times()
long posix_spawnp(String path, Collection<? extends SpawnFileAction> fileActions, Collection<? extends CharSequence> argv, Collection<? extends CharSequence> envp)
long posix_spawnp(String path, Collection<? extends SpawnFileAction> fileActions, Collection<? extends SpawnAttribute> spawnAttributes, Collection<? extends CharSequence> argv, Collection<? extends CharSequence> envp)
int flock(int fd, int operation)
int dup(int fd)
int dup2(int oldFd, int newFd)
int fcntlInt(int fd, jnr.constants.platform.Fcntl fcntlConst, int arg)
int fcntl(int fd, jnr.constants.platform.Fcntl fcntlConst)
int access(CharSequence path, int amode)
int close(int fd)
int unlink(CharSequence path)
int open(CharSequence path, int flags, int perm)
int write(int fd, byte[] buf, int n)
int read(int fd, byte[] buf, int n)
int pwrite(int fd, byte[] buf, int n, int offset)
int pread(int fd, byte[] buf, int n, int offset)
int write(int fd, ByteBuffer buf, int n)
int read(int fd, ByteBuffer buf, int n)
int pwrite(int fd, ByteBuffer buf, int n, int offset)
int pread(int fd, ByteBuffer buf, int n, int offset)
int lseek(int fd, long offset, int whence)
int pipe(int[] fds)
int truncate(CharSequence path, long length)
int ftruncate(int fd, long offset)
int rename(CharSequence oldName, CharSequence newName)
String getcwd()
int socketpair(int domain, int type, int protocol, int[] fds)
int sendmsg(int socket, MsgHdr message, int flags)
int recvmsg(int socket, MsgHdr message, int flags)
MsgHdr allocateMsgHdr()
int fcntl(int fd, jnr.constants.platform.Fcntl fcntlConst, int... arg)
int fsync(int fd)
int fdatasync(int fd)
Copyright © 2015. All Rights Reserved.