public interface FreeBsdLibc extends CLibrary
Modifier and Type | Interface and Description |
---|---|
static class |
FreeBsdLibc.CpTime |
CLibrary.Addrinfo, CLibrary.Sockaddr, CLibrary.Timeval
Modifier and Type | Field and Description |
---|---|
static int |
CP_IDLE
Constant
CP_IDLE=4 |
static int |
CP_INTR
Constant
CP_INTR=3 |
static int |
CP_NICE
Constant
CP_NICE=1 |
static int |
CP_SYS
Constant
CP_SYS=2 |
static int |
CP_USER
Constant
CP_USER=0 |
static int |
CPUSTATES
Constant
CPUSTATES=5 |
static FreeBsdLibc |
INSTANCE
Constant
INSTANCE |
static int |
INT_SIZE
Constant
INT_SIZE=Native.getNativeSize(int.class) |
static int |
UINT64_SIZE
Constant
UINT64_SIZE=Native.getNativeSize(long.class) |
AI_CANONNAME
RB_AUTOBOOT, RB_DISABLE_CAD, RB_ENABLE_CAD, RB_HALT_SYSTEM, RB_KEXEC, RB_POWER_OFF, RB_SW_SUSPEND
RLIMIT_AS, RLIMIT_CORE, RLIMIT_CPU, RLIMIT_DATA, RLIMIT_FSIZE, RLIMIT_LOCKS, RLIMIT_MEMLOCK, RLIMIT_MSGQUEUE, RLIMIT_NICE, RLIMIT_NLIMITS, RLIMIT_NOFILE, RLIMIT_NPROC, RLIMIT_RSS, RLIMIT_RTPRIO, RLIMIT_RTTIME, RLIMIT_SIGPENDING, RLIMIT_STACK
Modifier and Type | Method and Description |
---|---|
int |
sysctl(int[] name,
int namelen,
com.sun.jna.Pointer oldp,
com.sun.jna.ptr.IntByReference oldlenp,
com.sun.jna.Pointer newp,
int newlen)
The sysctl() function retrieves system information and allows processes with
appropriate privileges to set system information.
|
int |
sysctlbyname(String name,
com.sun.jna.Pointer oldp,
com.sun.jna.ptr.IntByReference oldlenp,
com.sun.jna.Pointer newp,
int newlen)
The sysctlbyname() function accepts an ASCII representation of the name and
internally looks up the integer name vector.
|
int |
sysctlnametomib(String name,
com.sun.jna.Pointer mibp,
com.sun.jna.ptr.IntByReference size)
The sysctlnametomib() function accepts an ASCII representation of the name,
looks up the integer name vector, and returns the numeric representation in
the mib array pointed to by mibp.
|
freeaddrinfo, gai_strerror, getaddrinfo, getpid, readlink
static final FreeBsdLibc INSTANCE
INSTANCE
static final int UINT64_SIZE
UINT64_SIZE=Native.getNativeSize(long.class)
static final int INT_SIZE
INT_SIZE=Native.getNativeSize(int.class)
static final int CPUSTATES
CPUSTATES=5
static final int CP_USER
CP_USER=0
static final int CP_NICE
CP_NICE=1
static final int CP_SYS
CP_SYS=2
static final int CP_INTR
CP_INTR=3
static final int CP_IDLE
CP_IDLE=4
int sysctl(int[] name, int namelen, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, int newlen)
name
- MIB array of integersnamelen
- length of the MIB arrayoldp
- Information retrievedoldlenp
- Size of information retrievednewp
- Information to be writtennewlen
- Size of information to be writtenint sysctlbyname(String name, com.sun.jna.Pointer oldp, com.sun.jna.ptr.IntByReference oldlenp, com.sun.jna.Pointer newp, int newlen)
name
- ASCII representation of the MIB nameoldp
- Information retrievedoldlenp
- Size of information retrievednewp
- Information to be writtennewlen
- Size of information to be writtenint sysctlnametomib(String name, com.sun.jna.Pointer mibp, com.sun.jna.ptr.IntByReference size)
name
- ASCII representation of the namemibp
- Integer array containing the corresponding name vector.size
- On input, number of elements in the returned array; on output, the
number of entries copied.Copyright © 2010–2019 oshi. All rights reserved.