github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/runtime/defs3_linux.go (about) 1 // Copyright 2014 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. 4 5 //go:build ignore 6 7 /* 8 Input to cgo -cdefs 9 10 GOARCH=ppc64 cgo -cdefs defs_linux.go defs3_linux.go > defs_linux_ppc64.h 11 */ 12 13 package runtime 14 15 import "C" 16 17 const ( 18 O_RDONLY = C.O_RDONLY 19 O_CLOEXEC = C.O_CLOEXEC 20 SA_RESTORER = 0 21 ) 22 23 type Usigset C.__sigset_t 24 25 // types used in sigcontext 26 type Ptregs C.struct_pt_regs 27 type Gregset C.elf_gregset_t 28 type FPregset C.elf_fpregset_t 29 type Vreg C.elf_vrreg_t 30 31 type StackT C.stack_t 32 33 // PPC64 uses sigcontext in place of mcontext in ucontext. 34 // see https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/arch/powerpc/include/uapi/asm/ucontext.h 35 type Sigcontext C.struct_sigcontext 36 type Ucontext C.struct_ucontext