ReactOS 0.4.16-dev-306-g647d351
rterror.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _RT_STACK   0 /* stack overflow */
 
#define _RT_NULLPTR   1 /* null pointer assignment */
 
#define _RT_FLOAT   2 /* floating point not loaded */
 
#define _RT_INTDIV   3 /* integer divide by 0 */
 
#define _RT_SPACEARG   4 /* not enough space for arguments */
 
#define _RT_SPACEENV   5 /* not enough space for environment */
 
#define _RT_ABORT   6 /* abnormal program termination */
 
#define _RT_THREAD   7 /* not enough space for thread data */
 
#define _RT_LOCK   8 /* unexpected multi-thread lock error */
 
#define _RT_HEAP   9 /* unexpected heap error */
 
#define _RT_OPENCON   10 /* unable to open console device */
 
#define _RT_NONCONT   11 /* non-continuable exception */
 
#define _RT_INVALDISP   12 /* invalid disposition of exception */
 
#define _RT_ONEXIT
 
#define _RT_PUREVIRT
 
#define _RT_STDIOINIT   15 /* not enough space for stdio initialization */
 
#define _RT_LOWIOINIT   16 /* not enough space for lowio initialization */
 

Functions

 __declspec (noreturn) void _amsg_exit(int errnum)
 
void _dosmaperr (unsigned long oserrcode)
 

Macro Definition Documentation

◆ _RT_ABORT

#define _RT_ABORT   6 /* abnormal program termination */

Definition at line 13 of file rterror.h.

◆ _RT_FLOAT

#define _RT_FLOAT   2 /* floating point not loaded */

Definition at line 9 of file rterror.h.

◆ _RT_HEAP

#define _RT_HEAP   9 /* unexpected heap error */

Definition at line 16 of file rterror.h.

◆ _RT_INTDIV

#define _RT_INTDIV   3 /* integer divide by 0 */

Definition at line 10 of file rterror.h.

◆ _RT_INVALDISP

#define _RT_INVALDISP   12 /* invalid disposition of exception */

Definition at line 19 of file rterror.h.

◆ _RT_LOCK

#define _RT_LOCK   8 /* unexpected multi-thread lock error */

Definition at line 15 of file rterror.h.

◆ _RT_LOWIOINIT

#define _RT_LOWIOINIT   16 /* not enough space for lowio initialization */

Definition at line 23 of file rterror.h.

◆ _RT_NONCONT

#define _RT_NONCONT   11 /* non-continuable exception */

Definition at line 18 of file rterror.h.

◆ _RT_NULLPTR

#define _RT_NULLPTR   1 /* null pointer assignment */

Definition at line 8 of file rterror.h.

◆ _RT_ONEXIT

#define _RT_ONEXIT
Value:
13 /* insufficient heap to allocate
* initial table of function pointers
* used by _onexit()/atexit(). */

Definition at line 20 of file rterror.h.

◆ _RT_OPENCON

#define _RT_OPENCON   10 /* unable to open console device */

Definition at line 17 of file rterror.h.

◆ _RT_PUREVIRT

#define _RT_PUREVIRT
Value:
14 /* pure virtual function call attempted
* (C++ error) */

Definition at line 21 of file rterror.h.

◆ _RT_SPACEARG

#define _RT_SPACEARG   4 /* not enough space for arguments */

Definition at line 11 of file rterror.h.

◆ _RT_SPACEENV

#define _RT_SPACEENV   5 /* not enough space for environment */

Definition at line 12 of file rterror.h.

◆ _RT_STACK

#define _RT_STACK   0 /* stack overflow */

Definition at line 7 of file rterror.h.

◆ _RT_STDIOINIT

#define _RT_STDIOINIT   15 /* not enough space for stdio initialization */

Definition at line 22 of file rterror.h.

◆ _RT_THREAD

#define _RT_THREAD   7 /* not enough space for thread data */

Definition at line 14 of file rterror.h.

Function Documentation

◆ __declspec()

__declspec ( noreturn  )

Definition at line 19 of file noreturn.cpp.

21{
22 throw 1;
23}

◆ _dosmaperr()

void _dosmaperr ( unsigned long  oserrcode)

Definition at line 79 of file errno.c.

80{
81 int pos, base, lim;
82
83 _set_doserrno(oserror);
84
85 /* Use binary chop to find the corresponding errno code */
86 for (base=0, lim=sizeof(doserrmap)/sizeof(doserrmap[0]); lim; lim >>= 1) {
87 pos = base+(lim >> 1);
88 if (doserrmap[pos].winerr == oserror) {
90 return;
91 } else if (doserrmap[pos].winerr < oserror) {
92 base = pos + 1;
93 --lim;
94 }
95 }
96 /* EINVAL appears to be the default */
98}
#define EINVAL
Definition: acclib.h:90
unsigned long winerr
Definition: doserrmap.h:7
struct @4315 doserrmap[]
int en
Definition: doserrmap.h:8
errno_t CDECL _set_doserrno(unsigned long value)
Definition: errno.c:66
errno_t CDECL _set_errno(int value)
Definition: errno.c:57

Referenced by _access(), _beginthreadex(), _chdrive(), _chmod(), _chsize_s(), _close(), _commit(), _cwait(), _dup2(), _findclose(), _fstat64(), _futime(), _lseeki64(), _open_osfhandle(), _pclose(), _pipe(), _tchdir(), _tfindfirst(), _tfindnext(), _tfullpath(), _tgetcwd(), _tmkdir(), _trmdir(), _tsearchenv_s(), _unlink(), _waccess(), _wchmod(), _wfreopen(), _wremove(), _wrename(), _write(), _wsopen_s(), _wsystem(), _wunlink(), access_dirT(), do_spawnT(), read_utf8(), remove(), rename(), and system().