public interface Libc
extends com.sun.jna.Library
| Modifier and Type | Interface and Description |
|---|---|
static class |
Libc.Sysinfo |
| Modifier and Type | Method and Description |
|---|---|
int |
getloadavg(double[] loadavg,
int nelem)
The getloadavg() function returns the number of processes in the system
run queue averaged over various periods of time.
|
int |
getpid()
Returns the process ID of the calling process.
|
int |
readlink(String path,
com.sun.jna.Pointer buf,
int bufsize)
Places the contents of the symbolic link path in the buffer buf, which
has size bufsiz.
|
int |
sysinfo(Libc.Sysinfo info) |
static final Libc INSTANCE
int sysinfo(Libc.Sysinfo info)
int getloadavg(double[] loadavg,
int nelem)
loadavg - array to be fillednelem - number of elements in the array to fillint getpid()
int readlink(String path, com.sun.jna.Pointer buf, int bufsize)
path - A symbolic linkbuf - Holds actual path to location pointed to by symlinkbufsize - size of data in bufferCopyright © 2010–2016 com.github.dblock. All rights reserved.