4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * IPRT - RTSystemQueryOSInfo, POSIX implementation.
c7814cf6e1240a519cbec0441e033d0e2470ed00vboxsync * Copyright (C) 2008-2010 Oracle Corporation
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * available from http://www.virtualbox.org. This file is free software;
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * you can redistribute it and/or modify it under the terms of the GNU
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * General Public License (GPL) as published by the Free Software
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * The contents of this file may alternatively be used under the terms
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * of the Common Development and Distribution License Version 1.0
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * VirtualBox OSE distribution, in which case the provisions of the
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * CDDL are applicable instead of those of the GPL.
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * You may elect to license modified versions of this file under the
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * terms and conditions of either the GPL or the CDDL or both.
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync/*******************************************************************************
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync* Header Files *
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync*******************************************************************************/
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsyncRTDECL(int) RTSystemQueryOSInfo(RTSYSOSINFO enmInfo, char *pszInfo, size_t cchInfo)
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * Quick validation.
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync AssertReturn(enmInfo > RTSYSOSINFO_INVALID && enmInfo < RTSYSOSINFO_END, VERR_INVALID_PARAMETER);
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync * Handle the request.
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync case RTSYSOSINFO_PRODUCT: pszSrc = UtsInfo.sysname; break;
4a5d1cb72abd351221a0d5bdce3a01b071f697a9vboxsync case RTSYSOSINFO_RELEASE: pszSrc = UtsInfo.release; break;