public interface SystemB extends CLibrary, com.sun.jna.platform.mac.SystemB
| Modifier and Type | Interface and Description |
|---|---|
static class |
SystemB.Group
Return type for getgrgid
|
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.Passwd
Return type for getpwuid
|
static class |
SystemB.ProcBsdInfo |
static class |
SystemB.ProcTaskAllInfo |
static class |
SystemB.ProcTaskInfo |
static class |
SystemB.RUsageInfoV2 |
static class |
SystemB.Statfs
The statfs() routine returns information about a mounted file system.
|
static class |
SystemB.XswUsage
Return type for sysctl vm.swapusage
|
CLibrary.Addrinfo, CLibrary.Sockaddr, CLibrary.Timeval| 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 |
static int |
RUSAGE_INFO_V2 |
AI_CANONNAME| 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.
|
SystemB.Group |
getgrgid(int gid)
This function searches the group database for the given group name
pointed to by the group id given by gid, returning the first one
encountered.
|
SystemB.Passwd |
getpwuid(int uid)
This function searches the password database for the given user uid,
always returning the first one encountered.
|
int |
proc_listpids(int type,
int typeinfo,
int[] buffer,
int buffersize)
Search through the current processes
|
int |
proc_pid_rusage(int pid,
int flavor,
SystemB.RUsageInfoV2 buffer)
Return resource usage information for the given pid, which can be a live
process or a zombie.
|
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
|
freeaddrinfo, gai_strerror, getaddrinfo, getloadavg, getpagesize, getpid, readlink, sysctl, sysctlbyname, sysctlnametomibstatic 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
static final int RUSAGE_INFO_V2
SystemB.Passwd getpwuid(int uid)
uid - The user IDSystemB.Group getgrgid(int gid)
gid - The group IDint 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 proc_pid_rusage(int pid,
int flavor,
SystemB.RUsageInfoV2 buffer)
pid - the process identifierflavor - the type of information requestedbuffer - holds 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.Copyright © 2010–2017 oshi. All rights reserved.