mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 21:38:43 +00:00
[PSDK/NDK]
- Add missing PEXCEPTION_ROUTINE, RtlLookupFunctionEntry, RtlVirtualUnwind to winnt.h - Remove PEXCEPTION_ROUTINE from NDK - delete obsolete reactos/mingw-w64 folder svn path=/trunk/; revision=56354
This commit is contained in:
parent
dda26dddae
commit
9e4ed3a0d8
5 changed files with 32 additions and 330 deletions
|
@ -454,17 +454,6 @@ typedef VOID
|
|||
|
||||
#else /* !NTOS_MODE_USER */
|
||||
|
||||
//
|
||||
// Handler during regular RTL Exceptions
|
||||
//
|
||||
typedef EXCEPTION_DISPOSITION
|
||||
(NTAPI *PEXCEPTION_ROUTINE)(
|
||||
IN struct _EXCEPTION_RECORD *ExceptionRecord,
|
||||
IN PVOID EstablisherFrame,
|
||||
IN OUT struct _CONTEXT *ContextRecord,
|
||||
IN OUT PVOID DispatcherContext
|
||||
);
|
||||
|
||||
//
|
||||
// RTL Library Allocation/Free Routines
|
||||
//
|
||||
|
|
|
@ -2218,6 +2218,17 @@ typedef struct _ACL_SIZE_INFORMATION {
|
|||
DWORD AclBytesFree;
|
||||
} ACL_SIZE_INFORMATION, *PACL_SIZE_INFORMATION;
|
||||
|
||||
typedef
|
||||
EXCEPTION_DISPOSITION
|
||||
NTAPI
|
||||
EXCEPTION_ROUTINE(
|
||||
_Inout_ struct _EXCEPTION_RECORD *ExceptionRecord,
|
||||
_In_ PVOID EstablisherFrame,
|
||||
_Inout_ struct _CONTEXT *ContextRecord,
|
||||
_In_ PVOID DispatcherContext);
|
||||
|
||||
typedef EXCEPTION_ROUTINE *PEXCEPTION_ROUTINE;
|
||||
|
||||
#ifndef _LDT_ENTRY_DEFINED
|
||||
#define _LDT_ENTRY_DEFINED
|
||||
|
||||
|
@ -2547,6 +2558,27 @@ BOOLEAN
|
|||
__cdecl
|
||||
RtlDeleteFunctionTable(PRUNTIME_FUNCTION FunctionTable);
|
||||
|
||||
NTSYSAPI
|
||||
PRUNTIME_FUNCTION
|
||||
NTAPI
|
||||
RtlLookupFunctionEntry(
|
||||
_In_ DWORD64 ControlPc,
|
||||
_Out_ PDWORD64 ImageBase,
|
||||
_Inout_opt_ PUNWIND_HISTORY_TABLE HistoryTable);
|
||||
|
||||
NTSYSAPI
|
||||
PEXCEPTION_ROUTINE
|
||||
NTAPI
|
||||
RtlVirtualUnwind(
|
||||
_In_ DWORD HandlerType,
|
||||
_In_ DWORD64 ImageBase,
|
||||
_In_ DWORD64 ControlPc,
|
||||
_In_ PRUNTIME_FUNCTION FunctionEntry,
|
||||
_Inout_ struct _CONTEXT *ContextRecord,
|
||||
_Out_ PVOID *HandlerData,
|
||||
_Out_ PDWORD64 EstablisherFrame,
|
||||
_Inout_opt_ PKNONVOLATILE_CONTEXT_POINTERS ContextPointers);
|
||||
|
||||
#elif defined(_PPC_)
|
||||
#define CONTEXT_CONTROL 1L
|
||||
#define CONTEXT_FLOATING_POINT 2L
|
||||
|
|
|
@ -1,187 +0,0 @@
|
|||
/**
|
||||
* 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.PD within this package.
|
||||
*/
|
||||
|
||||
#ifndef _INC_INTERNAL
|
||||
#define _INC_INTERNAL
|
||||
|
||||
#include <crtdefs.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#include <limits.h>
|
||||
#include <windows.h>
|
||||
|
||||
#pragma pack(push,_CRT_PACKING)
|
||||
|
||||
#ifndef __INTERNAL_FUNC_DEFINED
|
||||
#define __INTERNAL_FUNC_DEFINED
|
||||
typedef void (__cdecl *_PVFV)(void);
|
||||
typedef int (__cdecl *_PIFV)(void);
|
||||
typedef void (__cdecl *_PVFI)(int);
|
||||
#endif
|
||||
|
||||
#if defined (SPECIAL_CRTEXE) && (defined (_DLL) || defined (__GNUC__))
|
||||
extern int _commode;
|
||||
#else
|
||||
_CRTIMP extern int _commode;
|
||||
#endif
|
||||
|
||||
#define __IOINFO_TM_ANSI 0
|
||||
#define __IOINFO_TM_UTF8 1
|
||||
#define __IOINFO_TM_UTF16LE 2
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4214)
|
||||
#pragma warning(disable:4820)
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
intptr_t osfhnd;
|
||||
char osfile;
|
||||
char pipech;
|
||||
int lockinitflag;
|
||||
CRITICAL_SECTION lock;
|
||||
char textmode : 7;
|
||||
char unicode : 1;
|
||||
char pipech2[2];
|
||||
} ioinfo;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#define IOINFO_ARRAY_ELTS (1 << 5)
|
||||
|
||||
#define _pioinfo(i) (__pioinfo[(i) >> 5] + ((i) & (IOINFO_ARRAY_ELTS - 1)))
|
||||
#define _osfile(i) (_pioinfo(i)->osfile)
|
||||
#define _pipech2(i) (_pioinfo(i)->pipech2)
|
||||
#define _textmode(i) (_pioinfo(i)->textmode)
|
||||
#define _tm_unicode(i) (_pioinfo(i)->unicode)
|
||||
#define _pioinfo_safe(i) ((((i) != -1) && ((i) != -2)) ? _pioinfo(i) : &__badioinfo)
|
||||
#define _osfhnd_safe(i) (_pioinfo_safe(i)->osfhnd)
|
||||
#define _osfile_safe(i) (_pioinfo_safe(i)->osfile)
|
||||
#define _pipech_safe(i) (_pioinfo_safe(i)->pipech)
|
||||
#define _pipech2_safe(i) (_pioinfo_safe(i)->pipech2)
|
||||
#define _textmode_safe(i) (_pioinfo_safe(i)->textmode)
|
||||
#define _tm_unicode_safe(i) (_pioinfo_safe(i)->unicode)
|
||||
|
||||
#ifndef __badioinfo
|
||||
extern ioinfo ** __MINGW_IMP_SYMBOL(__badioinfo)[];
|
||||
#define __badioinfo (* __MINGW_IMP_SYMBOL(__badioinfo))
|
||||
#endif
|
||||
|
||||
#ifndef __pioinfo
|
||||
extern ioinfo ** __MINGW_IMP_SYMBOL(__pioinfo)[];
|
||||
#define __pioinfo (* __MINGW_IMP_SYMBOL(__pioinfo))
|
||||
#endif
|
||||
|
||||
#define _NO_CONSOLE_FILENO (intptr_t)-2
|
||||
|
||||
#ifndef _FILE_DEFINED
|
||||
#define _FILE_DEFINED
|
||||
struct _iobuf {
|
||||
char *_ptr;
|
||||
int _cnt;
|
||||
char *_base;
|
||||
int _flag;
|
||||
int _file;
|
||||
int _charbuf;
|
||||
int _bufsiz;
|
||||
char *_tmpfname;
|
||||
};
|
||||
typedef struct _iobuf FILE;
|
||||
#endif
|
||||
|
||||
#if !defined (_FILEX_DEFINED) && defined (_WINDOWS_)
|
||||
#define _FILEX_DEFINED
|
||||
typedef struct {
|
||||
FILE f;
|
||||
CRITICAL_SECTION lock;
|
||||
} _FILEX;
|
||||
#endif
|
||||
|
||||
extern int _dowildcard;
|
||||
extern int _newmode;
|
||||
|
||||
#ifndef __winitenv
|
||||
extern wchar_t *** __MINGW_IMP_SYMBOL(__winitenv);
|
||||
#define __winitenv (* __MINGW_IMP_SYMBOL(__winitenv))
|
||||
#endif
|
||||
|
||||
#ifndef __initenv
|
||||
extern char *** __MINGW_IMP_SYMBOL(__initenv);
|
||||
#define __initenv (* __MINGW_IMP_SYMBOL(__initenv))
|
||||
#endif
|
||||
|
||||
#ifndef _acmdln
|
||||
extern char ** __MINGW_IMP_SYMBOL(_acmdln);
|
||||
#define _acmdln (* __MINGW_IMP_SYMBOL(_acmdln))
|
||||
/* _CRTIMP extern char *_acmdln; */
|
||||
#endif
|
||||
|
||||
#ifndef _wcmdln
|
||||
extern char ** __MINGW_IMP_SYMBOL(_wcmdln);
|
||||
#define _wcmdln (* __MINGW_IMP_SYMBOL(_wcmdln))
|
||||
/* __CRTIMP extern wchar_t *_wcmdln; */
|
||||
#endif
|
||||
|
||||
_CRTIMP void __cdecl _amsg_exit(int);
|
||||
|
||||
int __CRTDECL _setargv(void);
|
||||
int __CRTDECL __setargv(void);
|
||||
int __CRTDECL _wsetargv(void);
|
||||
int __CRTDECL __wsetargv(void);
|
||||
|
||||
int __CRTDECL main(int _Argc, char **_Argv, char **_Env);
|
||||
int __CRTDECL wmain(int _Argc, wchar_t **_Argv, wchar_t **_Env);
|
||||
|
||||
#ifndef _STARTUP_INFO_DEFINED
|
||||
#define _STARTUP_INFO_DEFINED
|
||||
typedef struct {
|
||||
int newmode;
|
||||
} _startupinfo;
|
||||
#endif
|
||||
|
||||
_CRTIMP int __cdecl __getmainargs(int * _Argc, char *** _Argv, char ***_Env, int _DoWildCard, _startupinfo *_StartInfo);
|
||||
_CRTIMP int __cdecl __wgetmainargs(int * _Argc, wchar_t ***_Argv, wchar_t ***_Env, int _DoWildCard, _startupinfo *_StartInfo);
|
||||
|
||||
#define _CONSOLE_APP 1
|
||||
#define _GUI_APP 2
|
||||
|
||||
typedef enum __enative_startup_state {
|
||||
__uninitialized, __initializing, __initialized
|
||||
} __enative_startup_state;
|
||||
|
||||
extern volatile __enative_startup_state __native_startup_state;
|
||||
extern volatile void *__native_startup_lock;
|
||||
|
||||
extern volatile unsigned int __native_dllmain_reason;
|
||||
extern volatile unsigned int __native_vcclrit_reason;
|
||||
|
||||
_CRTIMP void __cdecl __set_app_type (int);
|
||||
|
||||
typedef LONG NTSTATUS;
|
||||
|
||||
#include <crtdbg.h>
|
||||
#include <errno.h>
|
||||
|
||||
void * __cdecl _encode_pointer(void *);
|
||||
void * __cdecl _encoded_null();
|
||||
void * __cdecl _decode_pointer(void *);
|
||||
|
||||
BOOL __cdecl _ValidateImageBase (PBYTE pImageBase);
|
||||
PIMAGE_SECTION_HEADER __cdecl _FindPESection (PBYTE pImageBase, DWORD_PTR rva);
|
||||
BOOL __cdecl _IsNonwritableInCurrentImage (PBYTE pTarget);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#pragma pack(pop)
|
||||
#endif
|
|
@ -1,60 +0,0 @@
|
|||
/**
|
||||
* 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.PD within this package.
|
||||
*/
|
||||
|
||||
#ifndef _INC_OSCALLS
|
||||
#define _INC_OSCALLS
|
||||
|
||||
#ifndef _CRTBLD
|
||||
#error ERROR: Use of C runtime library internal header file.
|
||||
#endif
|
||||
|
||||
#include <crtdefs.h>
|
||||
|
||||
#ifdef NULL
|
||||
#undef NULL
|
||||
#endif
|
||||
|
||||
#define NOMINMAX
|
||||
|
||||
#define _WIN32_FUSION 0x0100
|
||||
#include <windows.h>
|
||||
|
||||
#ifndef NULL
|
||||
#ifdef __cplusplus
|
||||
#define NULL 0
|
||||
#else
|
||||
#define NULL ((void *)0)
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(push)
|
||||
#pragma warning(disable:4214)
|
||||
#endif
|
||||
|
||||
typedef struct _FTIME
|
||||
{
|
||||
unsigned short twosecs : 5;
|
||||
unsigned short minutes : 6;
|
||||
unsigned short hours : 5;
|
||||
} FTIME;
|
||||
|
||||
typedef FTIME *PFTIME;
|
||||
|
||||
typedef struct _FDATE
|
||||
{
|
||||
unsigned short day : 5;
|
||||
unsigned short month : 4;
|
||||
unsigned short year : 7;
|
||||
} FDATE;
|
||||
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
typedef FDATE *PFDATE;
|
||||
|
||||
#endif
|
|
@ -1,72 +0,0 @@
|
|||
/**
|
||||
* 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.PD within this package.
|
||||
*/
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
|
||||
#if defined(_M_IA64) || defined(_M_AMD64)
|
||||
#define _ATTRIBUTES
|
||||
#else
|
||||
#define _ATTRIBUTES read
|
||||
#endif
|
||||
|
||||
/* Reference list of existing section for msvcrt. */
|
||||
#pragma section(".CRTMP$XCA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRTMP$XCZ",long,_ATTRIBUTES)
|
||||
#pragma section(".CRTMP$XIA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRTMP$XIZ",long,_ATTRIBUTES)
|
||||
|
||||
#pragma section(".CRTMA$XCA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRTMA$XCZ",long,_ATTRIBUTES)
|
||||
#pragma section(".CRTMA$XIA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRTMA$XIZ",long,_ATTRIBUTES)
|
||||
|
||||
#pragma section(".CRTVT$XCA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRTVT$XCZ",long,_ATTRIBUTES)
|
||||
|
||||
#pragma section(".CRT$XCA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XCAA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XCC",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XCZ",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XDA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XDC",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XDZ",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XIA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XIAA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XIC",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XID",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XIY",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XIZ",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XLA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XLC",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XLD",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XLZ",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XPA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XPX",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XPXA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XPZ",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XTA",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XTB",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XTX",long,_ATTRIBUTES)
|
||||
#pragma section(".CRT$XTZ",long,_ATTRIBUTES)
|
||||
#pragma section(".rdata$T",long,read)
|
||||
#pragma section(".rtc$IAA",long,read)
|
||||
#pragma section(".rtc$IZZ",long,read)
|
||||
#pragma section(".rtc$TAA",long,read)
|
||||
#pragma section(".rtc$TZZ",long,read)
|
||||
/* for tlssup.c: */
|
||||
#pragma section(".tls",long,read,write)
|
||||
#pragma section(".tls$AAA",long,read,write)
|
||||
#pragma section(".tls$ZZZ",long,read,write)
|
||||
#endif /* _MSC_VER */
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
#define _CRTALLOC(x) __declspec(allocate(x))
|
||||
#elif defined(__GNUC__)
|
||||
#define _CRTALLOC(x) __attribute__ ((section (x) ))
|
||||
#else
|
||||
#error Your compiler is not supported.
|
||||
#endif
|
||||
|
Loading…
Reference in a new issue