Package jnr.posix
Interface LibC
- All Known Subinterfaces:
AixLibC
,LinuxLibC
,SolarisLibC
,UnixLibC
,WindowsLibC
public interface LibC
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionint
access
(CharSequence path, int amode) int
chdir
(CharSequence path) int
chmod
(CharSequence filename, int mode) int
chown
(CharSequence filename, int user, int group) int
close
(int fd) int
confstr
(jnr.constants.platform.Confstr name, ByteBuffer buf, int len) int
daemon
(int nochdir, int noclose) int
dup
(int fd) int
dup2
(int oldFd, int newFd) int
endgrent()
int
endpwent()
jnr.ffi.Variable
<Long> environ()
int
execv
(CharSequence path, CharSequence[] argv) int
execve
(CharSequence path, CharSequence[] argv, CharSequence[] envp) int
fchmod
(int fd, int mode) int
fchown
(int fd, int user, int group) int
fcntl
(int fd, int fnctl) int
fcntl
(int fd, int fnctl, int arg) int
fcntl
(int fd, int fnctl, int... arg) Deprecated.int
fcntl
(int fd, int fnctl, jnr.ffi.Pointer arg) int
int
fdatasync
(int fd) int
flock
(int fd, int mode) int
fork()
int
fpathconf
(int fd, jnr.constants.platform.Pathconf name) int
int
int
fsync
(int fd) int
ftruncate
(int fd, long offset) int
futimens
(int fd, jnr.ffi.Pointer times) int
int
long
getcwd
(byte[] cwd, int len) int
int
getegid()
getenv
(CharSequence envName) int
geteuid()
int
getgid()
getgrent()
getgrgid
(int which) getgrnam
(CharSequence which) int
getgroups
(int size, int[] groups) int
gethostname
(ByteBuffer buffer, int len) getlogin()
int
getpgid()
int
getpgid
(int pid) int
getpgrp()
int
getpid()
int
getppid()
int
getpriority
(int which, int who) getpwent()
getpwnam
(CharSequence which) getpwuid
(int which) int
getrlimit
(int resource, jnr.ffi.Pointer rlim) int
int
getsockopt
(int s, int level, int optname, ByteBuffer optval, jnr.ffi.byref.IntByReference optlen) int
gettimeofday
(Timeval tv, long alwaysNull) int
getuid()
int
isatty
(int fd) int
kill
(int pid, int signal) int
kill
(long pid, int signal) int
lchmod
(CharSequence filename, int mode) int
lchown
(CharSequence filename, int user, int group) int
link
(CharSequence oldpath, CharSequence newpath) long
lseek
(int fd, long offset, int whence) int
lstat
(CharSequence path, FileStat stat) int
lstat64
(CharSequence path, FileStat stat) int
lutimes
(CharSequence path, Timeval[] times) int
mkdir
(CharSequence path, int mode) nl_langinfo
(int item) int
open
(CharSequence path, int flags, int perm) int
pipe
(int[] fds) int
pread
(int fd, byte[] dst, int len, int offset) long
pread
(int fd, byte[] dst, long len, long offset) int
pread
(int fd, ByteBuffer dst, int len, int offset) long
pread
(int fd, ByteBuffer dst, long len, long offset) int
pwrite
(int fd, byte[] src, int len, int offset) long
pwrite
(int fd, byte[] src, long len, long offset) int
pwrite
(int fd, ByteBuffer src, int len, int offset) long
pwrite
(int fd, ByteBuffer src, long len, long offset) int
raise
(int raise) int
read
(int fd, byte[] dst, int len) long
read
(int fd, byte[] dst, long len) int
read
(int fd, ByteBuffer dst, int len) long
read
(int fd, ByteBuffer dst, long len) int
readlink
(CharSequence path, byte[] buffer, int len) int
readlink
(CharSequence oldpath, ByteBuffer buffer, int len) int
readlink
(CharSequence path, jnr.ffi.Pointer bufPtr, int bufsize) int
int
rename
(CharSequence oldName, CharSequence newName) int
rmdir
(CharSequence path) int
int
setegid
(int egid) int
setenv
(CharSequence envName, CharSequence 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, jnr.ffi.Pointer rlim) int
int
setsid()
int
setsockopt
(int s, int level, int optname, ByteBuffer optval, int optlen) int
setuid
(int uid) long
signal
(int sig, LibC.LibCSignalHandler handler) int
socketpair
(int domain, int type, int protocol, int[] fds) int
stat
(CharSequence path, FileStat stat) int
stat64
(CharSequence path, FileStat stat) strerror
(int errno) int
symlink
(CharSequence oldpath, CharSequence newpath) int
syscall
(int number) int
syscall
(int number, int arg1) int
syscall
(int number, int arg1, int arg2) int
syscall
(int number, int arg1, int arg2, int arg3) long
sysconf
(jnr.constants.platform.Sysconf name) long
times
(NativeTimes tms) int
truncate
(CharSequence path, long length) int
umask
(int mask) int
unlink
(CharSequence path) int
unsetenv
(CharSequence envName) int
int
int
utimes
(CharSequence path, Timeval[] times) int
int
wait
(int[] status) int
waitpid
(long pid, int[] status, int options) int
write
(int fd, byte[] src, int len) long
write
(int fd, byte[] src, long len) int
write
(int fd, ByteBuffer src, int len) long
write
(int fd, ByteBuffer src, long len)
-
Method Details
-
chmod
-
fchmod
int fchmod(int fd, int mode) -
chown
-
fchown
int fchown(int fd, int user, int group) -
fstat
-
fstat64
-
getenv
-
getegid
int getegid() -
setegid
int setegid(int egid) -
geteuid
int geteuid() -
seteuid
int seteuid(int euid) -
getgid
int getgid() -
getlogin
String getlogin() -
setgid
int setgid(int gid) -
getpgid
int getpgid() -
getpgid
int getpgid(int pid) -
setpgid
int setpgid(int pid, int pgid) -
getpgrp
int getpgrp() -
setpgrp
int setpgrp(int pid, int pgrp) -
getppid
int getppid() -
getpid
int getpid() -
getpwent
NativePasswd getpwent() -
getpwuid
-
getpwnam
-
getgrent
NativeGroup getgrent() -
getgrgid
-
getgrnam
-
setpwent
int setpwent() -
endpwent
int endpwent() -
setgrent
int setgrent() -
endgrent
int endgrent() -
getuid
int getuid() -
setsid
int setsid() -
setuid
int setuid(int uid) -
getrlimit
-
getrlimit
int getrlimit(int resource, jnr.ffi.Pointer rlim) -
setrlimit
-
setrlimit
int setrlimit(int resource, jnr.ffi.Pointer rlim) -
kill
int kill(int pid, int signal) -
kill
int kill(long pid, int signal) -
dup
int dup(int fd) -
dup2
int dup2(int oldFd, int newFd) -
fcntl
-
fcntl
int fcntl(int fd, int fnctl, jnr.ffi.Pointer arg) -
fcntl
int fcntl(int fd, int fnctl) -
fcntl
int fcntl(int fd, int fnctl, int arg) -
fcntl
Deprecated. -
access
-
getdtablesize
int getdtablesize() -
signal
-
raise
int raise(int raise) -
lchmod
-
lchown
-
link
-
lstat
-
lstat64
-
mkdir
-
rmdir
-
stat
-
stat64
-
symlink
-
readlink
-
readlink
-
readlink
-
setenv
-
umask
int umask(int mask) -
unsetenv
-
utimes
-
utimes
-
futimes
-
lutimes
-
utimensat
-
utimensat
-
futimens
-
futimens
int futimens(int fd, jnr.ffi.Pointer times) -
fork
int fork() -
waitpid
int waitpid(long pid, int[] status, int options) -
wait
int wait(int[] status) -
getpriority
int getpriority(int which, int who) -
setpriority
int setpriority(int which, int who, int prio) -
isatty
int isatty(int fd) -
read
long read(int fd, byte[] dst, long len) -
write
long write(int fd, byte[] src, long len) -
read
-
write
-
pread
long pread(int fd, byte[] dst, long len, long offset) -
pwrite
long pwrite(int fd, byte[] src, long len, long offset) -
pread
-
pwrite
-
read
int read(int fd, byte[] dst, int len) -
write
int write(int fd, byte[] src, int len) -
read
-
write
-
pread
int pread(int fd, byte[] dst, int len, int offset) -
pwrite
int pwrite(int fd, byte[] src, int len, int offset) -
pread
-
pwrite
-
lseek
long lseek(int fd, long offset, int whence) -
close
int close(int fd) -
execv
-
execve
-
chdir
-
sysconf
long sysconf(jnr.constants.platform.Sysconf name) -
confstr
-
fpathconf
int fpathconf(int fd, jnr.constants.platform.Pathconf name) -
times
-
flock
int flock(int fd, int mode) -
unlink
-
open
-
pipe
int pipe(int[] fds) -
truncate
-
ftruncate
int ftruncate(int fd, long offset) -
rename
-
getcwd
long getcwd(byte[] cwd, int len) -
gethostname
-
fsync
int fsync(int fd) -
fdatasync
int fdatasync(int fd) -
socketpair
int socketpair(int domain, int type, int protocol, int[] fds) -
sendmsg
-
recvmsg
-
setsockopt
-
getsockopt
int getsockopt(int s, int level, int optname, ByteBuffer optval, jnr.ffi.byref.IntByReference optlen) -
environ
jnr.ffi.Variable<Long> environ() -
syscall
int syscall(int number) -
syscall
int syscall(int number, int arg1) -
syscall
int syscall(int number, int arg1, int arg2) -
syscall
int syscall(int number, int arg1, int arg2, int arg3) -
daemon
int daemon(int nochdir, int noclose) -
getgroups
int getgroups(int size, int[] groups) -
nl_langinfo
-
setlocale
-
strerror
-
gettimeofday
-