Package oshi.jna.platform.unix
Interface SolarisLibc
-
- 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
public interface SolarisLibc extends CLibrary
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 Classes Modifier and Type Interface Description static class
SolarisLibc.Exit_status
Part of utmpx structurestatic class
SolarisLibc.SolarisLwpsInfo
Nested Structure for psinfo filestatic class
SolarisLibc.SolarisPrUsage
Structure for usage filestatic class
SolarisLibc.SolarisPsInfo
Structure for psinfo filestatic class
SolarisLibc.SolarisUtmpx
Connection infostatic class
SolarisLibc.Timestruc
32/64-bit timestruc required for psinfo and lwpsinfo structuresstatic class
SolarisLibc.Timeval
32/64-bit timeval required for utmpx structure-
Nested classes/interfaces inherited from interface oshi.jna.platform.unix.CLibrary
CLibrary.Addrinfo, CLibrary.BsdIp6stat, CLibrary.BsdIpstat, CLibrary.BsdTcpstat, CLibrary.BsdUdpstat, CLibrary.Sockaddr
-
-
Field Summary
Fields Modifier and Type Field Description static SolarisLibc
INSTANCE
static int
PRARGSZ
static int
PRCLSZ
static int
PRFNSZ
static int
PRLNSZ
static int
UTX_HOSTSIZE
static int
UTX_IDSIZE
static int
UTX_LINESIZE
static int
UTX_USERSIZE
-
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.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_SYMBOL_PROVIDER, 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SolarisLibc.SolarisUtmpx
getutxent()
Reads a line from the current file position in the utmp file.int
thr_self()
Returns the thread ID of the calling thread.-
Methods inherited from interface oshi.jna.platform.unix.CLibrary
endutxent, freeaddrinfo, gai_strerror, getaddrinfo, getpid, open, pread, setutxent, sysctl, sysctlbyname, sysctlnametomib
-
-
-
-
Field Detail
-
INSTANCE
static final SolarisLibc 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
-
PRCLSZ
static final int PRCLSZ
- See Also:
- Constant Field Values
-
PRFNSZ
static final int PRFNSZ
- See Also:
- Constant Field Values
-
PRLNSZ
static final int PRLNSZ
- See Also:
- Constant Field Values
-
PRARGSZ
static final int PRARGSZ
- See Also:
- Constant Field Values
-
-
Method Detail
-
getutxent
SolarisLibc.SolarisUtmpx 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
SolarisLibc.SolarisUtmpx
on success, and NULL on failure (which includes the "record not found" case)
-
thr_self
int thr_self()
Returns the thread ID of the calling thread.- Returns:
- the thread ID of the calling thread.
-
-