public interface CLibrary
extends com.sun.jna.Library
Modifier and Type | Interface and Description |
---|---|
static class |
CLibrary.FILE |
Modifier and Type | Method and Description |
---|---|
int |
chdir(String dir) |
int |
execv(String file,
com.sun.jna.StringArray args) |
int |
fclose(CLibrary.FILE file) |
CLibrary.FILE |
fopen(String fileName,
String mode) |
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 |
perror(String msg) |
int |
readlink(String filename,
com.sun.jna.Memory buffer,
com.sun.jna.NativeLong size)
Read a symlink.
|
int |
setenv(String name,
String value) |
int |
setgid(short newgid) |
int |
setsid() |
int |
setuid(short newuid) |
String |
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 |
unsetenv(String name) |
static final CLibrary LIBC
int fork()
int kill(int pid, int signum)
int setsid()
int setuid(short newuid)
int setgid(short newgid)
int umask(int mask)
int getpid()
int getppid()
int chdir(String dir)
int execv(String file, com.sun.jna.StringArray args)
int unsetenv(String name)
void perror(String msg)
String strerror(int errno)
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 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 sysctlnametomib(String name, com.sun.jna.Pointer mibp, com.sun.jna.ptr.IntByReference size)
CLibrary.FILE fopen(String fileName, String mode)
int fseek(CLibrary.FILE file, long offset, int whence)
long ftell(CLibrary.FILE file)
int fread(com.sun.jna.Pointer buf, int size, int count, CLibrary.FILE file)
int fclose(CLibrary.FILE file)
int readlink(String filename, com.sun.jna.Memory buffer, com.sun.jna.NativeLong size)
Copyright © 2015. All rights reserved.