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 TypeMethodDescriptionint
int
int
fclose
(CLibrary.FILE file) int
fork()
int
fread
(com.sun.jna.Pointer buf, int size, int count, CLibrary.FILE file) int
fseek
(CLibrary.FILE file, long offset, int whence) long
ftell
(CLibrary.FILE file) int
getpid()
int
getppid()
int
kill
(int pid, int signum) void
int
Read a symlink.int
int
setgid
(short newgid) int
setsid()
int
setuid
(short newuid) strerror
(int errno) 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) 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) int
sysctlnametomib
(String name, com.sun.jna.Pointer mibp, com.sun.jna.ptr.IntByReference size) int
umask
(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.
-