systemmem-darwin.cpp revision 8b75d89699548c4501b141a9470997dfd6db2f16
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * IPRT - RTSystemQueryTotalRam, darwin ring-3.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * Copyright (C) 2012 Oracle Corporation
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * available from http://www.virtualbox.org. This file is free software;
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * you can redistribute it and/or modify it under the terms of the GNU
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * General Public License (GPL) as published by the Free Software
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * The contents of this file may alternatively be used under the terms
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * of the Common Development and Distribution License Version 1.0
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * VirtualBox OSE distribution, in which case the provisions of the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * CDDL are applicable instead of those of the GPL.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * You may elect to license modified versions of this file under the
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync * terms and conditions of either the GPL or the CDDL or both.
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync/*******************************************************************************
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync* Header Files *
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync*******************************************************************************/
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync int rc = sysctl(aiMib, RT_ELEMENTS(aiMib), &cbPhysMem, &cb, NULL, 0);
13b491985af0d1325baad7591dcab4a9b27949cdvboxsyncRTDECL(int) RTSystemQueryAvailableRam(uint64_t *pcb)
13b491985af0d1325baad7591dcab4a9b27949cdvboxsync mach_msg_type_number_t cItems = sizeof(VmStats) / sizeof(natural_t);