1
// Copyright 2009 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
8
-f -I/home/rsc/pub/linux-2.6/arch/x86/include \
9
-f -I/home/rsc/pub/linux-2.6/include \
10
-f -D_LOOSE_KERNEL_NAMES \
11
-f -D__ARCH_SI_UID_T=__kernel_uid32_t \
14
* The asm header tricks we have to use for Linux on amd64
15
* (see defs.c and defs1.c) don't work here, so this is yet another
19
#include <asm/signal.h>
21
#include <asm/sigcontext.h>
22
#include <asm/ucontext.h>
23
#include <asm/siginfo.h>
26
#include <sys/signal.h>
31
/* This is the sigaction structure from the Linux 2.1.68 kernel which
32
is used with the rt_sigaction system call. For 386 this is not
33
defined in any public header file. */
35
struct kernel_sigaction {
36
__sighandler_t k_sa_handler;
37
unsigned long sa_flags;
38
void (*sa_restorer) (void);
43
$PROT_NONE = PROT_NONE,
44
$PROT_READ = PROT_READ,
45
$PROT_WRITE = PROT_WRITE,
46
$PROT_EXEC = PROT_EXEC,
48
$MAP_ANON = MAP_ANONYMOUS,
49
$MAP_PRIVATE = MAP_PRIVATE,
50
$MAP_FIXED = MAP_FIXED,
52
$SA_RESTART = SA_RESTART,
53
$SA_ONSTACK = SA_ONSTACK,
54
$SA_RESTORER = SA_RESTORER,
55
$SA_SIGINFO = SA_SIGINFO,
71
$SIGSTKFLT = SIGSTKFLT,
81
$SIGVTALRM = SIGVTALRM,
88
$FPE_INTDIV = FPE_INTDIV,
89
$FPE_INTOVF = FPE_INTOVF,
90
$FPE_FLTDIV = FPE_FLTDIV,
91
$FPE_FLTOVF = FPE_FLTOVF,
92
$FPE_FLTUND = FPE_FLTUND,
93
$FPE_FLTRES = FPE_FLTRES,
94
$FPE_FLTINV = FPE_FLTINV,
95
$FPE_FLTSUB = FPE_FLTSUB,
97
$BUS_ADRALN = BUS_ADRALN,
98
$BUS_ADRERR = BUS_ADRERR,
99
$BUS_OBJERR = BUS_OBJERR,
101
$SEGV_MAPERR = SEGV_MAPERR,
102
$SEGV_ACCERR = SEGV_ACCERR,
105
typedef struct _fpreg $Fpreg;
106
typedef struct _fpxreg $Fpxreg;
107
typedef struct _xmmreg $Xmmreg;
108
typedef struct _fpstate $Fpstate;
109
typedef struct timespec $Timespec;
110
typedef struct timeval $Timeval;
111
typedef struct kernel_sigaction $Sigaction;
112
typedef siginfo_t $Siginfo;
113
typedef struct sigaltstack $Sigaltstack;
114
typedef struct sigcontext $Sigcontext;
115
typedef struct ucontext $Ucontext;