ReactOS  0.4.14-dev-77-gd9e7c48
setjmp.h File Reference
#include <crtdefs.h>
Include dependency graph for setjmp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _JMP_BUF_DEFINED
 
#define setjmp   _setjmp
 

Typedefs

typedef _JBTYPE jmp_buf[_JBLEN]
 

Functions

int __MINGW_NOTHROW __cdecl setjmp (jmp_buf _Buf)
 
 __declspec (noreturn) __MINGW_NOTHROW void __cdecl ms_longjmp(jmp_buf _Buf
 

Variables

int _Value
 

Macro Definition Documentation

◆ _JMP_BUF_DEFINED

#define _JMP_BUF_DEFINED

Definition at line 161 of file setjmp.h.

◆ setjmp

#define setjmp   _setjmp

Definition at line 183 of file setjmp.h.

Typedef Documentation

◆ jmp_buf

typedef _JBTYPE jmp_buf[_JBLEN]

This file has no copyright assigned and is placed in the Public Domain. This file is part of the w64 mingw-runtime package. No warranty is given; refer to the file DISCLAIMER within this package.

Definition at line 160 of file setjmp.h.

Function Documentation

◆ __declspec()

__declspec ( noreturn  )

Definition at line 53 of file thread.c.

58 {
59  /* Attempt to call the Thread Start Address */
60  _SEH2_TRY
61  {
62  /* Legacy check which is still used today for Win32 threads */
63  if (NtCurrentTeb()->NtTib.Version == (30 << 8)) // OS/2 V3.0 ("Cruiser")
64  {
65  /* This registers the termination port with CSRSS */
67  }
68 
69  /* Get the exit code from the Thread Start */
70  ExitThread((lpStartAddress)((PVOID)lpParameter));
71  }
73  {
74  /* Get the Exit code from the SEH Handler */
76  {
77  /* Kill the whole process, usually */
79  }
80  else
81  {
82  /* If running inside CSRSS, kill just this thread */
84  }
85  }
86  _SEH2_END;
87 }
VOID WINAPI ExitProcess(IN UINT uExitCode)
Definition: proc.c:1487
_SEH2_TRY
Definition: create.c:4250
LONG WINAPI UnhandledExceptionFilter(IN PEXCEPTION_POINTERS ExceptionInfo)
Definition: except.c:262
#define _SEH2_GetExceptionInformation()
Definition: pseh2_64.h:11
VOID WINAPI ExitThread(IN DWORD uExitCode)
Definition: thread.c:364
BOOLEAN BaseRunningInServerProcess
Definition: dllmain.c:20
LPVOID lpParameter
Definition: kernel32.h:241
NTSTATUS NTAPI CsrNewThread(VOID)
Definition: api.c:27
_SEH2_END
Definition: create.c:4424
FORCEINLINE struct _TEB * NtCurrentTeb(VOID)
Definition: psfuncs.h:420
#define _SEH2_EXCEPT(...)
Definition: pseh2_64.h:6
#define _SEH2_GetExceptionCode()
Definition: pseh2_64.h:12

◆ setjmp()

int __MINGW_NOTHROW __cdecl setjmp ( jmp_buf  _Buf)

Variable Documentation

◆ _Value

int _Value

Definition at line 188 of file setjmp.h.

Referenced by __iter_swap_aux_aux().