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