The OpenD Programming Language

rt.sys.darwin.osmemory

Undocumented in source.

Members

Aliases

pid_t (from rt.sys.posix.osmemory)
alias pid_t = int via public import rt.sys.posix.osmemory : os_mem_map, os_mem_unmap, wait_pid, ChildStatus, getPageSize, pid_t, fork;
Undocumented in source.

Enums

ChildStatus (from rt.sys.posix.osmemory)
enum ChildStatus via public import rt.sys.posix.osmemory : os_mem_map, os_mem_unmap, wait_pid, ChildStatus, getPageSize, pid_t, fork;

Possible results for the wait_pid() function.

Functions

getPageSize (from rt.sys.posix.osmemory)
size_t getPageSize() via public import rt.sys.posix.osmemory : os_mem_map, os_mem_unmap, wait_pid, ChildStatus, getPageSize, pid_t, fork;

Get get the page size of OS

isLowOnMem
bool isLowOnMem(size_t mapped)

Check for any kind of memory pressure.

os_mem_map (from rt.sys.posix.osmemory)
void* os_mem_map(size_t nbytes, bool share) via public import rt.sys.posix.osmemory : os_mem_map, os_mem_unmap, wait_pid, ChildStatus, getPageSize, pid_t, fork;
Undocumented in source.
os_mem_unmap (from rt.sys.posix.osmemory)
int os_mem_unmap(void* base, size_t nbytes) via public import rt.sys.posix.osmemory : os_mem_map, os_mem_unmap, wait_pid, ChildStatus, getPageSize, pid_t, fork;
Undocumented in source.
sysctl
int sysctl(int* name, uint namelen, void* oldp, size_t* oldlenp, void* newp, size_t newlen)

Get the size of available physical memory

wait_pid (from rt.sys.posix.osmemory)
ChildStatus wait_pid(pid_t pid, bool block) via public import rt.sys.posix.osmemory : os_mem_map, os_mem_unmap, wait_pid, ChildStatus, getPageSize, pid_t, fork;

Wait for a process with PID pid to finish.

Imports

fork (from rt.sys.posix.osmemory)
public import rt.sys.posix.osmemory : os_mem_map, os_mem_unmap, wait_pid, ChildStatus, getPageSize, pid_t, fork;
Undocumented in source.

Meta