VBoxDTraceLibCWrappers.h revision 77b490c77af277218928facc8eca6ad1a58de9e9
/* $Id$ */
/** @file
* VBoxDTraceTLibCWrappers.h - IPRT wrappers/fake for lib C stuff.
*
* Contributed by: bird
*/
/*
* Copyright (C) 2012-2015 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* Development and Distribution License Version 1.0 (CDDL) only, as it
* comes in the "COPYING.CDDL" 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.
*
*/
#ifndef ___VBoxDTraceLibCWrappers_h___
#define ___VBoxDTraceLibCWrappers_h___
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#ifdef RT_OS_WINDOWS
# include <process.h>
#else
# include <syslimits.h> /* PATH_MAX */
# include <libgen.h> /* basename */
# include <unistd.h>
#endif
#define gethrtime() RTTimeNanoTS()
#define PATH_MAX RTPATH_MAX
#define getpid RTProcSelf
/* Not using RTStrDup and RTStrNDup here because the allocation won't be freed
by RTStrFree and thus may cause trouble when using the efence. */
#endif