|
@@ -42,6 +42,10 @@ func main() {
|
|
|
log.Fatal(err)
|
|
log.Fatal(err)
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // Intentionally export __val fields in Fsid and Sigset_t
|
|
|
|
|
+ valRegex := regexp.MustCompile(`type (Fsid|Sigset_t) struct {(\s+)X__val(\s+\S+\s+)}`)
|
|
|
|
|
+ b = valRegex.ReplaceAll(b, []byte("type $1 struct {${2}Val$3}"))
|
|
|
|
|
+
|
|
|
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
|
// If we have empty Ptrace structs, we should delete them. Only s390x emits
|
|
|
// nonempty Ptrace structs.
|
|
// nonempty Ptrace structs.
|
|
|
ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`)
|
|
ptraceRexexp := regexp.MustCompile(`type Ptrace((Psw|Fpregs|Per) struct {\s*})`)
|