init.cpp revision a9d9dc41c07feffe27c8cd6c9471d69dc617813b
3174ed450858787dfec8bf9701e282d25e87188brbowen * IPRT - Init Ring-3.
3174ed450858787dfec8bf9701e282d25e87188brbowen * Copyright (C) 2006-2007 Sun Microsystems, Inc.
3174ed450858787dfec8bf9701e282d25e87188brbowen * This file is part of VirtualBox Open Source Edition (OSE), as
3174ed450858787dfec8bf9701e282d25e87188brbowen * available from http://www.virtualbox.org. This file is free software;
3174ed450858787dfec8bf9701e282d25e87188brbowen * you can redistribute it and/or modify it under the terms of the GNU
3174ed450858787dfec8bf9701e282d25e87188brbowen * General Public License (GPL) as published by the Free Software
3174ed450858787dfec8bf9701e282d25e87188brbowen * Foundation, in version 2 as it comes in the "COPYING" file of the
3174ed450858787dfec8bf9701e282d25e87188brbowen * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
3174ed450858787dfec8bf9701e282d25e87188brbowen * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
3174ed450858787dfec8bf9701e282d25e87188brbowen * The contents of this file may alternatively be used under the terms
3174ed450858787dfec8bf9701e282d25e87188brbowen * of the Common Development and Distribution License Version 1.0
3174ed450858787dfec8bf9701e282d25e87188brbowen * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
3174ed450858787dfec8bf9701e282d25e87188brbowen * VirtualBox OSE distribution, in which case the provisions of the
3174ed450858787dfec8bf9701e282d25e87188brbowen * CDDL are applicable instead of those of the GPL.
3174ed450858787dfec8bf9701e282d25e87188brbowen * You may elect to license modified versions of this file under the
3174ed450858787dfec8bf9701e282d25e87188brbowen * terms and conditions of either the GPL or the CDDL or both.
3174ed450858787dfec8bf9701e282d25e87188brbowen * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
3174ed450858787dfec8bf9701e282d25e87188brbowen * Clara, CA 95054 USA or visit http://www.sun.com if you need
3174ed450858787dfec8bf9701e282d25e87188brbowen * additional information or have any questions.
3174ed450858787dfec8bf9701e282d25e87188brbowen/*******************************************************************************
3174ed450858787dfec8bf9701e282d25e87188brbowen* Header Files *
3174ed450858787dfec8bf9701e282d25e87188brbowen*******************************************************************************/
static bool volatile g_fInitializing = false;
if (!pszProgramPath)
return rc;
return VINF_SUCCESS;
if (fInitSUPLib)
if (pszProgramPath)
return rc;
# ifdef VBOX
return rc;
if (fInitSUPLib)
return rc;
RTProcSelf();
return rc;
RTTimeNanoTS();
return VINF_SUCCESS;