VBoxGuestR3LibRuntimeXF86.cpp revision 5405d56d85e288757606022f6a22700721732a8c
/* $Id$ */
/** @file
* VBoxGuestR3Lib - Ring-3 Support Library for VirtualBox guest additions,
* implements the minimum of runtime functions needed for
* XFree86 driver code.
*/
/*
* Copyright (C) 2007-2010 Sun Microsystems, Inc.
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*
* The contents of this file may alternatively be used under the terms
* of the Common Development and Distribution License Version 1.0
* (CDDL) only, as it comes in the "COPYING.CDDL" file of the
* VirtualBox OSE distribution, in which case the provisions of the
* CDDL are applicable instead of those of the GPL.
*
* You may elect to license modified versions of this file under the
* terms and conditions of either the GPL or the CDDL or both.
*
* Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
* Clara, CA 95054 USA or visit http://www.sun.com if you need
* additional information or have any questions.
*/
/****************************************************************************
* Header Files *
****************************************************************************/
extern "C" {
# define XFree86LOADER
# include <xf86_ansic.h>
# include <errno.h>
}
/* This is risky as it restricts call to the ANSI format type specifiers. */
{
int cbRet;
}
{
xf86errno = 0;
if (ppszNext)
return VERR_NO_DIGITS;
ul = UINT32_MAX;
if (pu32)
return VERR_INVALID_PARAMETER;
return VWRN_NUMBER_TOO_BIG;
if (RT_UNLIKELY(xf86errno))
/* RTErrConvertFromErrno() is not available */
return VERR_UNRESOLVED_ERROR;
return VWRN_NEGATIVE_UNSIGNED;
if (RT_UNLIKELY(*pszNext))
{
while (*pszNext)
if (!xf86isspace(*pszNext))
return VWRN_TRAILING_CHARS;
return VWRN_TRAILING_SPACES;
}
return VINF_SUCCESS;
}
{
char *psz;
return rc;
}
RTDECL(void) RTAssertMsg1Weak(const char *pszExpr, unsigned uLine, const char *pszFile, const char *pszFunction)
{
}
{
}
RTDECL(bool) RTAssertShouldPanic(void)
{
return false;
}
{
return NULL;
}
{
}
{
}
{
}