Source File
defs_linux_amd64.go
Belonging Package
runtime
// created by cgo -cdefs and then converted to Go// cgo -cdefs defs_linux.go defs1_linux.gopackage runtimeimportconst (_EINTR = 0x4_EAGAIN = 0xb_ENOMEM = 0xc_PROT_NONE = 0x0_PROT_READ = 0x1_PROT_WRITE = 0x2_PROT_EXEC = 0x4_MAP_ANON = 0x20_MAP_PRIVATE = 0x2_MAP_FIXED = 0x10_MADV_DONTNEED = 0x4_MADV_FREE = 0x8_MADV_HUGEPAGE = 0xe_MADV_NOHUGEPAGE = 0xf_MADV_COLLAPSE = 0x19_SA_RESTART = 0x10000000_SA_ONSTACK = 0x8000000_SA_RESTORER = 0x4000000_SA_SIGINFO = 0x4_SI_KERNEL = 0x80_SI_TIMER = -0x2_SIGHUP = 0x1_SIGINT = 0x2_SIGQUIT = 0x3_SIGILL = 0x4_SIGTRAP = 0x5_SIGABRT = 0x6_SIGBUS = 0x7_SIGFPE = 0x8_SIGKILL = 0x9_SIGUSR1 = 0xa_SIGSEGV = 0xb_SIGUSR2 = 0xc_SIGPIPE = 0xd_SIGALRM = 0xe_SIGSTKFLT = 0x10_SIGCHLD = 0x11_SIGCONT = 0x12_SIGSTOP = 0x13_SIGTSTP = 0x14_SIGTTIN = 0x15_SIGTTOU = 0x16_SIGURG = 0x17_SIGXCPU = 0x18_SIGXFSZ = 0x19_SIGVTALRM = 0x1a_SIGPROF = 0x1b_SIGWINCH = 0x1c_SIGIO = 0x1d_SIGPWR = 0x1e_SIGSYS = 0x1f_SIGRTMIN = 0x20_FPE_INTDIV = 0x1_FPE_INTOVF = 0x2_FPE_FLTDIV = 0x3_FPE_FLTOVF = 0x4_FPE_FLTUND = 0x5_FPE_FLTRES = 0x6_FPE_FLTINV = 0x7_FPE_FLTSUB = 0x8_BUS_ADRALN = 0x1_BUS_ADRERR = 0x2_BUS_OBJERR = 0x3_SEGV_MAPERR = 0x1_SEGV_ACCERR = 0x2_ITIMER_REAL = 0x0_ITIMER_VIRTUAL = 0x1_ITIMER_PROF = 0x2_CLOCK_THREAD_CPUTIME_ID = 0x3_SIGEV_THREAD_ID = 0x4_AF_UNIX = 0x1_SOCK_DGRAM = 0x2)type timespec struct {tv_sec int64tv_nsec int64}//go:nosplitfunc ( *timespec) ( int64) {.tv_sec = / 1e9.tv_nsec = % 1e9}type timeval struct {tv_sec int64tv_usec int64}func ( *timeval) ( int32) {.tv_usec = int64()}type sigactiont struct {sa_handler uintptrsa_flags uint64sa_restorer uintptrsa_mask uint64}type siginfoFields struct {si_signo int32si_errno int32si_code int32// below here is a union; si_addr is the only field we usesi_addr uint64}type siginfo struct {siginfoFields// Pad struct to the max size in the kernel._ [_si_max_size - unsafe.Sizeof(siginfoFields{})]byte}type itimerspec struct {it_interval timespecit_value timespec}type itimerval struct {it_interval timevalit_value timeval}type sigeventFields struct {value uintptrsigno int32notify int32// below here is a union; sigev_notify_thread_id is the only field we usesigev_notify_thread_id int32}type sigevent struct {sigeventFields// Pad struct to the max size in the kernel._ [_sigev_max_size - unsafe.Sizeof(sigeventFields{})]byte}// created by cgo -cdefs and then converted to Go// cgo -cdefs defs_linux.go defs1_linux.goconst (_O_RDONLY = 0x0_O_WRONLY = 0x1_O_CREAT = 0x40_O_TRUNC = 0x200_O_NONBLOCK = 0x800_O_CLOEXEC = 0x80000)type usigset struct {__val [16]uint64}type fpxreg struct {significand [4]uint16exponent uint16padding [3]uint16}type xmmreg struct {element [4]uint32}type fpstate struct {cwd uint16swd uint16ftw uint16fop uint16rip uint64rdp uint64mxcsr uint32mxcr_mask uint32_st [8]fpxreg_xmm [16]xmmregpadding [24]uint32}type fpxreg1 struct {significand [4]uint16exponent uint16padding [3]uint16}type xmmreg1 struct {element [4]uint32}type fpstate1 struct {cwd uint16swd uint16ftw uint16fop uint16rip uint64rdp uint64mxcsr uint32mxcr_mask uint32_st [8]fpxreg1_xmm [16]xmmreg1padding [24]uint32}type fpreg1 struct {significand [4]uint16exponent uint16}type stackt struct {ss_sp *bytess_flags int32pad_cgo_0 [4]bytess_size uintptr}type mcontext struct {gregs [23]uint64fpregs *fpstate__reserved1 [8]uint64}type ucontext struct {uc_flags uint64uc_link *ucontextuc_stack stacktuc_mcontext mcontextuc_sigmask usigset__fpregs_mem fpstate}type sigcontext struct {r8 uint64r9 uint64r10 uint64r11 uint64r12 uint64r13 uint64r14 uint64r15 uint64rdi uint64rsi uint64rbp uint64rbx uint64rdx uint64rax uint64rcx uint64rsp uint64rip uint64eflags uint64cs uint16gs uint16fs uint16__pad0 uint16err uint64trapno uint64oldmask uint64cr2 uint64fpstate *fpstate1__reserved1 [8]uint64}type sockaddr_un struct {family uint16path [108]byte}
![]() |
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |