Package oshi.jna.platform.unix.freebsd
Interface FreeBsdLibc
- All Superinterfaces:
CLibrary
,com.sun.jna.platform.unix.LibCAPI
,com.sun.jna.Library
,com.sun.jna.platform.unix.Reboot
,com.sun.jna.platform.unix.Resource
C library. This class should be considered non-API as it may be removed
if/when its code is incorporated into the JNA project.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
CPU Ticksstatic class
Connection infostatic class
Return type for BSD sysctl kern.boottimeNested classes/interfaces inherited from interface oshi.jna.platform.unix.CLibrary
CLibrary.Addrinfo, CLibrary.BsdIp6stat, CLibrary.BsdIpstat, CLibrary.BsdTcpstat, CLibrary.BsdUdpstat, CLibrary.Sockaddr
Nested classes/interfaces inherited from interface com.sun.jna.platform.unix.LibCAPI
com.sun.jna.platform.unix.LibCAPI.size_t, com.sun.jna.platform.unix.LibCAPI.ssize_t
Nested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.Handler
Nested classes/interfaces inherited from interface com.sun.jna.platform.unix.Resource
com.sun.jna.platform.unix.Resource.Rlimit
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
ConstantCP_IDLE=4
static int
ConstantCP_INTR=3
static int
ConstantCP_NICE=1
static int
ConstantCP_SYS=2
static int
ConstantCP_USER=0
static int
ConstantCPUSTATES=5
static FreeBsdLibc
static int
ConstantINT_SIZE=Native.getNativeSize(int.class)
static int
ConstantUINT64_SIZE=Native.getNativeSize(long.class)
static int
static int
static int
static int
Fields inherited from interface oshi.jna.platform.unix.CLibrary
AI_CANONNAME, LOGIN_PROCESS, USER_PROCESS, UT_HOSTSIZE, UT_LINESIZE, UT_NAMESIZE
Fields inherited from interface com.sun.jna.platform.unix.LibCAPI
HOST_NAME_MAX
Fields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_TYPE_MAPPER
Fields inherited from interface com.sun.jna.platform.unix.Reboot
RB_AUTOBOOT, RB_DISABLE_CAD, RB_ENABLE_CAD, RB_HALT_SYSTEM, RB_KEXEC, RB_POWER_OFF, RB_SW_SUSPEND
Fields inherited from interface com.sun.jna.platform.unix.Resource
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
-
Method Summary
Modifier and TypeMethodDescriptionReads a line from the current file position in the utmp file.Methods inherited from interface oshi.jna.platform.unix.CLibrary
endutxent, freeaddrinfo, gai_strerror, getaddrinfo, getpid, open, pread, setutxent, sysctl, sysctlbyname, sysctlnametomib
Methods inherited from interface com.sun.jna.platform.unix.LibCAPI
close, getdomainname, getegid, getenv, geteuid, getgid, gethostname, getloadavg, getuid, msync, munmap, setdomainname, setegid, setenv, seteuid, setgid, sethostname, setuid, unsetenv
Methods inherited from interface com.sun.jna.platform.unix.Reboot
reboot
Methods inherited from interface com.sun.jna.platform.unix.Resource
getrlimit, setrlimit
-
Field Details
-
INSTANCE
-
UTX_USERSIZE
static final int UTX_USERSIZE- See Also:
- Constant Field Values
-
UTX_LINESIZE
static final int UTX_LINESIZE- See Also:
- Constant Field Values
-
UTX_IDSIZE
static final int UTX_IDSIZE- See Also:
- Constant Field Values
-
UTX_HOSTSIZE
static final int UTX_HOSTSIZE- See Also:
- Constant Field Values
-
UINT64_SIZE
static final int UINT64_SIZEConstantUINT64_SIZE=Native.getNativeSize(long.class)
-
INT_SIZE
static final int INT_SIZEConstantINT_SIZE=Native.getNativeSize(int.class)
-
CPUSTATES
static final int CPUSTATESConstantCPUSTATES=5
- See Also:
- Constant Field Values
-
CP_USER
static final int CP_USERConstantCP_USER=0
- See Also:
- Constant Field Values
-
CP_NICE
static final int CP_NICEConstantCP_NICE=1
- See Also:
- Constant Field Values
-
CP_SYS
static final int CP_SYSConstantCP_SYS=2
- See Also:
- Constant Field Values
-
CP_INTR
static final int CP_INTRConstantCP_INTR=3
- See Also:
- Constant Field Values
-
CP_IDLE
static final int CP_IDLEConstantCP_IDLE=4
- See Also:
- Constant Field Values
-
-
Method Details
-
getutxent
FreeBsdLibc.FreeBsdUtmpx getutxent()Reads a line from the current file position in the utmp file. It returns a pointer to a structure containing the fields of the line.Not thread safe
- Returns:
- a
FreeBsdLibc.FreeBsdUtmpx
on success, and NULL on failure (which includes the "record not found" case)
-