summaryrefslogtreecommitdiff
path: root/src/pkg/runtime/linux/386/defs.h
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2009-10-26 22:49:08 -0700
committerIan Lance Taylor <iant@golang.org>2009-10-26 22:49:08 -0700
commit94ad282e94e38e9394b031edbc30605f9331d033 (patch)
treedbf2f4416a4686386b35a7e557b730d0f8db94de /src/pkg/runtime/linux/386/defs.h
parenta0857e4a2dc0f11b2a6a0f859f885ac7091e6c09 (diff)
downloadgolang-94ad282e94e38e9394b031edbc30605f9331d033.tar.gz
Get the right sigaction struct for the 386 rt_sigaction system
call. This uses the header files from a 32-bit Ubuntu Hardy system. The use of _LOOSE_KERNEL_NAMES seems right. The -D__ARCH_SI_UID_T works around a bug which appears to be fixed in later Linux versions. R=rsc http://go/go-review/1013015
Diffstat (limited to 'src/pkg/runtime/linux/386/defs.h')
-rwxr-xr-xsrc/pkg/runtime/linux/386/defs.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/pkg/runtime/linux/386/defs.h b/src/pkg/runtime/linux/386/defs.h
index 112fc7b09..94bc2b5b6 100755
--- a/src/pkg/runtime/linux/386/defs.h
+++ b/src/pkg/runtime/linux/386/defs.h
@@ -1,4 +1,4 @@
-// godefs -f -m32 -f -I/home/rsc/pub/linux-2.6/arch/x86/include -f -I/home/rsc/pub/linux-2.6/include defs2.c
+// godefs -f -m32 -f -D_LOOSE_KERNEL_NAMES -f -D__ARCH_SI_UID_T=__kernel_uid32_t defs2.c
// MACHINE GENERATED - DO NOT EDIT.
@@ -54,8 +54,7 @@ struct Fpstate {
uint32 reserved;
Fpxreg _fxsr_st[8];
Xmmreg _xmm[8];
- uint32 padding1[44];
- byte _anon_[48];
+ uint32 padding[56];
};
typedef struct Timespec Timespec;
@@ -72,10 +71,10 @@ struct Timeval {
typedef struct Sigaction Sigaction;
struct Sigaction {
- byte _u[4];
- uint32 sa_mask;
+ void *k_sa_handler;
uint32 sa_flags;
void *sa_restorer;
+ uint32 sa_mask;
};
typedef struct Siginfo Siginfo;