/* sys/errnox.h - Global error translation table -- emx-OS/2-gcc
    This code is released into Public Domain. */
/* $Id: errnox.h,v 1.2 2000/03/24 08:52:08 veit Exp $ */

#ifndef _SYS_ERRNOX_H_
#define _SYS_ERRNOX_H_

#ifndef _OS2_H
# warning First appropiately include <os2.h> !
# define INCL_BASE
# define OS2_API32
# define INCL_DOS
# include <os2.h>
#endif
#ifndef _ERRNO_H
# warning First include <errno.h> !
# include <errno.h>
#endif

#define _rc2Errno(rc) (rc >= sizeof(__errnox_sysErr2ErrnoTab) ? \
 EINVAL : __errnox_sysErr2ErrnoTab[rc])

#ifdef	__cplusplus
extern "C" {
#endif

#ifndef _FUNCTION
extern unsigned __const__ char __errnox_sysErr2ErrnoTab[348];
#endif

#ifdef	__cplusplus
}
#endif

#ifdef _DEBUG
# include <sys/debugx.h>
#endif

#endif /* _SYS_ERRNOX_H_*/
