public interface SystemB
extends com.sun.jna.platform.mac.SystemB
| Modifier and Type | Interface and Description |
|---|---|
static class |
SystemB.IFdata
Data type as part of IFmsgHdr
|
static class |
SystemB.IFdata64
Data type as part of IFmsgHdr
|
static class |
SystemB.IFmsgHdr
Return type for sysctl CTL_NET,PF_ROUTE
|
static class |
SystemB.IFmsgHdr2
Return type for sysctl CTL_NET,PF_ROUTE
|
static class |
SystemB.ProcBsdInfo |
static class |
SystemB.ProcTaskAllInfo |
static class |
SystemB.ProcTaskInfo |
static class |
SystemB.Statfs
The statfs() routine returns information about a mounted file system.
|
static class |
SystemB.Timeval
Return type for sysctl kern.boottime
|
static class |
SystemB.XswUsage
Return type for sysctl vm.swapusage
|
| Modifier and Type | Field and Description |
|---|---|
static SystemB |
INSTANCE |
static int |
MAXCOMLEN |
static int |
MAXPATHLEN |
static int |
MFSTYPENAMELEN |
static int |
MNAMELEN |
static int |
MNT_DWAIT |
static int |
MNT_NOWAIT |
static int |
MNT_WAIT |
static int |
PROC_ALL_PIDS |
static int |
PROC_PIDPATHINFO_MAXSIZE |
static int |
PROC_PIDTASKALLINFO |
static int |
PROC_PIDTASKINFO |
static int |
PROC_PIDTBSDINFO |
| Modifier and Type | Method and Description |
|---|---|
int |
getfsstat64(SystemB.Statfs[] buf,
int bufsize,
int flags)
The getfsstat() function returns information about all mounted file
systems.
|
int |
getloadavg(double[] loadavg,
int nelem) |
int |
getpid()
Returns the process ID of the calling process.
|
int |
mach_task_self() |
int |
proc_listpids(int type,
int typeinfo,
int[] buffer,
int buffersize)
Search through the current processes
|
int |
proc_pidinfo(int pid,
int flavor,
long arg,
com.sun.jna.Structure buffer,
int buffersize)
Return in buffer a proc_*info structure corresponding to the flavor for
the specified process
|
int |
proc_pidpath(int pid,
com.sun.jna.Pointer buffer,
int buffersize)
Return in buffer the name of the specified process
|
static final SystemB INSTANCE
static final int MAXCOMLEN
static final int MAXPATHLEN
static final int PROC_PIDPATHINFO_MAXSIZE
static final int PROC_ALL_PIDS
static final int PROC_PIDTASKALLINFO
static final int PROC_PIDTBSDINFO
static final int PROC_PIDTASKINFO
static final int MFSTYPENAMELEN
static final int MNAMELEN
static final int MNT_WAIT
static final int MNT_NOWAIT
static final int MNT_DWAIT
int mach_task_self()
int getloadavg(double[] loadavg,
int nelem)
int proc_listpids(int type,
int typeinfo,
int[] buffer,
int buffersize)
type - types of processes to be searchedtypeinfo - adjunct information for typebuffer - a C array of int-sized values to be filled with process
identifiers that hold an open file reference matching the
specified path or volume. Pass NULL to obtain the minimum
buffer size needed to hold the currently active processes.buffersize - the size (in bytes) of the provided buffer.int proc_pidinfo(int pid,
int flavor,
long arg,
com.sun.jna.Structure buffer,
int buffersize)
pid - the process identifierflavor - the type of information requestedarg - argument possibly needed for some flavorsbuffer - holds resultsbuffersize - size of resultsint proc_pidpath(int pid,
com.sun.jna.Pointer buffer,
int buffersize)
pid - the process identifierbuffer - holds resultsbuffersize - size of resultsint getfsstat64(SystemB.Statfs[] buf, int bufsize, int flags)
buf - Array of statfs structures that will be filled with results.
If buf is given as NULL, getfsstat() returns just the number
of mounted file systems.bufsize - Size of the buffer to fillflags - If flags is set to MNT_NOWAIT, getfsstat() will directly
return the information retained in the kernel to avoid delays
caused by waiting for updated information from a file system
that is perhaps temporarily unable to respond. Some of the
information returned may be out of date, however; if flags is
set to MNT_WAIT or MNT_DWAIT instead, getfsstat() will request
updated information from each mounted filesystem before
returning.int getpid()
Copyright © 2010–2016 com.github.dblock. All rights reserved.