Package com.sun.akuma
Interface CLibrary
- All Superinterfaces:
com.sun.jna.Library
public interface CLibrary
extends com.sun.jna.Library
GNU C library.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler -
Field Summary
FieldsFields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPER -
Method Summary
Modifier and TypeMethodDescriptionintintintfclose(CLibrary.FILE file) intfork()intfread(com.sun.jna.Pointer buf, int size, int count, CLibrary.FILE file) intfseek(CLibrary.FILE file, long offset, int whence) longftell(CLibrary.FILE file) intgetpid()intgetppid()intkill(int pid, int signum) voidintRead a symlink.intintsetgid(short newgid) intsetsid()intsetuid(short newuid) strerror(int errno) intsysctl(int[] mib, int nameLen, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, com.sun.jna.ptr.IntByReference newlen) intsysctlbyname(String name, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, com.sun.jna.ptr.IntByReference newlen) intsysctlnametomib(String name, com.sun.jna.Pointer mibp, com.sun.jna.ptr.IntByReference size) intumask(int mask) int
-
Field Details
-
LIBC
-
-
Method Details
-
fork
int fork() -
kill
int kill(int pid, int signum) -
setsid
int setsid() -
setuid
int setuid(short newuid) -
setgid
int setgid(short newgid) -
umask
int umask(int mask) -
getpid
int getpid() -
getppid
int getppid() -
chdir
-
execv
-
setenv
-
unsetenv
-
perror
-
strerror
-
sysctlbyname
int sysctlbyname(String name, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, com.sun.jna.ptr.IntByReference newlen) -
sysctl
int sysctl(int[] mib, int nameLen, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, com.sun.jna.ptr.IntByReference newlen) -
sysctlnametomib
-
fopen
-
fseek
-
ftell
-
fread
-
fclose
-
readlink
Read a symlink. The name will be copied into the specified memory, and returns the number of bytes copied. The string is not null-terminated.- Returns:
- if the return value equals size, the caller needs to retry with a bigger buffer. If -1, error.
-