a885e5075fe66ed834666941764be11135b5f9b3vboxsync * IPRT - errno.h wrapper.
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * Copyright (C) 2012 Oracle Corporation
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * This file is part of VirtualBox Open Source Edition (OSE), as
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * available from http://www.virtualbox.org. This file is free software;
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * you can redistribute it and/or modify it under the terms of the GNU
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * General Public License (GPL) as published by the Free Software
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * Foundation, in version 2 as it comes in the "COPYING" file of the
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * VirtualBox OSE distribution. VirtualBox OSE is distributed in the
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * The contents of this file may alternatively be used under the terms
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * of the Common Development and Distribution License Version 1.0
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * (CDDL) only, as it comes in the "COPYING.CDDL" file of the
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * VirtualBox OSE distribution, in which case the provisions of the
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * CDDL are applicable instead of those of the GPL.
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * You may elect to license modified versions of this file under the
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * terms and conditions of either the GPL or the CDDL or both.
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * Supply missing errno values according to the current RT_OS_XXX definition.
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * Note! These supplements are for making no-CRT mode, as well as making UNIXy
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * code that makes used of odd errno defines internally, work smoothly.
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * When adding more error codes, always check the following errno.h sources:
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * - RT_OS_DARWIN: http://fxr.watson.org/fxr/source/bsd/sys/errno.h?v=xnu-1699.24.8
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * - RT_OS_FREEBSD: http://fxr.watson.org/fxr/source/sys/errno.h?v=DFBSD
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * - RT_OS_NETBSD: http://fxr.watson.org/fxr/source/sys/errno.h?v=NETBSD
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * - RT_OS_OPENBSD: http://fxr.watson.org/fxr/source/sys/errno.h?v=OPENBSD
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * - RT_OS_OS2: http://svn.netlabs.org/libc/browser/trunk/libc/include/sys/errno.h
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * - RT_OS_LINUX: http://fxr.watson.org/fxr/source/include/asm-generic/errno.h?v=linux-2.6
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * - RT_OS_SOLARIS: http://fxr.watson.org/fxr/source/common/sys/errno.h?v=OPENSOLARIS
a885e5075fe66ed834666941764be11135b5f9b3vboxsync * - RT_OS_WINDOWS: tools/win.x86/vcc/v8sp1/include/errno.h
a885e5075fe66ed834666941764be11135b5f9b3vboxsync#if defined(RT_OS_DARWIN) \
a885e5075fe66ed834666941764be11135b5f9b3vboxsync || defined(RT_OS_NETBSD) \
a885e5075fe66ed834666941764be11135b5f9b3vboxsync/* The relatively similar part. */
a885e5075fe66ed834666941764be11135b5f9b3vboxsync/* 35 - also EAGAIN on BSD and EDEADLK on Linux. */
a885e5075fe66ed834666941764be11135b5f9b3vboxsync/* 36 - Also EDEADLK on Windows. */
a885e5075fe66ed834666941764be11135b5f9b3vboxsync# elif defined(RT_OS_FREEBSD) || defined(RT_OS_NETBSD)
a885e5075fe66ed834666941764be11135b5f9b3vboxsync/** @todo errno constants {37..44}. */
a885e5075fe66ed834666941764be11135b5f9b3vboxsync/* 45 - also EDEADLK on Solaris, EL2NSYNC on Linux. */
a885e5075fe66ed834666941764be11135b5f9b3vboxsync/** @todo errno constants {46..74}. */
a885e5075fe66ed834666941764be11135b5f9b3vboxsync/* 75 - note that Solaris has constant with value 75. */
a885e5075fe66ed834666941764be11135b5f9b3vboxsync/** @todo errno constants {76..}. */