Class MacSystemFunctions
java.lang.Object
oshi.ffm.ForeignFunctions
oshi.ffm.mac.MacSystemFunctions
Implementations of MacOS functions
-
Field Summary
FieldsFields inherited from class ForeignFunctions
CAPTURE_CALL_STATE, CAPTURED_STATE_LAYOUT, ERRNO_HANDLE, LIBRARY_ARENA, LINKER, SYMBOL_LOOKUP -
Method Summary
Modifier and TypeMethodDescriptionstatic intgetfsstat64(MemorySegment buffer, int bufsize, int flags) static MemorySegmentgetgrgid(int gid) static intgetpid()static MemorySegmentgetpwuid(int uid) static intgetrlimit(int resource, MemorySegment rlp) static inthost_page_size(int hostPort, MemorySegment pPageSize) 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 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) Methods 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
-
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
-