Package oshi.jna.platform.mac
Interface SystemB
- 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,- com.sun.jna.platform.mac.SystemB
System class. This class should be considered non-API as it may be removed if/when its code is incorporated into the
 JNA project.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic classMac internet socket infostatic classMac connection infostatic classUnion for TCP or internet socket infostatic classMac file descriptor infostatic classMac file infostatic classMac socket infostatic classMack IP Socket Infostatic classMac TCP socket infoNested classes/interfaces inherited from interface oshi.jna.platform.unix.CLibraryCLibrary.Addrinfo, CLibrary.BsdIp6stat, CLibrary.BsdIpstat, CLibrary.BsdTcpstat, CLibrary.BsdUdpstat, CLibrary.SockaddrNested classes/interfaces inherited from interface com.sun.jna.platform.unix.LibCAPIcom.sun.jna.platform.unix.LibCAPI.size_t, com.sun.jna.platform.unix.LibCAPI.ssize_tNested classes/interfaces inherited from interface com.sun.jna.Librarycom.sun.jna.Library.HandlerNested classes/interfaces inherited from interface com.sun.jna.platform.unix.Resourcecom.sun.jna.platform.unix.Resource.RlimitNested classes/interfaces inherited from interface com.sun.jna.platform.mac.SystemBcom.sun.jna.platform.mac.SystemB.Group, com.sun.jna.platform.mac.SystemB.HostCpuLoadInfo, com.sun.jna.platform.mac.SystemB.HostLoadInfo, com.sun.jna.platform.mac.SystemB.IFdata, com.sun.jna.platform.mac.SystemB.IFdata64, com.sun.jna.platform.mac.SystemB.IFmsgHdr, com.sun.jna.platform.mac.SystemB.IFmsgHdr2, com.sun.jna.platform.mac.SystemB.Passwd, com.sun.jna.platform.mac.SystemB.ProcBsdInfo, com.sun.jna.platform.mac.SystemB.ProcTaskAllInfo, com.sun.jna.platform.mac.SystemB.ProcTaskInfo, com.sun.jna.platform.mac.SystemB.RUsageInfoV2, com.sun.jna.platform.mac.SystemB.Statfs, com.sun.jna.platform.mac.SystemB.Timeval, com.sun.jna.platform.mac.SystemB.Timezone, com.sun.jna.platform.mac.SystemB.VMMeter, com.sun.jna.platform.mac.SystemB.VMStatistics, com.sun.jna.platform.mac.SystemB.VMStatistics64, com.sun.jna.platform.mac.SystemB.VnodeInfoPath, com.sun.jna.platform.mac.SystemB.VnodePathInfo, com.sun.jna.platform.mac.SystemB.XswUsage
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final SystemBstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from interface oshi.jna.platform.unix.CLibraryAI_CANONNAME, LOGIN_PROCESS, USER_PROCESS, UT_HOSTSIZE, UT_LINESIZE, UT_NAMESIZEFields inherited from interface com.sun.jna.platform.unix.LibCAPIHOST_NAME_MAXFields inherited from interface com.sun.jna.LibraryOPTION_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_MAPPERFields inherited from interface com.sun.jna.platform.unix.RebootRB_AUTOBOOT, RB_DISABLE_CAD, RB_ENABLE_CAD, RB_HALT_SYSTEM, RB_KEXEC, RB_POWER_OFF, RB_SW_SUSPENDFields inherited from interface com.sun.jna.platform.unix.ResourceRLIMIT_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_STACKFields inherited from interface com.sun.jna.platform.mac.SystemBCPU_STATE_IDLE, CPU_STATE_MAX, CPU_STATE_NICE, CPU_STATE_SYSTEM, CPU_STATE_USER, HOST_CPU_LOAD_INFO, HOST_LOAD_INFO, HOST_VM_INFO, HOST_VM_INFO64, INT_SIZE, MAXCOMLEN, MAXPATHLEN, MFSTYPENAMELEN, MNAMELEN, MNT_DWAIT, MNT_NOWAIT, MNT_WAIT, PROC_ALL_PIDS, PROC_PIDPATHINFO_MAXSIZE, PROC_PIDTASKALLINFO, PROC_PIDTASKINFO, PROC_PIDTBSDINFO, PROC_PIDVNODEPATHINFO, PROCESSOR_BASIC_INFO, PROCESSOR_CPU_LOAD_INFO, RUSAGE_INFO_V2, UINT64_SIZE
- 
Method SummaryModifier and TypeMethodDescriptionReads a line from the current file position in the utmp file.intproc_pidfdinfo(int pid, int fd, int flavor, com.sun.jna.Structure buffer, int buffersize) Methods inherited from interface oshi.jna.platform.unix.CLibraryendutxent, freeaddrinfo, gai_strerror, getaddrinfo, getpid, open, pread, setutxent, sysctl, sysctlbyname, sysctlnametomibMethods inherited from interface com.sun.jna.platform.unix.LibCAPIclose, getdomainname, getegid, getenv, geteuid, getgid, gethostname, getloadavg, getuid, msync, munmap, setdomainname, setegid, setenv, seteuid, setgid, sethostname, setuid, unsetenvMethods inherited from interface com.sun.jna.platform.unix.RebootrebootMethods inherited from interface com.sun.jna.platform.unix.Resourcegetrlimit, setrlimitMethods inherited from interface com.sun.jna.platform.mac.SystemBgetfsstat64, getgrgid, getpid, getpwuid, gettimeofday, host_page_size, host_processor_info, host_statistics, host_statistics64, mach_host_self, mach_port_deallocate, mach_task_self, proc_listpids, proc_pid_rusage, proc_pidinfo, proc_pidpath, sysctl, sysctl, sysctlbyname, sysctlbyname, sysctlnametomib, sysctlnametomib
- 
Field Details- 
INSTANCE
- 
PROC_PIDLISTFDSstatic final int PROC_PIDLISTFDS- See Also:
 
- 
PROX_FDTYPE_SOCKETstatic final int PROX_FDTYPE_SOCKET- See Also:
 
- 
PROC_PIDFDSOCKETINFOstatic final int PROC_PIDFDSOCKETINFO- See Also:
 
- 
TSI_T_NTIMERSstatic final int TSI_T_NTIMERS- See Also:
 
- 
SOCKINFO_INstatic final int SOCKINFO_IN- See Also:
 
- 
SOCKINFO_TCPstatic final int SOCKINFO_TCP- See Also:
 
- 
UTX_USERSIZEstatic final int UTX_USERSIZE- See Also:
 
- 
UTX_LINESIZEstatic final int UTX_LINESIZE- See Also:
 
- 
UTX_IDSIZEstatic final int UTX_IDSIZE- See Also:
 
- 
UTX_HOSTSIZEstatic final int UTX_HOSTSIZE- See Also:
 
- 
AF_INETstatic final int AF_INET- See Also:
 
- 
AF_INET6static final int AF_INET6- See Also:
 
 
- 
- 
Method Details- 
getutxentSystemB.MacUtmpx 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 SystemB.MacUtmpxon success, and NULL on failure (which includes the "record not found" case)
 
- 
proc_pidfdinfoint proc_pidfdinfo(int pid, int fd, int flavor, com.sun.jna.Structure buffer, int buffersize) 
 
-