ReactOS  0.4.13-dev-66-gc714b7f
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 29 of file thread.c.

34 {
35  /* Attempt to call the Thread Start Address */
36  _SEH2_TRY
37  {
38  /* Legacy check which is still used today for Win32 threads */
39  if (NtCurrentTeb()->NtTib.Version == (30 << 8)) // OS/2 V3.0 ("Cruiser")
40  {
41  /* This registers the termination port with CSRSS */
43  }
44 
45  /* Get the exit code from the Thread Start */
46  ExitThread((lpStartAddress)((PVOID)lpParameter));
47  }
49  {
50  /* Get the Exit code from the SEH Handler */
52  {
53  /* Kill the whole process, usually */
55  }
56  else
57  {
58  /* If running inside CSRSS, kill just this thread */
60  }
61  }
62  _SEH2_END;
63 }
VOID WINAPI ExitProcess(IN UINT uExitCode)
Definition: proc.c:1517
_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:327
BOOLEAN BaseRunningInServerProcess
Definition: dllmain.c:20
LPVOID lpParameter
Definition: kernel32.h:234
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().