Class MacSystemFunctions
java.lang.Object
oshi.ffm.ForeignFunctions
oshi.ffm.mac.MacForeignFunctions
oshi.ffm.mac.MacSystemFunctions
Implementations of MacOS functions
-
Field Summary
FieldsFields inherited from class MacForeignFunctions
FRAMEWORK_SEARCH_PATHSFields inherited from class ForeignFunctions
CAPTURE_CALL_STATE, CAPTURED_STATE_LAYOUT, ERRNO_HANDLE, LIBRARY_ARENA, LINKER, SYMBOL_LOOKUP -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic voidstatic Stringgai_strerror(int ecode) static intgetaddrinfo(MemorySegment node, MemorySegment service, MemorySegment hints, MemorySegment res) static intgetfsstat64(MemorySegment buffer, int bufsize, int flags) static MemorySegmentgetgrgid(int gid) static intgethostname(MemorySegment name, long namelen) static intgetloadavg(MemorySegment loadavg, int nelem) static intgetpid()static MemorySegmentgetpwuid(int uid) static intgetrlimit(int resource, MemorySegment rlp) static MemorySegmentstatic inthost_page_size(int hostPort, MemorySegment pPageSize) static inthost_processor_info(MemorySegment callState, int hostPort, int flavor, MemorySegment processorCount, MemorySegment processorInfo, MemorySegment processorInfoCount) static inthost_statistics(MemorySegment callState, int hostPort, int hostStat, MemorySegment stats, MemorySegment count) static intstatic intmach_port_deallocate(int task, int name) static intstatic intproc_listpids(int type, int typeinfo, MemorySegment pids, int bufferSize) static intproc_pid_rusage(int pid, int flavor, MemorySegment buffer) static intproc_pidfdinfo(int pid, int fd, int flavor, MemorySegment buffer, int bufferSize) static intproc_pidinfo(int pid, int flavor, long arg, MemorySegment buffer, int bufferSize) static intproc_pidpath(int pid, MemorySegment buffer, int bufferSize) static voidstatic intsysctl(MemorySegment callState, MemorySegment name, int namelen, MemorySegment oldp, MemorySegment oldlenp, MemorySegment newp, long newlen) static intsysctlbyname(MemorySegment callState, MemorySegment name, MemorySegment oldp, MemorySegment oldlenp, MemorySegment newp, long newlen) static intvm_deallocate(int targetTask, long address, long size) Methods inherited from class MacForeignFunctions
frameworkLookupMethods inherited from class ForeignFunctions
downcall, getByteArrayFromNativePointer, getErrno, getStringFromNativePointer, getStructFromNativePointer, lib, libraryLookup
-
Field Details
-
SIZE_T
-
-
Method Details
-
proc_listpids
public static int proc_listpids(int type, int typeinfo, MemorySegment pids, int bufferSize) throws Throwable - Throws:
Throwable
-
proc_pidinfo
public static int proc_pidinfo(int pid, int flavor, long arg, MemorySegment buffer, int bufferSize) throws Throwable - Throws:
Throwable
-
proc_pidpath
- Throws:
Throwable
-
proc_pid_rusage
- Throws:
Throwable
-
proc_pidfdinfo
public static int proc_pidfdinfo(int pid, int fd, int flavor, MemorySegment buffer, int bufferSize) throws Throwable - Throws:
Throwable
-
getpwuid
- Throws:
Throwable
-
getgrgid
- Throws:
Throwable
-
getpid
-
sysctl
public static int sysctl(MemorySegment callState, MemorySegment name, int namelen, MemorySegment oldp, MemorySegment oldlenp, MemorySegment newp, long newlen) throws Throwable - Throws:
Throwable
-
sysctlbyname
public static int sysctlbyname(MemorySegment callState, MemorySegment name, MemorySegment oldp, MemorySegment oldlenp, MemorySegment newp, long newlen) throws Throwable - Throws:
Throwable
-
getrlimit
- Throws:
Throwable
-
mach_task_self
-
mach_port_deallocate
-
getfsstat64
- Throws:
Throwable
-
setutxent
-
getutxent
- Throws:
Throwable
-
endutxent
-
gethostname
- Throws:
Throwable
-
getaddrinfo
public static int getaddrinfo(MemorySegment node, MemorySegment service, MemorySegment hints, MemorySegment res) throws Throwable - Throws:
Throwable
-
freeaddrinfo
- Throws:
Throwable
-
gai_strerror
-
mach_host_self
-
host_page_size
- Throws:
Throwable
-
host_statistics
public static int host_statistics(MemorySegment callState, int hostPort, int hostStat, MemorySegment stats, MemorySegment count) throws Throwable - Throws:
Throwable
-
host_processor_info
public static int host_processor_info(MemorySegment callState, int hostPort, int flavor, MemorySegment processorCount, MemorySegment processorInfo, MemorySegment processorInfoCount) throws Throwable - Throws:
Throwable
-
getloadavg
- Throws:
Throwable
-
vm_deallocate
-