ddn.util.monaco.platform.darwin

Types 6

structhost_t
structvm_statistics64
Fields
natural_t free_count
natural_t active_count
natural_t inactive_count
natural_t wire_count
ulong[12] _pad
aliasnatural_t = uint
aliasmach_msg_type_number_t = uint
structkinfo_proc
Fields
int[2] kp_proc
int[32] kp_eproc
structstatfs
Fields
uint[32] f_fstypename
uint[1024] f_mntonname
uint[1024] f_mntfromname

Functions 22

fnint sysctl(int * name, uint namelen, void * oldp, size_t * oldlenp, const void * newp, size_t newlen)
fnint sysctlbyname(const char * name, void * oldp, size_t * oldlenp, const void * newp, size_t newlen)
fnhost_t mach_host_self()
fnint host_statistics64(host_t host_priv, int flavor, vm_statistics64 * host_info64_out, mach_msg_type_number_t * host_info64_count)
fnint getpagesize()
fnint proc_listallpids(void * buffer, int buffersize)
fnint proc_pidinfo(int pid, int flavor, ulong arg, void * buffer, int buffersize)
fnint getfsstat(statfs * buf, int bufsize, int flags)
fnint sysctlInt(string name) @safeGets system information using sysctl.
fnstring sysctlString(string name) @safeGets system information string using sysctl.
fnint getCPUCount() @safe nothrowGets CPU count using sysctl.
fnulong getPhysicalMemory() @safe nothrowGets physical memory size using sysctl.
fnstring getMacOSVersion() @safe nothrowGets macOS version string.
fnstring getCPUBrand() @safe nothrowGets CPU brand string.
fnstring getArchitecture() @safe nothrowGets machine architecture.
fnstring getHostname() @safe nothrowGets hostname.
fnint getPageSize() @safe nothrowGets memory page size.
fnvm_statistics64 getVMStatistics() @safeGets virtual memory statistics using host_statistics64.
fnint[] getAllPIDs() @safe nothrowGets all process IDs.
fnbool isAppleSilicon() @safe nothrowChecks if macOS is running on Apple Silicon.
fnstring getKernelVersion() @safe nothrowGets kernel version.
fnstring getModelIdentifier() @safe nothrowGets model identifier.

Variables 2

enumvarHOST_VM_INFO64 = 4
enumvarPROC_PIDTBSDINFO = 3