1
0
mirror of https://github.com/golang/go synced 2024-11-26 14:46:47 -07:00

runtime: update defs_windows_*.h files

New version of cmd/cgo from
https://golang.org/cl/9574043/
is used to regenerate these.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/9679046
This commit is contained in:
Alex Brainman 2013-06-04 12:50:40 +10:00
parent fa4a9ff764
commit 9bc0eaf60e
2 changed files with 197 additions and 189 deletions

View File

@ -1,22 +1,26 @@
// c:\Users\Hector\Code\go\bin\godefs.exe defs.c // Created by cgo -cdefs - DO NOT EDIT
// cgo -cdefs defs_windows.go
// MACHINE GENERATED - DO NOT EDIT.
// Constants
enum { enum {
PROT_NONE = 0, PROT_NONE = 0,
PROT_READ = 0x1, PROT_READ = 1,
PROT_WRITE = 0x2, PROT_WRITE = 2,
PROT_EXEC = 0x4, PROT_EXEC = 4,
MAP_ANON = 0x1,
MAP_PRIVATE = 0x2, MAP_ANON = 1,
MAP_PRIVATE = 2,
DUPLICATE_SAME_ACCESS = 0x2, DUPLICATE_SAME_ACCESS = 0x2,
THREAD_PRIORITY_HIGHEST = 0x2, THREAD_PRIORITY_HIGHEST = 0x2,
SIGINT = 0x2, SIGINT = 0x2,
CTRL_C_EVENT = 0, CTRL_C_EVENT = 0x0,
CTRL_BREAK_EVENT = 0x1, CTRL_BREAK_EVENT = 0x1,
CONTEXT_CONTROL = 0x10001, CONTEXT_CONTROL = 0x10001,
CONTEXT_FULL = 0x10007, CONTEXT_FULL = 0x10007,
EXCEPTION_ACCESS_VIOLATION = 0xc0000005, EXCEPTION_ACCESS_VIOLATION = 0xc0000005,
EXCEPTION_BREAKPOINT = 0x80000003, EXCEPTION_BREAKPOINT = 0x80000003,
EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d, EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d,
@ -28,15 +32,19 @@ enum {
EXCEPTION_INT_OVERFLOW = 0xc0000095, EXCEPTION_INT_OVERFLOW = 0xc0000095,
}; };
// Types typedef struct SystemInfo SystemInfo;
typedef struct ExceptionRecord ExceptionRecord;
typedef struct FloatingSaveArea FloatingSaveArea;
typedef struct M128a M128a;
typedef struct Context Context;
#pragma pack on #pragma pack on
typedef struct SystemInfo SystemInfo;
struct SystemInfo { struct SystemInfo {
byte Pad_godefs_0[4]; byte anon0[4];
uint32 dwPageSize; uint32 dwPageSize;
void *lpMinimumApplicationAddress; byte *lpMinimumApplicationAddress;
void *lpMaximumApplicationAddress; byte *lpMaximumApplicationAddress;
uint32 dwActiveProcessorMask; uint32 dwActiveProcessorMask;
uint32 dwNumberOfProcessors; uint32 dwNumberOfProcessors;
uint32 dwProcessorType; uint32 dwProcessorType;
@ -44,18 +52,14 @@ struct SystemInfo {
uint16 wProcessorLevel; uint16 wProcessorLevel;
uint16 wProcessorRevision; uint16 wProcessorRevision;
}; };
typedef struct ExceptionRecord ExceptionRecord;
struct ExceptionRecord { struct ExceptionRecord {
uint32 ExceptionCode; uint32 ExceptionCode;
uint32 ExceptionFlags; uint32 ExceptionFlags;
ExceptionRecord *ExceptionRecord; ExceptionRecord *ExceptionRecord;
void *ExceptionAddress; byte *ExceptionAddress;
uint32 NumberParameters; uint32 NumberParameters;
uint32 ExceptionInformation[15]; uint32 ExceptionInformation[15];
}; };
typedef struct FloatingSaveArea FloatingSaveArea;
struct FloatingSaveArea { struct FloatingSaveArea {
uint32 ControlWord; uint32 ControlWord;
uint32 StatusWord; uint32 StatusWord;
@ -67,8 +71,6 @@ struct FloatingSaveArea {
uint8 RegisterArea[80]; uint8 RegisterArea[80];
uint32 Cr0NpxState; uint32 Cr0NpxState;
}; };
typedef struct Context Context;
struct Context { struct Context {
uint32 ContextFlags; uint32 ContextFlags;
uint32 Dr0; uint32 Dr0;
@ -96,4 +98,6 @@ struct Context {
uint32 SegSs; uint32 SegSs;
uint8 ExtendedRegisters[512]; uint8 ExtendedRegisters[512];
}; };
#pragma pack off #pragma pack off

View File

@ -1,22 +1,26 @@
// c:\go\bin\godefs.exe -f -m64 defs.c // Created by cgo -cdefs - DO NOT EDIT
// cgo -cdefs defs_windows.go
// MACHINE GENERATED - DO NOT EDIT.
// Constants
enum { enum {
PROT_NONE = 0, PROT_NONE = 0,
PROT_READ = 0x1, PROT_READ = 1,
PROT_WRITE = 0x2, PROT_WRITE = 2,
PROT_EXEC = 0x4, PROT_EXEC = 4,
MAP_ANON = 0x1,
MAP_PRIVATE = 0x2, MAP_ANON = 1,
MAP_PRIVATE = 2,
DUPLICATE_SAME_ACCESS = 0x2, DUPLICATE_SAME_ACCESS = 0x2,
THREAD_PRIORITY_HIGHEST = 0x2, THREAD_PRIORITY_HIGHEST = 0x2,
SIGINT = 0x2, SIGINT = 0x2,
CTRL_C_EVENT = 0, CTRL_C_EVENT = 0x0,
CTRL_BREAK_EVENT = 0x1, CTRL_BREAK_EVENT = 0x1,
CONTEXT_CONTROL = 0x100001, CONTEXT_CONTROL = 0x100001,
CONTEXT_FULL = 0x10000b, CONTEXT_FULL = 0x10000b,
EXCEPTION_ACCESS_VIOLATION = 0xc0000005, EXCEPTION_ACCESS_VIOLATION = 0xc0000005,
EXCEPTION_BREAKPOINT = 0x80000003, EXCEPTION_BREAKPOINT = 0x80000003,
EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d, EXCEPTION_FLT_DENORMAL_OPERAND = 0xc000008d,
@ -28,15 +32,19 @@ enum {
EXCEPTION_INT_OVERFLOW = 0xc0000095, EXCEPTION_INT_OVERFLOW = 0xc0000095,
}; };
// Types typedef struct SystemInfo SystemInfo;
typedef struct ExceptionRecord ExceptionRecord;
typedef struct FloatingSaveArea FloatingSaveArea;
typedef struct M128a M128a;
typedef struct Context Context;
#pragma pack on #pragma pack on
typedef struct SystemInfo SystemInfo;
struct SystemInfo { struct SystemInfo {
byte Pad_godefs_0[4]; byte anon0[4];
uint32 dwPageSize; uint32 dwPageSize;
void *lpMinimumApplicationAddress; byte *lpMinimumApplicationAddress;
void *lpMaximumApplicationAddress; byte *lpMaximumApplicationAddress;
uint64 dwActiveProcessorMask; uint64 dwActiveProcessorMask;
uint32 dwNumberOfProcessors; uint32 dwNumberOfProcessors;
uint32 dwProcessorType; uint32 dwProcessorType;
@ -44,25 +52,19 @@ struct SystemInfo {
uint16 wProcessorLevel; uint16 wProcessorLevel;
uint16 wProcessorRevision; uint16 wProcessorRevision;
}; };
typedef struct ExceptionRecord ExceptionRecord;
struct ExceptionRecord { struct ExceptionRecord {
uint32 ExceptionCode; uint32 ExceptionCode;
uint32 ExceptionFlags; uint32 ExceptionFlags;
ExceptionRecord *ExceptionRecord; ExceptionRecord *ExceptionRecord;
void *ExceptionAddress; byte *ExceptionAddress;
uint32 NumberParameters; uint32 NumberParameters;
byte pad_godefs_0[4]; byte Pad_cgo_0[4];
uint64 ExceptionInformation[15]; uint64 ExceptionInformation[15];
}; };
typedef struct M128a M128a;
struct M128a { struct M128a {
uint64 Low; uint64 Low;
int64 High; int64 High;
}; };
typedef struct Context Context;
struct Context { struct Context {
uint64 P1Home; uint64 P1Home;
uint64 P2Home; uint64 P2Home;
@ -102,7 +104,7 @@ struct Context {
uint64 R14; uint64 R14;
uint64 R15; uint64 R15;
uint64 Rip; uint64 Rip;
byte Pad_godefs_0[512]; byte anon0[512];
M128a VectorRegister[26]; M128a VectorRegister[26];
uint64 VectorControl; uint64 VectorControl;
uint64 DebugControl; uint64 DebugControl;
@ -111,4 +113,6 @@ struct Context {
uint64 LastExceptionToRip; uint64 LastExceptionToRip;
uint64 LastExceptionFromRip; uint64 LastExceptionFromRip;
}; };
#pragma pack off #pragma pack off